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