superdesk-ui-framework 6.1.0 → 6.1.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.
@@ -125,7 +125,7 @@
125
125
  --sd-colour-superdesk-l--20: var(--sd-colour-superdesk-hs), 20%;
126
126
  --sd-colour-superdesk-l--30: var(--sd-colour-superdesk-hs), 30%;
127
127
  --sd-colour-superdesk-l--40: var(--sd-colour-superdesk-hs), 40%;// Default
128
- --sd-colour-superdesk-l--50: var(--sd-colour-superdesk-hs), 50%;
128
+ --sd-colour-superdesk-l--50: var(--sd-colour-superdesk-hs), 50%;
129
129
  --sd-colour-superdesk-l--60: var(--sd-colour-superdesk-hs), 60%;
130
130
  --sd-colour-superdesk-l--70: var(--sd-colour-superdesk-hs), 70%;
131
131
  --sd-colour-superdesk-l--80: var(--sd-colour-superdesk-hs), 80%;
@@ -328,12 +328,12 @@
328
328
  --color-dropdown-menu-Bg: var(--sd-colour-bg--99);
329
329
 
330
330
  --color-modal-Bg: var(--sd-colour-bg--99);
331
-
331
+
332
332
  --sd-colour--shadow-line: hsla(var(--sd-colour-cool-grey-l--70), 0);
333
333
  --sd-colour--shadow-line--m: hsla(var(--sd-colour-cool-grey-l--80), 0);
334
334
 
335
335
  --sd-shadow__subnav: 0 1px 0px var(--sd-colour--shadow-line), 0 1px 3px hsla(0, 0%, 0%, 0.07), 0 1px 0 0 hsla(0, 0%, 0%, 0.1);
336
-
336
+
337
337
  --sd-shadow__item--selected: 0 0 0 2px var(--sd-colour-interactive), 0 0 0 5px var(--sd-colour-interactive--alpha-30);
338
338
  --sd-shadow__item--unread: 0 0 0 1px var(--sd-colour-interactive--alpha-30), inset 0 0 0 3px var(--sd-colour-interactive--alpha-30);
339
339
  --sd-shadow__item--selected-thin: 0 0 0 1px var(--sd-colour-interactive), inset 0 0 0 2px var(--sd-colour-interactive--alpha-30);
@@ -640,16 +640,16 @@
640
640
  --sd-card-header-bg-color--gradient-1: linear-gradient(180deg, rgba(96,184,194,1) 2%, rgba(30,176,108,1) 90%);
641
641
 
642
642
 
643
- --sd-colour-test-1: hsl(308 71% 40% / 50%);
643
+ --sd-colour-test-1: hsl(308 71% 40% / 50%);
644
644
  --sd-colour-test-2: hsl(9 59% 49% / 0.5);
645
-
645
+
646
646
  --sd-colour-background__main-list: hsla(0, 0%, 97%, 1);
647
-
647
+
648
648
  --sd-colour-background__base--00: hsla(0, 0%, 100%, 1);
649
649
  --sd-colour-background__base--10: hsla(0, 0%, 90%, 1);
650
650
  --sd-colour-background__base--20: hsla(0, 0%, 80%, 1);
651
651
  --sd-colour-background__base--30: hsla(0, 0%, 70%, 1);
652
-
652
+
653
653
  --color-text: hsla(214, 13%, 20%, 1);
654
654
  --color-text-light: hsla(214, 13%, 40%, 1);
655
655
  --color-text-muted: hsla(214, 13%, 40%, 1);
@@ -661,7 +661,7 @@
661
661
  --sd-slugline-color: hsl(197, 100%, 25%) !important;
662
662
  --sd-time-schedule-color: hsla(268, 100%, 25%, 1);
663
663
  --sd-navy-color: hsla(240, 100%, 25%, 1);
664
-
664
+
665
665
  // Inputs & Form elements
666
666
  --color-input-bg: hsla(214, 13%, 50%, 0.1);
667
667
  --color-input-bg--hover: hsla(214, 13%, 50%, 0.16);
@@ -672,38 +672,38 @@
672
672
  --color-form-bg: hsla(0, 0%, 100%, 0);
673
673
  --color-checkbox-border: hsla(0, 0%, 0%, 0.2);
674
674
  --color-checkbox-border-hover: hsla(0, 0%, 0%, 0.4);
675
-
675
+
676
676
  --color-selected-bg: hsla(196, 35%, 94%, 1);
677
677
  --color-selected-bg--hover: hsla(196, 35%, 93%, 1);
678
-
678
+
679
679
  --color-bg-00: hsla(0, 0%, 100%, 1);
680
680
  --color-bg-50: hsla(0, 0%, 97%, 1);
681
681
  --color-bg-100: hsla(0, 0%, 93%, 1);
682
682
  --color-bg-150: hsla(0, 0%, 87%, 1);
683
683
  --color-bg-200: hsla(0, 0%, 63%, 1);
684
684
  --color-bg-800: hsla(0, 0%, 17%, 1);
685
-
685
+
686
686
  --color-kanban-border: hsla(0, 0%, 30%, 1);
687
-
687
+
688
688
  // Search
689
689
  --color-inset-search-bg: hsla(0, 0%, 100%, 1);
690
690
  --color-inset-search-border: hsla(0, 0%, 0%, 0.2);
691
691
  --color-inset-search-border-hover: hsla(0, 0%, 0%, 0.35);
692
-
692
+
693
693
  --color-assignment-to-do: hsla(4, 89%, 41%, 1); //red--700
694
694
  --color-assignment-progress: hsla(36, 100%, 41%, 1); //orange--600
695
695
  --color-assignment-completed: hsla(88, 50%, 44%, 1); //light-green--600
696
-
696
+
697
697
  --color-grid-item-Bg: hsla(0, 0%, 100%, 1);
698
-
698
+
699
699
  // Dropdown
700
-
700
+
701
701
  --color-dropdown-menu-text: hsla(0, 0%, 20%, 1);
702
702
  --color-navbutton-dropdown-open-bg: hsla(0, 0%, 100%);
703
-
703
+
704
704
  --color-border-line--light: hsla(0, 0%, 90%, 1);
705
705
  --color-border-line--medium: hsla(0, 0%, 80%, 1);
706
-
706
+
707
707
  // SubNav & Nav Buttons
708
708
  --color-subnav-bg--00: hsla(214, 13%, 96%, 1);
709
709
  --color-subnav-bg--10: hsla(214, 13%, 87%, 1);
@@ -711,7 +711,7 @@
711
711
  --color-subnav-bg--blueGrey-10: hsla(200, 34%, 24%, 1);
712
712
  --color-navbutton-bg-hover: hsla(214, 13%, 10%, 0.05);
713
713
  --color-navbutton-bg-active: hsla(214, 13%, 100%, 1);
714
-
714
+
715
715
  --color-navbutton-bg-100: hsla(214, 13%, 10%, 0.06);
716
716
  --color-navbutton-bg-100-hover: hsla(214, 13%, 10%, 0.12);
717
717
 
@@ -721,19 +721,19 @@
721
721
  --color-navbutton-shadow-active: hsla(214, 13%, 5%, 0.12);
722
722
 
723
723
  }
724
-
724
+
725
725
  // CSS variables for dark theme
726
-
726
+
727
727
  [data-theme="dark-ui"], .dark-ui {
728
-
728
+
729
729
  //--color-background-topmenu: hsla(0, 0%, 10%, 1);
730
730
  --sd-colour-background__main-list: hsla(214, 13%, 14%, 1);
731
-
731
+
732
732
  --sd-colour-background__base--00: hsla(0, 0%, 0%, 1);
733
733
  --sd-colour-background__base--10: hsla(0, 0%, 10%, 1);
734
734
  --sd-colour-background__base--20: hsla(0, 0%, 20%, 1);
735
735
  --sd-colour-background__base--30: hsla(0, 0%, 30%, 1);
736
-
736
+
737
737
  //color: hsla(0, 0%, 100%, 1);
738
738
  --color-text: hsla(0, 0%, 96%, 1);
739
739
  --color-text-light: hsla(214, 13%, 76%, 1);
@@ -746,7 +746,7 @@
746
746
  --sd-slugline-color: hsla(197, 60%, 75%, 1) !important;
747
747
  --sd-time-schedule-color: hsla(268, 60%, 65%, 1);
748
748
  --sd-navy-color: hsla(240, 90%, 75%, 1);
749
-
749
+
750
750
  // Inputs & Form elements
751
751
  --color-label-text: hsla(214, 13%, 80%, 1) !important;
752
752
  --color-input-bg: hsla(214, 13%, 80%, 0.08);
@@ -757,40 +757,40 @@
757
757
  --color-form-bg: hsla(0, 0%, 23%, 1);
758
758
  --color-checkbox-border: hsla(0, 0%, 100%, 0.2);
759
759
  --color-checkbox-border-hover: hsla(0, 0%, 100%, 0.4);
760
-
760
+
761
761
  --color-selected-bg: hsla(200, 5%, 22%, 1);
762
762
  --color-selected-bg--hover: hsla(202, 9%, 25%, 1);
763
-
763
+
764
764
  --color-bg-00: hsla(0, 0%, 7%, 1);
765
765
  --color-bg-50: hsla(0, 0%, 25%, 1);
766
766
  --color-bg-100: hsla(0, 0%, 23%, 1);
767
767
  --color-bg-150: hsla(0, 0%, 19%, 1);
768
768
  --color-bg-200: hsla(0, 0%, 28%, 1);
769
769
  --color-bg-800: hsla(0, 0%, 13%, 1);
770
-
770
+
771
771
  --color-kanban-border: hsla(0, 0%, 56%, 1);
772
-
772
+
773
773
  // Search
774
774
  --color-inset-search-bg: hsla(0, 0%, 0%, 0.2);
775
775
  --color-inset-search-border: hsla(0, 0%, 100%, 0.35);
776
776
  --color-inset-search-border-hover: hsla(0, 0%, 100%, 0.55);
777
-
777
+
778
778
  --color-grid-item-Bg: hsla(0, 0%, 20%, 1);
779
-
779
+
780
780
  // Dropdown
781
-
781
+
782
782
  --color-dropdown-menu-text: hsla(0, 0%, 90%, 1);
783
783
  --color-navbutton-dropdown-open-bg: hsla(0, 0%, 16%, 1);
784
-
784
+
785
785
  --color-border-line--light: hsla(0, 0%, 100%, 0.1);
786
786
  --color-border-line--medium: hsla(0, 0%, 100%, 0.2);
787
-
787
+
788
788
  //SubNav & Nav Buttons
789
789
  --color-subnav-bg--00: hsla(0, 0%, 16%, 1);
790
790
  --color-subnav-bg--10: hsla(0, 0%, 32%, 1);
791
791
  --color-subnav-bg--blueGrey-00: hsla(200, 34%, 30%, 1);
792
792
  --color-subnav-bg--blueGrey-10: hsla(200, 34%, 24%, 1);
793
-
793
+
794
794
  --color-navbutton-bg-hover: hsla(0, 0%, 0%, 0.1);
795
795
  --color-navbutton-bg-active: hsla(0, 0%, 100%, 0.08);
796
796
 
@@ -801,7 +801,7 @@
801
801
  --color-navbutton-bg-dark-hover: hsla(214, 13%, 35%, 1);
802
802
 
803
803
  --color-navbutton-shadow-active: hsla(214, 13%, 96%, 0.12);
804
-
804
+
805
805
  [class^="big-icon--"],
806
806
  [class*=" big-icon--"] {
807
807
  color: var(--color-text);
@@ -810,7 +810,7 @@
810
810
 
811
811
  /// ======= END from _colors.scss ======== ///////////
812
812
  /// ====================================== ///////////
813
- ///
813
+ ///
814
814
  .colour-test--1 {
815
815
  background-color: var(--sd-colour-test-1);
816
816
  }
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import classNames from 'classnames';
3
- interface IProps {
3
+
4
+ export interface IIconProps {
4
5
  name?: string;
5
6
  size?: 'small' | 'big'; // defaults to 'small'
6
7
  type?: 'default' | 'primary' | 'success' | 'warning' | 'alert' | 'highlight' | 'light' | 'white';
@@ -10,7 +11,7 @@ interface IProps {
10
11
  color?: string;
11
12
  }
12
13
 
13
- export class Icon extends React.PureComponent<IProps> {
14
+ export class Icon extends React.PureComponent<IIconProps> {
14
15
  render() {
15
16
  let classes = classNames(this.props.className, {
16
17
  [`icon-${this.props.name}`]:
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import {Icon} from '../Icon';
2
+ import {Icon, IIconProps} from '../Icon';
3
3
  import {Badge} from '../Badge';
4
4
  import classNames from 'classnames';
5
5
 
@@ -15,6 +15,7 @@ interface IProps {
15
15
  export interface ISideBarTab {
16
16
  id: string;
17
17
  icon: string;
18
+ type?: IIconProps['type'];
18
19
  size: 'small' | 'big'; // defaults to 'small'
19
20
  tooltip?: string;
20
21
  badgeValue?: string;
@@ -68,7 +69,7 @@ export class SideBarTabs extends React.PureComponent<IProps> {
68
69
  {item.badgeValue != null && <Badge text={item['badgeValue']} type="primary" />}
69
70
 
70
71
  <span className="sd-sidetab-menu__main-icon ">
71
- <Icon size={item['size']} name={item['icon']} />
72
+ <Icon size={item.size} name={item.icon} type={item.type} />
72
73
  </span>
73
74
 
74
75
  <i className="sd-sidetab-menu__helper-icon icon-close-small"></i>
@@ -36,7 +36,7 @@ const DEFAULT_STATE_COLOR_MAP: Record<string, IStateColorConfig> = {
36
36
  spiked: {type: 'alert', style: 'hollow'},
37
37
  recalled: {type: 'alert', style: 'hollow'},
38
38
  killed: {type: 'alert', style: 'hollow'},
39
- scheduled: {type: 'highlight', style: 'hollow'},
39
+ scheduled: {type: 'warning', style: 'hollow'},
40
40
  corrected: {type: 'sd-green', style: 'hollow'},
41
41
  correction: {color: 'pink--500', style: 'filled'},
42
42
  being_corrected: {color: 'pink--500', style: 'hollow'},