@datarailsshared/datarailsshared 1.6.355 → 1.6.357

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/datarailsshared",
3
- "version": "1.6.355",
3
+ "version": "1.6.357",
4
4
  "description": "DataRails shared components",
5
5
  "keywords": [
6
6
  "angular",
@@ -20,7 +20,7 @@
20
20
  "homepage": "https://bitbucket.org/datarails/datarailsshared/src/master",
21
21
  "exports": {
22
22
  "./styles": {
23
- "default": "./styles.css"
23
+ "default": "./styles.scss"
24
24
  },
25
25
  "./package.json": {
26
26
  "default": "./package.json"
@@ -558,44 +558,407 @@ li.CodeMirror-hint-active {
558
558
  }
559
559
  }
560
560
 
561
- /*
561
+ $dr-chat-max-width: 956px;
562
+ $dr-chat-horizontal-padding: 16px;
563
+ $dr-chat-main-color: #25258c;
564
+ $dr-chat-avatar-width: 28px;
565
+ $dr-chat-avatar-left-indent: 0;
566
+ $dr-chat-avatar-right-indent: 16px;
567
+ $dr-chat-header-text-indent: 20px;
568
+ $dr-chat-box-shadow: 0px 2px 36px 0px rgba(0, 0, 0, 0.15);
569
+
570
+ // DR spacing variables (margin, paddings, etc.)
571
+ $dr-spacing-xxx-small: 2px;
572
+ $dr-spacing-xx-small: 4px;
573
+ $dr-spacing-x-small: 8px;
574
+ $dr-spacing-small: 16px;
575
+ $dr-spacing-medium: 24px;
576
+ $dr-spacing-large: 32px;
577
+ $dr-spacing-x-large: 40px;
578
+ $dr-spacing-xx-large: 48px;
579
+ $dr-spacing-xxx-large: 56px;
580
+
581
+ // DR font variables (family, weight, size, line-height)
582
+ $dr-primary-font-family: 'Poppins', sans-serif;
583
+
584
+ $dr-font-weight-thin: 250;
585
+ $dr-font-weight-extra-light: 275;
586
+ $dr-font-weight-light: 300;
587
+ $dr-font-weight-regular: 400;
588
+ $dr-font-weight-medium: 500;
589
+ $dr-font-weight-semi-bold: 600;
590
+ $dr-font-weight-bold: 700;
591
+ $dr-font-weight-extra-bold: 800;
592
+ $dr-font-weight-black: 900;
593
+
594
+ $dr-font-size-xx-small: 12px;
595
+ $dr-font-size-x-small: 14px;
596
+ $dr-font-size-small: 16px;
597
+ $dr-font-size-medium: 18px;
598
+ $dr-font-size-large: 20px;
599
+ $dr-font-size-x-large: 24px;
600
+ $dr-font-size-xx-large: 32px;
601
+
602
+ $dr-line-height-xx-small: 16px;
603
+ $dr-line-height-x-small: 24px;
604
+ $dr-line-height-small: 24px;
605
+ $dr-line-height-medium: 32px;
606
+ $dr-line-height-large: 32px;
607
+ $dr-line-height-x-large: 40px;
608
+ $dr-line-height-xx-large: 48px;
609
+
610
+ $shared-assets-base: 'https://shared-assets.datarails.com' !default;
611
+
612
+
613
+ @function assets-img-url($path) {
614
+ @return url('#{$shared-assets-base}/dr-assets/images/#{$path}');
615
+ }
616
+
617
+ @mixin dr-icon-svg($name) {
618
+ width: 24px;
619
+ height: 24px;
620
+ background: url('#{$shared-assets-base}/dr-icons/#{$name}.svg');
621
+ }
622
+
623
+ @mixin dr-primary-font(
624
+ $fontSize: $dr-font-size-x-small,
625
+ $fontWeight: $dr-font-weight-regular,
626
+ $line-height: $dr-line-height-x-small
627
+ ) {
628
+ font-family: $dr-primary-font-family;
629
+ font-style: normal;
630
+ font-size: $fontSize;
631
+ font-weight: $fontWeight;
632
+ line-height: $line-height;
633
+ }
634
+
635
+ @mixin dr-dialog-spacing(
636
+ $top: $dr-spacing-medium,
637
+ $right: $dr-spacing-large,
638
+ $bottom: $dr-spacing-medium,
639
+ $left: $dr-spacing-large
640
+ ) {
641
+ padding: $top $right $bottom $left;
642
+ }
643
+
644
+ @mixin dr-typography-caption-1() {
645
+ font-size: $dr-font-size-xx-small;
646
+ line-height: $dr-line-height-xx-small;
647
+ font-weight: $dr-font-weight-regular;
648
+ }
649
+ @mixin dr-typography-caption-2() {
650
+ font-size: $dr-font-size-xx-small;
651
+ line-height: $dr-line-height-xx-small;
652
+ font-weight: $dr-font-weight-medium;
653
+ }
654
+ @mixin dr-typography-caption-3() {
655
+ font-size: $dr-font-size-xx-small;
656
+ line-height: $dr-line-height-xx-small;
657
+ font-weight: $dr-font-weight-semi-bold;
658
+ }
659
+ @mixin dr-typography-body-1() {
660
+ font-size: $dr-font-size-x-small;
661
+ line-height: $dr-line-height-x-small;
662
+ font-weight: $dr-font-weight-regular;
663
+ }
664
+ @mixin dr-typography-body-2() {
665
+ font-size: $dr-font-size-small;
666
+ line-height: $dr-line-height-small;
667
+ font-weight: $dr-font-weight-regular;
668
+ }
669
+ @mixin dr-typography-body-3() {
670
+ font-size: $dr-font-size-medium;
671
+ line-height: $dr-line-height-medium;
672
+ font-weight: $dr-font-weight-regular;
673
+ }
674
+
675
+ @mixin dr-typography-subtitle-1() {
676
+ font-size: $dr-font-size-x-small;
677
+ line-height: $dr-line-height-x-small;
678
+ font-weight: $dr-font-weight-medium;
679
+ }
680
+ @mixin dr-typography-subtitle-2() {
681
+ font-size: $dr-font-size-x-small;
682
+ line-height: $dr-line-height-x-small;
683
+ font-weight: $dr-font-weight-semi-bold;
684
+ }
685
+
686
+ @mixin dr-typography-heading-1() {
687
+ font-size: $dr-font-size-small;
688
+ line-height: $dr-line-height-small;
689
+ font-weight: $dr-font-weight-medium;
690
+ }
691
+ @mixin dr-typography-heading-2() {
692
+ font-size: $dr-font-size-small;
693
+ line-height: $dr-line-height-small;
694
+ font-weight: $dr-font-weight-semi-bold;
695
+ }
696
+ @mixin dr-typography-heading-3() {
697
+ font-size: $dr-font-size-medium;
698
+ line-height: $dr-line-height-medium;
699
+ font-weight: $dr-font-weight-medium;
700
+ }
701
+ @mixin dr-typography-heading-4() {
702
+ font-size: $dr-font-size-medium;
703
+ line-height: $dr-line-height-medium;
704
+ font-weight: $dr-font-weight-semi-bold;
705
+ }
706
+ @mixin dr-typography-heading-5() {
707
+ font-size: $dr-font-size-large;
708
+ line-height: $dr-line-height-large;
709
+ font-weight: $dr-font-weight-semi-bold;
710
+ }
711
+ @mixin dr-typography-heading-6() {
712
+ font-size: $dr-font-size-x-large;
713
+ line-height: $dr-line-height-x-large;
714
+ font-weight: $dr-font-weight-semi-bold;
715
+ }
716
+ @mixin dr-typography-heading-7() {
717
+ font-size: $dr-font-size-xx-large;
718
+ line-height: $dr-line-height-xx-large;
719
+ font-weight: $dr-font-weight-semi-bold;
720
+ }
721
+
722
+ $dr-chat-max-width: 956px;
723
+ $dr-chat-horizontal-padding: 16px;
724
+ $dr-chat-main-color: #25258c;
725
+ $dr-chat-avatar-width: 28px;
726
+ $dr-chat-avatar-left-indent: 0;
727
+ $dr-chat-avatar-right-indent: 16px;
728
+ $dr-chat-header-text-indent: 20px;
729
+ $dr-chat-box-shadow: 0px 2px 36px 0px rgba(0, 0, 0, 0.15);
730
+
731
+ // DR spacing variables (margin, paddings, etc.)
732
+ $dr-spacing-xxx-small: 2px;
733
+ $dr-spacing-xx-small: 4px;
734
+ $dr-spacing-x-small: 8px;
735
+ $dr-spacing-small: 16px;
736
+ $dr-spacing-medium: 24px;
737
+ $dr-spacing-large: 32px;
738
+ $dr-spacing-x-large: 40px;
739
+ $dr-spacing-xx-large: 48px;
740
+ $dr-spacing-xxx-large: 56px;
741
+
742
+ // DR font variables (family, weight, size, line-height)
743
+ $dr-primary-font-family: 'Poppins', sans-serif;
744
+
745
+ $dr-font-weight-thin: 250;
746
+ $dr-font-weight-extra-light: 275;
747
+ $dr-font-weight-light: 300;
748
+ $dr-font-weight-regular: 400;
749
+ $dr-font-weight-medium: 500;
750
+ $dr-font-weight-semi-bold: 600;
751
+ $dr-font-weight-bold: 700;
752
+ $dr-font-weight-extra-bold: 800;
753
+ $dr-font-weight-black: 900;
754
+
755
+ $dr-font-size-xx-small: 12px;
756
+ $dr-font-size-x-small: 14px;
757
+ $dr-font-size-small: 16px;
758
+ $dr-font-size-medium: 18px;
759
+ $dr-font-size-large: 20px;
760
+ $dr-font-size-x-large: 24px;
761
+ $dr-font-size-xx-large: 32px;
762
+
763
+ $dr-line-height-xx-small: 16px;
764
+ $dr-line-height-x-small: 24px;
765
+ $dr-line-height-small: 24px;
766
+ $dr-line-height-medium: 32px;
767
+ $dr-line-height-large: 32px;
768
+ $dr-line-height-x-large: 40px;
769
+ $dr-line-height-xx-large: 48px;
770
+
771
+ $shared-assets-base: 'https://shared-assets.datarails.com' !default;
772
+
773
+ $dr-color-primary-darker: #1d1d6d;
774
+ $dr-color-primary-dark: #25258c;
775
+ $dr-color-primary: #4646ce;
776
+ $dr-color-primary-light: #7f7fdd;
777
+ $dr-color-primary-lighter: #b9b9ec;
778
+ $dr-color-primary-ultra-light: #e2e2ff;
779
+ $dr-color-primary-super-light: #f2f2fb;
780
+ $dr-color-primary-gradient: linear-gradient(96.89deg, #25258c 0%, #4646ce 100%);
781
+
782
+ $dr-color-pink-darker: #680325;
783
+ $dr-color-pink-dark: #981440;
784
+ $dr-color-pink: #c9245b;
785
+ $dr-color-pink-light: #f93576;
786
+ $dr-color-pink-lighter: #fc93b6;
787
+ $dr-color-pink-ultra-lighter: #ffdbe5;
788
+ $dr-color-pink-super-light: #fff1f5;
789
+
790
+ $dr-color-yellow-darker: #9e5f00;
791
+ $dr-color-yellow-dark: #c17700;
792
+ $dr-color-yellow: #ffa310;
793
+ $dr-color-yellow-light: #ffbf5a;
794
+ $dr-color-yellow-lighter: #ffdca4;
795
+ $dr-color-yellow-ultra-light: #ffefd9;
796
+ $dr-color-yellow-super-light: #fff8ee;
797
+
798
+ $dr-color-gray-dark: #4e566c;
799
+ $dr-color-gray-medium-dark: #7e828e;
800
+ $dr-color-gray-darker: #373c4c;
801
+ $dr-color-gray: #9ea1aa;
802
+ $dr-color-gray-medium-light: #dfe0e3;
803
+ $dr-color-gray-light: #f0f1f4;
804
+
805
+ $dr-color-background-main-header: #0c142b;
806
+ $dr-color-background-main: #f6f7f8;
807
+ $dr-color-background-secondary: #fbfbfe;
808
+ $dr-color-background-white: #ffffff;
809
+ $dr-color-background-header: #f2f2fb;
810
+ $dr-color-background-hover: #f5f5f5;
811
+ $dr-color-background-selected: #eaeaff;
812
+ $dr-color-background-disabled: #f0f1f4;
813
+
814
+ $dr-color-background-status-error: #f7d9dc;
815
+ $dr-color-background-status-info: #e6efff;
816
+ $dr-color-background-status-warning: #ffefc7;
817
+ $dr-color-background-status-success: #dbf5e6;
818
+ $dr-color-background-status-progress: #f2f2fb;
819
+ $dr-color-background-status-regular: #f0f1f4;
820
+
821
+ $dr-color-status-error: #bf1d30;
822
+ $dr-color-status-info: #0b5af9;
823
+ $dr-color-status-warning: #ffb800;
824
+ $dr-color-status-success: #037c5a;
825
+ $dr-color-status-progress: #4646ce;
826
+ $dr-color-status-regular: #7e828e;
827
+
828
+ $dr-color-border-divider: #dfe0e3;
829
+ $dr-color-border-input: #9ea1aa;
830
+ $dr-color-border-hover: #4e566c;
831
+ $dr-color-border-disabled: #aeabac;
832
+ $dr-color-border-active: #4646ce;
833
+ $dr-color-border-error: #bf1d30;
834
+
835
+ $dr-color-text-main: #333333;
836
+ $dr-color-text-secondary: #6d6e6f;
837
+ $dr-color-text-disabled: #aeabac;
838
+ $dr-color-text-white: #ffffff;
839
+ $dr-color-text-active: #4646ce;
840
+ $dr-color-text-success: #037c5a;
841
+ $dr-color-text-error: #bf1d30;
842
+ $dr-color-text-warning: #9e5f00;
843
+ $dr-color-text-info: #0b5af9;
844
+
845
+ $dr-color-additional-blue: #0061ff;
846
+ $dr-color-additional-bright-green: #20a452;
847
+ $dr-color-additional-dark-blue: #19194c;
848
+ $dr-color-additional-orange: #ff4e00;
849
+ $dr-color-additional-bright-purple: #b14ef2;
850
+ $dr-color-additional-light-blue: #578aff;
851
+ $dr-color-additional-bright-pink: #f13fa4;
852
+ $dr-color-additional-mouse: #8693a2;
853
+ $dr-color-additional-medium-green: #00867e;
854
+ $dr-color-additional-dark-green: #006334;
855
+ $dr-color-additional-light-pink: #ff6bb7;
856
+ $dr-color-additional-deep-mocha: #523f3e;
857
+ $dr-color-additional-soft-coral: #f3b1af;
858
+ $dr-color-additional-navy-blue: #2e4f8c;
859
+ $dr-color-additional-cool-lagoon: #73c9c5;
860
+ $dr-color-additional-lavender: #baa9f3;
861
+ $dr-color-additional-grape: #753f86;
862
+ $dr-color-additional-royal-purple: #724dca;
863
+ $dr-color-additional-sky-breeze: #80cafa;
864
+ $dr-color-additional-honey: #ffae00;
865
+ $dr-color-additional-fresh-lime: #a8d14b;
866
+ $dr-color-additional-space: #7b61ff;
867
+
868
+ $dr-color-badge-light-purple: #dfd9ff;
869
+ $dr-color-badge-water: #d9f2ff;
870
+ $dr-color-badge-baby-blue: #d9e6ff;
871
+ $dr-color-badge-baby-pink: #ffdbf1;
872
+ $dr-color-badge-light-turquoise: #d6fcf9;
873
+ $dr-color-badge-bright-green: #d9ffea;
874
+ $dr-color-badge-stone: #f6f4f4;
875
+ $dr-color-badge-peach: #ffe5b4;
876
+ $dr-color-badge-soft-coral: #ffd2c2;
877
+ $dr-color-badge-pale-yellow: #fffacd;
878
+ $dr-color-badge-pastel-olive: #dce2b9;
879
+ $dr-color-badge-powder-blue-grey: #d3dbe3;
880
+ $dr-color-badge-muted-plum: #e7c7db;
881
+
882
+ $dr-color-watermarks-pink: #feecf6;
883
+ $dr-color-watermarks-purple: #f7edfe;
884
+ $dr-color-watermarks-medium-purple: #e9cdfc;
885
+ $dr-color-watermarks-dark-purple: #ececfa;
886
+ $dr-color-watermarks-green: #e9f6ee;
887
+ $dr-color-watermarks-medium-green: #c7e4d8;
888
+ $dr-color-watermarks-dark-green: #e5efeb;
889
+ $dr-color-watermarks-blue: #eef3ff;
890
+ $dr-color-watermarks-yellow: #fff6e7;
891
+ $dr-color-watermarks-gray: #f3f4f6;
892
+ $dr-color-watermarks-dark-gray: #e8e8ed;
893
+ $dr-color-watermarks-orange: #ffede5;
894
+
895
+ $dr-color-ai-gradient: linear-gradient(217.44deg, #3d36cd -13.46%, #32b4ff 44.38%);
896
+ $dr-color-ai-background-main-gradient: linear-gradient(266deg, #6969ff 25.2%, #4eb7df 90.24%);
897
+ $dr-color-ai-background-main-hover-gradient:
898
+ linear-gradient(0deg, rgba(77, 77, 205, 0.4) 0%, rgba(77, 77, 205, 0.4) 100%), $dr-color-ai-background-main-gradient;
899
+ $dr-color-ai-background-secondary-hover-gradient:
900
+ linear-gradient(270deg, rgba(105, 105, 255, 0.2) -4.23%, rgba(78, 183, 223, 0.2) 103.6%), #fff;
901
+ $dr-color-ai-border-secondary-gradient: linear-gradient(269.57deg, #6969ff -4.23%, #4eb7df 103.6%);
902
+ $dr-color-ai-light-gradient: linear-gradient(94deg, #f4f4ff 1.6%, #f2fafd 96.19%);
903
+ $dr-color-ai-purple-gradient: linear-gradient(
904
+ 31deg,
905
+ #7676ff -0.84%,
906
+ #5959ff 21.77%,
907
+ #5757e0 46%,
908
+ #4646ce 83.81%,
909
+ #4b4be4 117.26%,
910
+ #4444eb 140.53%
911
+ );
912
+
913
+
914
+ @mixin dr-button-highlight-theme-inner-button {
915
+ button {
916
+ border: none;
917
+ background: none;
918
+ color: $dr-color-text-active;
919
+ padding: 0 $dr-spacing-xx-small;
920
+ text-decoration: none;
921
+ }
562
922
 
923
+ button:hover,
924
+ &.active button,
925
+ button:active {
926
+ text-decoration: underline;
927
+ }
563
928
 
564
- .dr-button-link {
565
- @include dr-typography-body-1();
566
- display: inline-flex;
567
- align-items: center;
568
- cursor: pointer;
929
+ &.disabled button {
930
+ color: $dr-color-text-disabled;
931
+ }
932
+ }
569
933
 
570
- @include dr-button-highlight-theme-link;
934
+ @mixin dr-button-highlight-theme-link {
935
+ border: none;
936
+ background: none;
937
+ color: $dr-color-text-active;
938
+ padding: 0 $dr-spacing-xx-small;
939
+ text-decoration: none;
940
+
941
+ &:hover,
942
+ &:active {
943
+ text-decoration: underline;
944
+ }
945
+
946
+ &.disabled {
947
+ color: $dr-color-text-disabled;
948
+ }
571
949
  }
572
950
 
573
- .dr-button-link.disabled {
574
- pointer-events: none;
575
- } */
576
951
 
577
- /* TODO: Revert to SCSS after refactor scss bundling */
578
952
  .dr-button-link {
579
- font-size: 14px;
580
- line-height: 24px;
581
- font-weight: 400;
953
+ @include dr-typography-body-1();
582
954
  display: inline-flex;
583
955
  align-items: center;
584
956
  cursor: pointer;
585
- border: none;
586
- background: none;
587
- color: #4646ce;
588
- padding: 0 4px;
589
- text-decoration: none;
590
- }
591
957
 
592
- .dr-button-link:hover,
593
- .dr-button-link:active {
594
- text-decoration: underline;
958
+ @include dr-button-highlight-theme-link;
595
959
  }
596
960
 
597
961
  .dr-button-link.disabled {
598
- color: #aeabac;
599
962
  pointer-events: none;
600
963
  }
601
964