@robosophy/prime-theme 3.0.1 → 3.0.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.
Files changed (2) hide show
  1. package/dist/prime.css +118 -64
  2. package/package.json +1 -1
package/dist/prime.css CHANGED
@@ -358,32 +358,103 @@
358
358
  align-items: center;
359
359
  justify-content: center;
360
360
  }
361
+ /* Vue: .p-iconfield | React: .p-icon-field */
362
+ .p-iconfield, .p-icon-field {
363
+ margin-top: 0;
364
+ }
365
+ /* Icon overrides (both) - Use Material Symbols instead of PrimeIcons */
361
366
  .pi-eye::before {
362
- font-family: 'Material Symbols Outlined';
363
- content: 'visibility_off';
367
+ font-family: "Material Symbols Outlined";
368
+ content: "visibility_off";
364
369
  color: var(--rs-color-text-primary);
365
370
  cursor: pointer;
366
371
  }
367
372
  .pi-eye-slash::before {
368
- font-family: 'Material Symbols Outlined';
369
- content: 'visibility';
373
+ font-family: "Material Symbols Outlined";
374
+ content: "visibility";
370
375
  color: var(--rs-color-text-primary);
371
376
  cursor: pointer;
372
377
  }
378
+ .pi-chevron-down::before,
379
+ .pi-chevron-up::before {
380
+ font-family: "Material Symbols Outlined";
381
+ }
373
382
  .pi-chevron-down::before {
374
- font-family: 'Material Symbols Outlined';
375
- content: 'keyboard_arrow_down';
383
+ content: "keyboard_arrow_down";
376
384
  }
377
- .pi-check::before {
378
- font-family: 'Material Symbols Outlined';
379
- content: 'check';
385
+ .pi-chevron-up::before {
386
+ content: "keyboard_arrow_up";
380
387
  }
381
- /* Vue: .p-iconfield | React: .p-icon-field */
382
- .p-iconfield, .p-icon-field {
383
- margin-top: 0;
388
+ .pi-check::before {
389
+ font-family: "Material Symbols Outlined";
390
+ content: "check";
384
391
  }
385
392
  /* #endregion */
386
393
 
394
+ /* PrimeVue 4 - Dropdown icon rotation */
395
+ .p-select .p-select-dropdown-icon,
396
+ .p-cascadeselect .p-cascadeselect-dropdown-icon,
397
+ .p-multiselect .p-multiselect-dropdown-icon {
398
+ transition: transform 0.2s ease;
399
+ }
400
+
401
+ .p-select-open .p-select-dropdown-icon,
402
+ .p-cascadeselect-open .p-cascadeselect-dropdown-icon,
403
+ .p-multiselect-open .p-multiselect-dropdown-icon {
404
+ transform: rotate(180deg);
405
+ }
406
+
407
+ /* PrimeReact - Dropdown CSS chevron stays mounted so its rotation can animate */
408
+ .p-dropdown .p-dropdown-trigger {
409
+ align-items: center;
410
+ }
411
+ .p-dropdown .p-dropdown-trigger > svg.p-dropdown-trigger-icon {
412
+ display: none !important;
413
+ }
414
+ /* PrimeReact - Dropdown CSS chevron only draws when the default icon slot exists.
415
+ With a custom dropdownIcon the icon has no .p-dropdown-trigger-icon class, so the
416
+ ::after is suppressed and no duplicate arrow appears. Same when PrimeReact swaps
417
+ the default icon for a loading spinner. */
418
+ .p-dropdown .p-dropdown-trigger:has(> .p-dropdown-trigger-icon)::after {
419
+ border: solid currentColor;
420
+ border-width: 0 1.5px 1.5px 0;
421
+ content: "";
422
+ height: 8px;
423
+ transform: translateY(-2px) rotate(45deg);
424
+ transition: transform 0.2s ease;
425
+ width: 8px;
426
+ }
427
+ .p-dropdown .p-dropdown-trigger:has(> .p-dropdown-trigger-icon)[aria-expanded="true"]::after {
428
+ transform: translateY(2px) rotate(225deg);
429
+ }
430
+
431
+ /* PrimeReact - CascadeSelect and MultiSelect: hide default chevron SVG icons and use CSS ::after chevron.
432
+ Same pattern as Dropdown above — keeps icon style consistent across all select components,
433
+ supports animation on open, and avoids duplicate arrows with custom icons or loading spinners. */
434
+ .p-cascadeselect .p-cascadeselect-trigger > svg.p-cascadeselect-trigger-icon,
435
+ .p-multiselect .p-multiselect-trigger > svg.p-multiselect-trigger-icon:not(.p-icon-spin) {
436
+ display: none !important;
437
+ }
438
+
439
+ .p-cascadeselect .p-cascadeselect-trigger:has(> svg.p-cascadeselect-trigger-icon)::after,
440
+ .p-multiselect .p-multiselect-trigger:has(> svg.p-multiselect-trigger-icon:not(.p-icon-spin))::after {
441
+ border: solid currentColor;
442
+ border-width: 0 1.5px 1.5px 0;
443
+ content: "";
444
+ height: 8px;
445
+ transform: translateY(-2px) rotate(45deg);
446
+ transition: transform 0.2s ease;
447
+ width: 8px;
448
+ }
449
+
450
+ .p-cascadeselect .p-cascadeselect-trigger:has(> svg.p-cascadeselect-trigger-icon)[aria-expanded="true"]::after {
451
+ transform: translateY(2px) rotate(225deg);
452
+ }
453
+
454
+ .p-multiselect:has(input[aria-expanded="true"]) .p-multiselect-trigger:has(> svg.p-multiselect-trigger-icon:not(.p-icon-spin))::after {
455
+ transform: translateY(2px) rotate(225deg);
456
+ }
457
+
387
458
  /* #region classes */
388
459
  /* password (both) */
389
460
  .p-password {
@@ -393,7 +464,7 @@
393
464
  width: 100%;
394
465
  }
395
466
  /* input (both) */
396
- .p-inputtext:not(:where(.p-inputtextarea, .p-dropdown-label, .p-select-label, .p-cascadeselect-label, .p-cascade-select-label, .p-multiselect-label, .p-multi-select-label, .p-autocomplete-multiple-container)) {
467
+ .p-inputtext:not(:where(.p-inputtextarea, .p-dropdown-label, .p-select-label, .p-cascadeselect-label, .p-multiselect-label, .p-autocomplete-multiple-container)) {
397
468
  font-weight: var(--p-inputtext-font-weight);
398
469
  height: 48px;
399
470
  font-size: 16px;
@@ -450,12 +521,10 @@
450
521
  .p-password.p-invalid.p-component > .p-inputtext {
451
522
  border-color: var(--rs-color-stroke-error) !important;
452
523
  }
453
- .p-cascadeselect.p-invalid.p-component,
454
- .p-cascade-select.p-invalid.p-component {
524
+ .p-cascadeselect.p-invalid.p-component {
455
525
  border-color: var(--rs-color-stroke-error) !important;
456
526
  }
457
- .p-multiselect.p-invalid.p-component,
458
- .p-multi-select.p-invalid.p-component {
527
+ .p-multiselect.p-invalid.p-component {
459
528
  border-color: var(--rs-color-stroke-error) !important;
460
529
  }
461
530
  /* disabled states (both) */
@@ -477,23 +546,19 @@
477
546
  background: var(--rs-color-background-disabled) !important;
478
547
  color: var(--rs-color-text-secondary) !important;
479
548
  }
480
- .p-cascadeselect.p-disabled,
481
- .p-cascade-select.p-disabled {
549
+ .p-cascadeselect.p-disabled {
482
550
  background: var(--rs-color-background-disabled) !important;
483
551
  }
484
- .p-cascadeselect.p-disabled .p-cascadeselect-label,
485
- .p-cascade-select.p-disabled .p-cascade-select-label {
552
+ .p-cascadeselect.p-disabled .p-cascadeselect-label {
486
553
  color: var(--rs-color-text-secondary) !important;
487
554
  }
488
- .p-multiselect.p-disabled,
489
- .p-multi-select.p-disabled {
555
+ .p-multiselect.p-disabled {
490
556
  background: var(--rs-color-background-disabled) !important;
491
557
  }
492
- .p-multiselect.p-disabled .p-multiselect-label,
493
- .p-multi-select.p-disabled .p-multi-select-label {
558
+ .p-multiselect.p-disabled .p-multiselect-label {
494
559
  color: var(--rs-color-text-secondary) !important;
495
560
  }
496
- /* select/dropdown (both: .p-select=Vue, .p-dropdown=both) */
561
+ /* select/dropdown (both: .p-select=Vue, .p-dropdown=React) */
497
562
  .p-select, .p-dropdown {
498
563
  font-weight: var(--p-select-font-weight);
499
564
  height: 48px;
@@ -502,8 +567,8 @@
502
567
  border-radius: 6px;
503
568
  border: 1px solid var(--rs-color-neutral-700);
504
569
  background: var(--rs-color-neutral-50);
505
- padding: 0 16px;
506
570
  }
571
+ .p-select, .p-dropdown { padding: 0; }
507
572
  .p-select:not(.p-disabled):hover,
508
573
  .p-dropdown:not(.p-disabled):hover {
509
574
  border-color: var(--rs-color-stroke-focused);
@@ -527,97 +592,86 @@
527
592
  .p-select-label.p-inputtext,
528
593
  .p-dropdown-label.p-inputtext,
529
594
  .p-cascadeselect-label.p-inputtext,
530
- .p-cascade-select-label.p-inputtext,
531
- .p-multiselect-label.p-inputtext,
532
- .p-multi-select-label.p-inputtext {
595
+ .p-multiselect-label.p-inputtext {
533
596
  height: auto;
534
597
  line-height: 1.5;
535
598
  border: none;
536
599
  background: transparent;
537
600
  }
538
- /* Internal containers - remove duplicate borders */
601
+ /* Internal containers - remove duplicate borders and padding from triggers.
602
+ PrimeReact (React) adds internal padding to triggers, so we reset it here
603
+ for both Vue and React variants. */
539
604
  .p-select-label-container,
540
605
  .p-dropdown-label-container,
606
+ .p-cascadeselect-label-container,
607
+ .p-multiselect-label-container,
541
608
  .p-select-trigger,
542
- .p-dropdown-trigger {
609
+ .p-dropdown-trigger,
610
+ .p-cascadeselect-trigger,
611
+ .p-multiselect-trigger {
543
612
  border: none;
544
613
  background: transparent;
614
+ padding: 0;
545
615
  }
546
- /* cascadeselect (both: .p-cascadeselect=React, .p-cascade-select=Vue) */
547
- .p-cascadeselect, .p-cascade-select {
616
+ /* cascadeselect (both) */
617
+ .p-cascadeselect {
548
618
  height: 48px;
549
619
  font-size: 16px;
550
620
  gap: 8px;
551
621
  border-radius: 6px;
552
622
  border: 1px solid var(--rs-color-neutral-700);
553
623
  background: var(--rs-color-neutral-50);
554
- padding: 0 16px;
624
+ padding: 0;
555
625
  }
556
- .p-cascadeselect:not(.p-disabled):hover,
557
- .p-cascade-select:not(.p-disabled):hover {
626
+ .p-cascadeselect:not(.p-disabled):hover {
558
627
  border-color: var(--rs-color-stroke-focused);
559
628
  }
560
- .p-cascadeselect:not(.p-disabled).p-focus,
561
- .p-cascade-select:not(.p-disabled).p-focus {
629
+ .p-cascadeselect:not(.p-disabled).p-focus {
562
630
  outline: none;
563
631
  border-color: var(--rs-color-stroke-focused);
564
632
  box-shadow: none;
565
633
  }
566
634
  /* Vue-only: PrimeReact 10 no emite clases de tamaño para CascadeSelect */
567
- .p-cascadeselect-sm, .p-cascade-select-sm {
635
+ .p-cascadeselect-sm {
568
636
  height: 36px;
569
637
  font-size: 14px;
570
638
  }
571
- .p-cascadeselect-label, .p-cascade-select-label {
639
+ .p-cascadeselect-label {
572
640
  align-self: center;
573
641
  border: none;
574
642
  background: transparent;
575
643
  }
576
- .p-cascadeselect-label-container,
577
- .p-cascade-select-label-container,
578
- .p-cascadeselect-trigger,
579
- .p-cascade-select-trigger {
580
- border: none;
581
- background: transparent;
582
- }
583
- /* multiselect (both: .p-multiselect=React, .p-multi-select=Vue) */
584
- .p-multiselect, .p-multi-select {
644
+ /* multiselect (both) */
645
+ .p-multiselect {
646
+ display: flex;
647
+ align-items: center;
585
648
  height: 48px;
586
649
  font-size: 16px;
587
650
  gap: 8px;
588
651
  border-radius: 6px;
589
652
  border: 1px solid var(--rs-color-neutral-700);
590
653
  background: var(--rs-color-neutral-50);
591
- padding: 0 16px;
654
+ padding: 0;
592
655
  }
593
- .p-multiselect:not(.p-disabled):hover,
594
- .p-multi-select:not(.p-disabled):hover {
656
+ .p-multiselect:not(.p-disabled):hover {
595
657
  border-color: var(--rs-color-stroke-focused);
596
658
  }
597
- .p-multiselect:not(.p-disabled).p-focus,
598
- .p-multi-select:not(.p-disabled).p-focus {
659
+ .p-multiselect:not(.p-disabled).p-focus {
599
660
  outline: none;
600
661
  border-color: var(--rs-color-stroke-focused);
601
662
  box-shadow: none;
602
663
  }
603
664
  /* Vue-only: PrimeReact 10 no emite clases de tamaño para MultiSelect */
604
- .p-multiselect-sm, .p-multi-select-sm {
665
+ .p-multiselect-sm {
605
666
  height: 36px;
606
667
  font-size: 14px;
607
668
  }
608
- .p-multiselect-label, .p-multi-select-label {
669
+ .p-multiselect-label {
609
670
  align-self: center;
610
671
  line-height: normal;
611
672
  border: none;
612
673
  background: transparent;
613
674
  }
614
- .p-multiselect-label-container,
615
- .p-multi-select-label-container,
616
- .p-multiselect-trigger,
617
- .p-multi-select-trigger {
618
- border: none;
619
- background: transparent;
620
- }
621
675
  /* autocomplete (Vue-only: :has(.p-autocomplete-input) targets Vue's structure, not React's) */
622
676
  .p-autocomplete:has(.p-autocomplete-input) {
623
677
  height: 48px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosophy/prime-theme",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",