@vector-business-services/cristal-ds-web 0.2.0 → 0.4.0

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/index.css CHANGED
@@ -337,6 +337,40 @@
337
337
  border-color: var(--cr-color-stroke-disabled-base);
338
338
  }
339
339
 
340
+ /* src/components/Card/Card.css */
341
+ .cr-card {
342
+ display: flex;
343
+ flex-direction: column;
344
+ box-sizing: border-box;
345
+ border-radius: var(--cr-radius-medium);
346
+ background-color: var(--cr-color-fill-neutral-container);
347
+ }
348
+ .cr-card__body,
349
+ .cr-card__content {
350
+ display: flex;
351
+ flex: 1 0 auto;
352
+ flex-direction: column;
353
+ min-height: 0;
354
+ }
355
+ .cr-card--xsmall {
356
+ padding: var(--cr-padding-padding-4);
357
+ }
358
+ .cr-card--small {
359
+ padding: var(--cr-padding-padding-5);
360
+ }
361
+ .cr-card--medium {
362
+ padding: var(--cr-padding-padding-6);
363
+ }
364
+ .cr-card--large {
365
+ padding: var(--cr-padding-padding-7);
366
+ }
367
+ .cr-card--xlarge {
368
+ padding: var(--cr-padding-padding-8);
369
+ }
370
+ .cr-card--outline {
371
+ box-shadow: inset 0 0 0 var(--cr-stroke-x-small) var(--cr-color-stroke-neutral-base);
372
+ }
373
+
340
374
  /* src/components/Chip/Chip.css */
341
375
  .cr-chip {
342
376
  display: inline-flex;
@@ -625,6 +659,431 @@
625
659
  background-color: var(--cr-color-fill-brand-subtlest);
626
660
  }
627
661
 
662
+ /* src/components/Menu/Menu.css */
663
+ .cr-menu {
664
+ box-sizing: border-box;
665
+ width: 320px;
666
+ padding: var(--cr-padding-padding-5);
667
+ border: var(--cr-stroke-x-small) solid var(--cr-color-stroke-neutral-base);
668
+ border-radius: var(--cr-radius-medium);
669
+ background-color: var(--cr-color-fill-neutral-container);
670
+ box-shadow: var(--cr-elevation-gray-bottom-3);
671
+ color: var(--cr-color-text-neutral-base);
672
+ font-family: var(--cr-typography-body-small-14-regular-font-family);
673
+ font-size: var(--cr-typography-body-small-14-regular-font-size);
674
+ font-weight: var(--cr-typography-body-small-14-regular-font-weight);
675
+ line-height: var(--cr-typography-body-small-14-regular-line-height);
676
+ letter-spacing: var(--cr-typography-body-small-14-regular-letter-spacing);
677
+ }
678
+ .cr-menu--popup {
679
+ position: absolute;
680
+ }
681
+ .cr-menu--popup[style*="transform-origin: center top"] {
682
+ margin-top: var(--cr-spacing-spacing-3);
683
+ }
684
+ .cr-menu--popup[style*="transform-origin: center bottom"] {
685
+ margin-top: calc(var(--cr-spacing-spacing-3) * -1);
686
+ }
687
+ .cr-menu__list {
688
+ --cr-menu-item-height: 37px;
689
+ max-height: calc(var(--cr-menu-item-height) * 5);
690
+ margin: -3px;
691
+ padding: 3px;
692
+ overflow-y: auto;
693
+ list-style: none;
694
+ outline: none;
695
+ }
696
+ .cr-menu--compact .cr-menu__list {
697
+ --cr-menu-item-height: 29px;
698
+ }
699
+ .cr-menu__list::-webkit-scrollbar {
700
+ width: 8px;
701
+ }
702
+ .cr-menu__list::-webkit-scrollbar-track {
703
+ border-radius: var(--cr-radius-full);
704
+ background-color: var(--cr-color-fill-neutral-subtlest);
705
+ }
706
+ .cr-menu__list::-webkit-scrollbar-thumb {
707
+ border-radius: var(--cr-radius-full);
708
+ background-color: var(--cr-color-fill-neutral-subtle);
709
+ }
710
+ @supports not selector(::-webkit-scrollbar) {
711
+ .cr-menu__list {
712
+ scrollbar-width: thin;
713
+ scrollbar-color: var(--cr-color-fill-neutral-subtle) var(--cr-color-fill-neutral-subtlest);
714
+ }
715
+ }
716
+ .cr-menu__action {
717
+ display: flex;
718
+ align-items: center;
719
+ gap: var(--cr-spacing-spacing-4);
720
+ box-sizing: border-box;
721
+ height: var(--cr-menu-item-height);
722
+ padding: var(--cr-padding-padding-4) var(--cr-padding-padding-5);
723
+ border-radius: var(--cr-radius-x-small);
724
+ background-color: var(--cr-color-fill-neutral-container);
725
+ color: inherit;
726
+ text-decoration: none;
727
+ cursor: pointer;
728
+ }
729
+ .cr-menu--compact .cr-menu__action {
730
+ padding: var(--cr-padding-padding-3) var(--cr-padding-padding-5);
731
+ }
732
+ .cr-menu__label {
733
+ flex: 1;
734
+ min-width: 0;
735
+ overflow: hidden;
736
+ text-overflow: ellipsis;
737
+ white-space: nowrap;
738
+ }
739
+ .cr-menu__icon {
740
+ display: inline-flex;
741
+ flex-shrink: 0;
742
+ color: var(--cr-color-icon-neutral-base);
743
+ font-size: 20px;
744
+ }
745
+ .cr-menu__item:hover .cr-menu__action {
746
+ background-color: var(--cr-color-fill-neutral-container-hover);
747
+ }
748
+ .cr-menu__list:focus-visible .cr-menu__item[data-p-focused=true] .cr-menu__action {
749
+ background-color: var(--cr-color-fill-neutral-container);
750
+ box-shadow: inset 0 0 0 var(--cr-stroke-x-small) var(--cr-color-stroke-brand-base), var(--cr-effects-focus-ring);
751
+ }
752
+ .cr-menu__item--selected .cr-menu__action,
753
+ .cr-menu__item--selected:hover .cr-menu__action {
754
+ background-color: var(--cr-color-fill-selected-subtlest);
755
+ color: var(--cr-color-text-brand-base);
756
+ }
757
+ .cr-menu__item--selected .cr-menu__icon {
758
+ color: var(--cr-color-icon-brand-base);
759
+ }
760
+ .cr-menu__item[data-p-disabled=true] .cr-menu__action {
761
+ color: var(--cr-color-text-disabled-base);
762
+ cursor: not-allowed;
763
+ }
764
+ .cr-menu__item[data-p-disabled=true]:hover .cr-menu__action {
765
+ background-color: var(--cr-color-fill-neutral-container);
766
+ }
767
+ .cr-menu__loading {
768
+ display: flex;
769
+ align-items: center;
770
+ justify-content: center;
771
+ height: var(--cr-menu-item-height);
772
+ color: var(--cr-color-icon-neutral-subtle);
773
+ font-size: 24px;
774
+ }
775
+ .cr-menu__spinner {
776
+ animation: cr-menu-spin 1s linear infinite;
777
+ }
778
+ @media (prefers-reduced-motion: reduce) {
779
+ .cr-menu__spinner {
780
+ animation-duration: 3s;
781
+ }
782
+ }
783
+ @keyframes cr-menu-spin {
784
+ to {
785
+ transform: rotate(360deg);
786
+ }
787
+ }
788
+
789
+ /* src/components/Tooltip/Tooltip.css */
790
+ .cr-tooltip {
791
+ position: absolute;
792
+ top: -9999px;
793
+ left: -9999px;
794
+ pointer-events: none;
795
+ }
796
+ .cr-tooltip--top,
797
+ .cr-tooltip--bottom {
798
+ padding: var(--cr-padding-padding-3) 0;
799
+ }
800
+ .cr-tooltip--left,
801
+ .cr-tooltip--right {
802
+ padding: 0 var(--cr-padding-padding-3);
803
+ }
804
+ .cr-tooltip__arrow {
805
+ display: none;
806
+ }
807
+ .cr-tooltip__text {
808
+ box-sizing: border-box;
809
+ padding: var(--cr-padding-padding-4) var(--cr-padding-padding-5);
810
+ border-radius: var(--cr-radius-small);
811
+ background-color: var(--cr-color-fill-neutral-boldest);
812
+ color: var(--cr-color-text-inverse-base);
813
+ font-family: var(--cr-typography-label-medium-12-semibold-font-family);
814
+ font-size: var(--cr-typography-label-medium-12-semibold-font-size);
815
+ font-weight: var(--cr-typography-label-medium-12-semibold-font-weight);
816
+ line-height: var(--cr-typography-label-medium-12-semibold-line-height);
817
+ letter-spacing: var(--cr-typography-label-medium-12-semibold-letter-spacing);
818
+ }
819
+ .cr-tooltip--plain .cr-tooltip__text {
820
+ white-space: nowrap;
821
+ }
822
+ .cr-tooltip--rich .cr-tooltip__text {
823
+ max-width: 300px;
824
+ white-space: pre-line;
825
+ overflow-wrap: break-word;
826
+ }
827
+
828
+ /* src/components/Menubar/Menubar.css */
829
+ .cr-menubar {
830
+ container-type: inline-size;
831
+ }
832
+ .cr-menubar__bar {
833
+ display: grid;
834
+ grid-template-columns: 1fr clamp(300px, calc(100cqw * 400 / 1360), 500px) 1fr;
835
+ column-gap: var(--cr-spacing-spacing-6);
836
+ align-items: center;
837
+ box-sizing: border-box;
838
+ height: 64px;
839
+ padding: 0 var(--cr-padding-padding-8);
840
+ border-bottom: var(--cr-stroke-x-small) solid var(--cr-color-stroke-neutral-base);
841
+ background-color: var(--cr-color-fill-neutral-container);
842
+ color: var(--cr-color-text-neutral-base);
843
+ font-family: var(--cr-typography-body-small-14-regular-font-family);
844
+ font-size: var(--cr-typography-body-small-14-regular-font-size);
845
+ font-weight: var(--cr-typography-body-small-14-regular-font-weight);
846
+ line-height: var(--cr-typography-body-small-14-regular-line-height);
847
+ letter-spacing: var(--cr-typography-body-small-14-regular-letter-spacing);
848
+ }
849
+ .cr-menubar--no-search .cr-menubar__bar {
850
+ grid-template-columns: 1fr auto;
851
+ }
852
+ .cr-menubar__start {
853
+ display: contents;
854
+ }
855
+ .cr-menubar__init {
856
+ display: flex;
857
+ gap: var(--cr-spacing-spacing-6);
858
+ align-items: center;
859
+ justify-self: start;
860
+ }
861
+ .cr-menubar__logo {
862
+ position: relative;
863
+ display: block;
864
+ flex-shrink: 0;
865
+ width: 120px;
866
+ height: 40px;
867
+ overflow: hidden;
868
+ }
869
+ .cr-menubar__logo-texto {
870
+ position: absolute;
871
+ top: 14.09px;
872
+ left: 1px;
873
+ width: 67.293px;
874
+ height: 11.618px;
875
+ }
876
+ .cr-menubar__logo-simbolo {
877
+ position: absolute;
878
+ top: 10px;
879
+ left: 76.41px;
880
+ width: 42.706px;
881
+ height: 20px;
882
+ }
883
+ .cr-menubar__menu-button,
884
+ .cr-menubar__tool {
885
+ position: relative;
886
+ display: inline-flex;
887
+ flex-shrink: 0;
888
+ align-items: center;
889
+ justify-content: center;
890
+ width: 40px;
891
+ height: 40px;
892
+ padding: 0;
893
+ border: 0;
894
+ border-radius: var(--cr-radius-full);
895
+ background-color: transparent;
896
+ color: var(--cr-color-icon-neutral-subtle);
897
+ cursor: pointer;
898
+ transition: background-color 120ms ease, color 120ms ease;
899
+ }
900
+ .cr-menubar__menu-icon,
901
+ .cr-menubar__tool-icon,
902
+ .cr-menubar__search-icon {
903
+ display: inline-flex;
904
+ font-size: 20px;
905
+ }
906
+ .cr-menubar__menu-button:focus-visible,
907
+ .cr-menubar__tool:focus-visible,
908
+ .cr-menubar__search-button:focus-visible,
909
+ .cr-menubar__profile--button:focus-visible {
910
+ outline: none;
911
+ box-shadow: var(--cr-effects-focus-ring);
912
+ }
913
+ .cr-menubar__menu-button:hover {
914
+ background-color: var(--cr-color-fill-neutral-subtlest);
915
+ color: var(--cr-color-icon-neutral-base);
916
+ }
917
+ .cr-menubar__menu-button--active,
918
+ .cr-menubar__menu-button--active:hover {
919
+ background-color: var(--cr-color-fill-brand-subtlest);
920
+ color: var(--cr-color-icon-brand-base);
921
+ }
922
+ .cr-menubar__tools {
923
+ display: flex;
924
+ gap: var(--cr-spacing-spacing-2);
925
+ align-items: center;
926
+ }
927
+ .cr-menubar__tool {
928
+ background-color: var(--cr-color-fill-neutral-container);
929
+ }
930
+ .cr-menubar__tool:hover,
931
+ .cr-menubar__tool--active {
932
+ background-color: var(--cr-color-fill-neutral-subtlest);
933
+ color: var(--cr-color-icon-neutral-base);
934
+ }
935
+ .cr-menubar__badge {
936
+ position: absolute;
937
+ top: -4px;
938
+ left: 20px;
939
+ }
940
+ .cr-menubar__search {
941
+ display: flex;
942
+ gap: var(--cr-spacing-spacing-6);
943
+ align-items: center;
944
+ justify-self: center;
945
+ box-sizing: border-box;
946
+ width: 100%;
947
+ height: 40px;
948
+ padding: 0 var(--cr-padding-padding-2) 0 var(--cr-padding-padding-7);
949
+ border-radius: var(--cr-radius-full);
950
+ background-color: var(--cr-color-fill-neutral-subtler);
951
+ transition: background-color 120ms ease;
952
+ }
953
+ .cr-menubar__search:hover {
954
+ background-color: var(--cr-color-fill-neutral-subtle);
955
+ }
956
+ .cr-menubar__search:focus-within {
957
+ box-shadow: var(--cr-effects-focus-ring);
958
+ }
959
+ .cr-menubar__search-input {
960
+ flex: 1;
961
+ min-width: 0;
962
+ padding: 0;
963
+ border: 0;
964
+ background: none;
965
+ color: var(--cr-color-text-neutral-base);
966
+ font: inherit;
967
+ letter-spacing: inherit;
968
+ outline: none;
969
+ }
970
+ .cr-menubar__search-input::placeholder {
971
+ color: var(--cr-color-text-neutral-subtle);
972
+ opacity: 1;
973
+ }
974
+ .cr-menubar__search-button {
975
+ display: inline-flex;
976
+ flex-shrink: 0;
977
+ align-items: center;
978
+ justify-content: center;
979
+ width: 36px;
980
+ height: 36px;
981
+ padding: 0;
982
+ border: 0;
983
+ border-radius: var(--cr-radius-full);
984
+ background-color: transparent;
985
+ color: var(--cr-color-icon-neutral-subtle);
986
+ cursor: pointer;
987
+ }
988
+ .cr-menubar__search-button:hover {
989
+ background-color: var(--cr-color-fill-neutral-container);
990
+ color: var(--cr-color-icon-brand-base);
991
+ }
992
+ .cr-menubar__end {
993
+ display: flex;
994
+ gap: var(--cr-spacing-spacing-3);
995
+ align-items: center;
996
+ justify-self: end;
997
+ }
998
+ .cr-menubar__profile {
999
+ display: flex;
1000
+ gap: var(--cr-padding-padding-6);
1001
+ align-items: center;
1002
+ justify-content: flex-end;
1003
+ box-sizing: border-box;
1004
+ min-width: 124px;
1005
+ max-width: 220px;
1006
+ padding: var(--cr-padding-padding-3);
1007
+ border: 0;
1008
+ border-radius: var(--cr-radius-small);
1009
+ background-color: transparent;
1010
+ color: inherit;
1011
+ font: inherit;
1012
+ letter-spacing: inherit;
1013
+ text-align: right;
1014
+ }
1015
+ .cr-menubar__profile--button {
1016
+ cursor: pointer;
1017
+ transition: background-color 120ms ease;
1018
+ }
1019
+ .cr-menubar__profile--button:hover {
1020
+ background-color: var(--cr-color-fill-neutral-subtlest);
1021
+ }
1022
+ .cr-menubar__profile-text {
1023
+ display: flex;
1024
+ flex: 1;
1025
+ flex-direction: column;
1026
+ align-items: flex-end;
1027
+ min-width: 0;
1028
+ white-space: nowrap;
1029
+ }
1030
+ .cr-menubar__profile-name,
1031
+ .cr-menubar__profile-role {
1032
+ max-width: 100%;
1033
+ overflow: hidden;
1034
+ text-overflow: ellipsis;
1035
+ }
1036
+ .cr-menubar__profile-name {
1037
+ color: var(--cr-color-text-neutral-base);
1038
+ font-family: var(--cr-typography-body-small-14-semibold-font-family);
1039
+ font-size: var(--cr-typography-body-small-14-semibold-font-size);
1040
+ font-weight: var(--cr-typography-body-small-14-semibold-font-weight);
1041
+ line-height: var(--cr-typography-body-small-14-semibold-line-height);
1042
+ }
1043
+ .cr-menubar__profile-role {
1044
+ color: var(--cr-color-text-neutral-subtlest);
1045
+ }
1046
+ .cr-menubar__avatar {
1047
+ display: inline-flex;
1048
+ flex-shrink: 0;
1049
+ align-items: center;
1050
+ justify-content: center;
1051
+ box-sizing: border-box;
1052
+ width: 40px;
1053
+ height: 40px;
1054
+ overflow: hidden;
1055
+ border: var(--cr-stroke-x-small) solid var(--cr-color-stroke-neutral-base);
1056
+ border-radius: var(--cr-radius-full);
1057
+ }
1058
+ .cr-menubar__avatar-image {
1059
+ width: 100%;
1060
+ height: 100%;
1061
+ object-fit: cover;
1062
+ }
1063
+ .cr-menubar__avatar--initial {
1064
+ background-color: var(--cr-color-fill-brand-subtle);
1065
+ color: var(--cr-color-text-brand-base);
1066
+ font-family: var(--cr-typography-body-large-18-semibold-font-family);
1067
+ font-size: var(--cr-typography-body-large-18-semibold-font-size);
1068
+ font-weight: var(--cr-typography-body-large-18-semibold-font-weight);
1069
+ line-height: var(--cr-typography-body-large-18-semibold-line-height);
1070
+ }
1071
+ @container (max-width: 1359px) {
1072
+ .cr-menubar .cr-menubar__bar {
1073
+ grid-template-columns: 1fr auto;
1074
+ padding: 0 var(--cr-padding-padding-6);
1075
+ }
1076
+ .cr-menubar__search,
1077
+ .cr-menubar__tool:not(.cr-menubar__tool--tablet) {
1078
+ display: none;
1079
+ }
1080
+ }
1081
+ @container (max-width: 767px) {
1082
+ .cr-menubar__end {
1083
+ display: none;
1084
+ }
1085
+ }
1086
+
628
1087
  /* src/components/MultiSelect/MultiSelect.css */
629
1088
  .cr-multiselect .cr-multiselect__control {
630
1089
  cursor: pointer;