@typeolymp/ui-components 3.0.18 → 3.0.19

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.
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { PropsType as IconPropsType } from "../Icon";
3
3
  export declare type PropsType = {
4
4
  label: string | JSX.Element;
5
- color?: "blue" | "green" | "red" | "white";
5
+ color?: "blue" | "green" | "darkGreen" | "red" | "purple" | "white";
6
6
  size?: "small" | "medium";
7
7
  fluid?: boolean;
8
8
  disabled?: boolean;
package/build/index.es.js CHANGED
@@ -46,6 +46,12 @@ var theme = {
46
46
  // dark: "#319D60",
47
47
  // darker: "#257648",
48
48
  },
49
+ darkGreen: {
50
+ light: "#6AEBC0",
51
+ base: "#00906C",
52
+ dark: "#007C60",
53
+ darker: "#045041",
54
+ },
49
55
  purple: {
50
56
  light: "#9870ff",
51
57
  base: "#6f0fff",
@@ -3625,6 +3631,10 @@ var StyledButton = styled.button(templateObject_1$V || (templateObject_1$V = __m
3625
3631
  return theme.colors.blue.base;
3626
3632
  case "green":
3627
3633
  return theme.colors.green.base;
3634
+ case "darkGreen":
3635
+ return theme.colors.darkGreen.base;
3636
+ case "purple":
3637
+ return theme.colors.purple.base;
3628
3638
  case "red":
3629
3639
  return theme.colors.red.base;
3630
3640
  case "white":
@@ -3638,6 +3648,10 @@ var StyledButton = styled.button(templateObject_1$V || (templateObject_1$V = __m
3638
3648
  return "inset 0 -3px 0 ".concat(theme.colors.blue.dark);
3639
3649
  case "green":
3640
3650
  return "inset 0 -3px 0 ".concat(theme.colors.green.dark);
3651
+ case "darkGreen":
3652
+ return "inset 0 -3px 0 ".concat(theme.colors.darkGreen.darker);
3653
+ case "purple":
3654
+ return "inset 0 -3px 0 ".concat(theme.colors.purple.darker);
3641
3655
  case "red":
3642
3656
  return "inset 0 -3px 0 ".concat(theme.colors.red.dark);
3643
3657
  case "white":
@@ -3652,6 +3666,7 @@ var StyledButton = styled.button(templateObject_1$V || (templateObject_1$V = __m
3652
3666
  default:
3653
3667
  case "blue":
3654
3668
  case "red":
3669
+ case "darkGreen":
3655
3670
  return theme.colors.lightGray.light;
3656
3671
  case "green":
3657
3672
  return theme.colors.green.darker;
@@ -3838,6 +3853,7 @@ exports.Color = void 0;
3838
3853
  Color["YELLOW"] = "yellow";
3839
3854
  Color["BLUE"] = "blue";
3840
3855
  Color["GREEN"] = "green";
3856
+ Color["DARK_GREEN"] = "darkGreen";
3841
3857
  Color["PURPLE"] = "purple";
3842
3858
  Color["PINK"] = "pink";
3843
3859
  Color["ORANGE"] = "orange";
@@ -4026,6 +4042,8 @@ exports.NotificationType = void 0;
4026
4042
  (function (NotificationType) {
4027
4043
  NotificationType["STUDENT_UPGRADE_REQUEST"] = "studentUpgradeRequest";
4028
4044
  NotificationType["STUDENT_RESET_PASSWORD_REQUEST"] = "studentResetPasswordRequest";
4045
+ NotificationType["STUDENT_COMPLETED_CHAPTER"] = "studentCompletedChapter";
4046
+ NotificationType["STUDENT_EXAM_RESULT"] = "studentExamResult";
4029
4047
  NotificationType["TUTOR_INVITE"] = "tutorInvite";
4030
4048
  })(exports.NotificationType || (exports.NotificationType = {}));
4031
4049
 
@@ -4062,6 +4080,21 @@ exports.TextTopic = void 0;
4062
4080
 
4063
4081
  }(TextTopic));
4064
4082
 
4083
+ var TutorEmailPreference = {};
4084
+
4085
+ (function (exports) {
4086
+ Object.defineProperty(exports, "__esModule", { value: true });
4087
+ exports.TutorEmailPreference = void 0;
4088
+ (function (TutorEmailPreference) {
4089
+ TutorEmailPreference["STUDENT_UPGRADE_REQUEST"] = "studentUpgradeRequest";
4090
+ TutorEmailPreference["STUDENT_RESET_PASSWORD_REQUEST"] = "studentResetPasswordRequest";
4091
+ TutorEmailPreference["STUDENT_COMPLETED_CHAPTER"] = "studentCompletedChapter";
4092
+ TutorEmailPreference["STUDENT_EXAM_RESULT"] = "studentExamResult";
4093
+ TutorEmailPreference["CLASSROOM_INVITATION"] = "classroomInvitation";
4094
+ })(exports.TutorEmailPreference || (exports.TutorEmailPreference = {}));
4095
+
4096
+ }(TutorEmailPreference));
4097
+
4065
4098
  (function (exports) {
4066
4099
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4067
4100
  if (k2 === undefined) k2 = k;
@@ -4094,6 +4127,7 @@ __exportStar(NodeEnv, exports);
4094
4127
  __exportStar(NotificationType, exports);
4095
4128
  __exportStar(Plan, exports);
4096
4129
  __exportStar(TextTopic, exports);
4130
+ __exportStar(TutorEmailPreference, exports);
4097
4131
 
4098
4132
  }(enums));
4099
4133