touchstudy-core 0.1.44 → 0.1.45

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.
@@ -3353,27 +3353,20 @@ var canAccess = function canAccess(userRoles, componentRoles) {
3353
3353
  return true;
3354
3354
  };
3355
3355
 
3356
- var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
3357
- var DropdownIndicator = function DropdownIndicator(props) {
3358
- return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
3359
- color: styles.darker
3360
- }));
3361
- };
3362
- var CustomOption = function CustomOption(props) {
3363
- return React.createElement(components.Option, Object.assign({}, props), React.createElement("div", {
3364
- style: {
3365
- fontSize: "14px",
3366
- fontWeight: 500
3367
- }
3368
- }, props.data.label));
3369
- };
3370
3356
  var customStyles = {
3371
- control: function control(baseStyles) {
3357
+ control: function control(baseStyles, state) {
3372
3358
  return _extends({}, baseStyles, {
3373
3359
  fontSize: "14px",
3374
3360
  fontWeight: 700,
3375
3361
  color: styles.darker,
3376
- borderColor: styles.less_dark
3362
+ borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark,
3363
+ boxShadow: state.isFocused ? "0 0 0 1px " + styles.dark + "4D" : baseStyles.boxShadow,
3364
+ "&:active": {
3365
+ borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark
3366
+ },
3367
+ "&:hover": {
3368
+ borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark
3369
+ }
3377
3370
  });
3378
3371
  },
3379
3372
  input: function input(baseStyles, _) {
@@ -3389,8 +3382,32 @@ var customStyles = {
3389
3382
  fontWeight: 700,
3390
3383
  color: styles.darker
3391
3384
  });
3385
+ },
3386
+ option: function option(baseStyles, state) {
3387
+ return _extends({}, baseStyles, {
3388
+ backgroundColor: state.isSelected ? styles.dark : state.isFocused ? styles.light : 'white',
3389
+ "&:active": {
3390
+ backgroundColor: state.isSelected ? styles.dark : state.isFocused ? styles.less_dark : baseStyles.backgroundColor
3391
+ }
3392
+ });
3392
3393
  }
3393
3394
  };
3395
+
3396
+ var DropdownIndicator = function DropdownIndicator(props) {
3397
+ return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
3398
+ color: styles.darker
3399
+ }));
3400
+ };
3401
+ var CustomOption = function CustomOption(props) {
3402
+ return React.createElement(components.Option, Object.assign({}, props), React.createElement("div", {
3403
+ style: {
3404
+ fontSize: "14px",
3405
+ fontWeight: 500
3406
+ }
3407
+ }, props.data.label));
3408
+ };
3409
+
3410
+ var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
3394
3411
  var CustomSelect = function CustomSelect(_ref) {
3395
3412
  var isDefault = _ref.isDefault,
3396
3413
  options = _ref.options,
@@ -7281,43 +7298,6 @@ var getSubjectListApi$1 = function getSubjectListApi(textSearch) {
7281
7298
  };
7282
7299
 
7283
7300
  var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
7284
- var DropdownIndicator$1 = function DropdownIndicator(props) {
7285
- return React.createElement(components.DropdownIndicator, Object.assign({}, props), React.createElement(FaCaretDown, {
7286
- color: styles.darker
7287
- }));
7288
- };
7289
- var CustomOption$1 = function CustomOption(props) {
7290
- return React.createElement(components.Option, Object.assign({}, props), React.createElement("div", {
7291
- style: {
7292
- fontSize: "14px",
7293
- fontWeight: 500
7294
- }
7295
- }, props.data.label));
7296
- };
7297
- var customStyles$1 = {
7298
- control: function control(baseStyles, state) {
7299
- return _extends({}, baseStyles, {
7300
- fontSize: "14px",
7301
- fontWeight: 700,
7302
- color: styles.darker,
7303
- borderColor: state.isFocused || state.hasValue ? styles.less_dark : '#97A1AF'
7304
- });
7305
- },
7306
- input: function input(baseStyles, _) {
7307
- return _extends({}, baseStyles, {
7308
- fontSize: "14px",
7309
- fontWeight: 700,
7310
- color: styles.darker
7311
- });
7312
- },
7313
- singleValue: function singleValue(baseStyles) {
7314
- return _extends({}, baseStyles, {
7315
- fontSize: "14px",
7316
- fontWeight: 700,
7317
- color: styles.darker
7318
- });
7319
- }
7320
- };
7321
7301
  var CustomSelectOption = function CustomSelectOption(_ref) {
7322
7302
  var defaultValue = _ref.defaultValue,
7323
7303
  options = _ref.options,
@@ -7342,10 +7322,10 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
7342
7322
  IndicatorSeparator: function IndicatorSeparator() {
7343
7323
  return null;
7344
7324
  },
7345
- DropdownIndicator: DropdownIndicator$1,
7346
- Option: CustomOption$1
7325
+ DropdownIndicator: DropdownIndicator,
7326
+ Option: CustomOption
7347
7327
  },
7348
- styles: customStyles$1,
7328
+ styles: customStyles,
7349
7329
  placeholder: t("select_placeholder")
7350
7330
  }, rest));
7351
7331
  };
@@ -8530,7 +8510,15 @@ var CustomCreatable = function CustomCreatable(_ref) {
8530
8510
  options: options,
8531
8511
  value: initialValues,
8532
8512
  menuPlacement: scrollBottom ? "top" : "auto",
8533
- isMulti: isMulti
8513
+ isMulti: isMulti,
8514
+ components: {
8515
+ IndicatorSeparator: function IndicatorSeparator() {
8516
+ return null;
8517
+ },
8518
+ DropdownIndicator: DropdownIndicator,
8519
+ Option: CustomOption
8520
+ },
8521
+ styles: customStyles
8534
8522
  }, rest));
8535
8523
  };
8536
8524
 
@@ -8556,7 +8544,15 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
8556
8544
  value: !isDefault ? initialValues : undefined,
8557
8545
  defaultValue: isDefault ? initialValues : undefined,
8558
8546
  menuPlacement: scrollBottom ? "top" : "auto",
8559
- isMulti: isMulti
8547
+ isMulti: isMulti,
8548
+ components: {
8549
+ IndicatorSeparator: function IndicatorSeparator() {
8550
+ return null;
8551
+ },
8552
+ DropdownIndicator: DropdownIndicator,
8553
+ Option: CustomOption
8554
+ },
8555
+ styles: customStyles
8560
8556
  }, rest));
8561
8557
  };
8562
8558
 
@@ -10994,7 +10990,7 @@ Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==t
10994
10990
 
10995
10991
  var ReactApexChart = unwrapExports(reactApexcharts_min);
10996
10992
 
10997
- var styles$4 = {"titleBox":"_1dveO","title":"_mxRxf","point":"_2fD-F","buttonGroup":"_2DGl3","btnFeedback":"_xGW1x","btnTerminate":"_3mLu2","myanswer":"_eDBpS","titleMyAnswer1":"_2fMq3","titleMyAnswer2":"_3gEYh","contentMyAnswer":"_2K_sx","myAnswerItem":"_2qiLh","time":"_6TCOK","timeCol":"_hmseC","answer-response":"_3GfJt","answer-response-0":"_3ut64","answer-response-1":"_2VtpD","answer-response-2":"_58lQU","answer-response-3":"_1ucMY","answer-response-4":"_1qkxy","answerCorrect":"_2jIeT","answerIncorrect":"_to2v0","answerNograss":"_1JSte","answerEasy":"_2_uTU","answerDiscrimination":"_1DBoA","answerTrap":"_1q3tD","answerNoTime":"_3iItu","questionOrder":"_1fNkS","myTimeLabel":"_1Z_F3","myPoolTime":"_4KwG0","topTimeLabel":"_245H-","topTime":"_3tZqw","meanTimeLabel":"_PlPLY","meanTime":"_12a7R","compareChart":"_3MW16","prevChart":"_1fNkb","chart":"_3K4oY","nextChart":"_3YKBp","titleChart":"_13BVP","compareGrass":"_1_fJu","titleCompareGrass":"_o1txm","tableCompareGrass":"_bT5nf","thcolumn1":"_3Umg0","tdcolumn1":"_3dRMF","tdcolumn3":"_2tcBP","classification":"_1AFeb","wrapperProblem":"_oTqG7","titleProblem":"_35eIx","titleProblemClose":"_3t4HO","titleTrickyProblem":"_1-oxK","wrongQuestions":"_2dpMR","question":"_1lSOX","assignedQuestions":"_1ONUt","wrapperContent":"_nPoR0","content":"_2zmZn","contentColumn1":"_334SY","span1":"_3Lf-U","span2":"_ZpMot","contentColumn2":"_16P3l","duration":"_1kT28","topDuration":"_1fVRi","overallCorrectRate":"_3jLGe","answer":"_VsZ0K","contentVulnerable":"_QxKMy","wrappContentProblem":"_nnqpW","contentProblem":"_3Z1nV","labelProblem":"_36Xpx","name":"_3ZJQW","percent":"_2J3MK","slider":"_1MPdO","track":"_3CV_y","noData":"__g-ff","loading":"_3j485","table-responsive":"_2O6RX","form-label":"_1RYOQ","form-control":"_3VRVT","form-label-dialog":"_3oCSh","btn-cancel":"_3USKq","btn-register":"_3y_iD","pdfBtnBox":"_3xZHo","pdfBtn":"_1DtWq","form-select":"_1a_vw"};
10993
+ var styles$4 = {"lighter":"#F0FFF6","light":"#C8F8DB","less_dark":"#3DC674","dark":"#349056","darker":"#18442A","gray_100":"#F9FAFB","gray_300":"#DFE3E8","gray_500":"#9A9A98","gray_700":"#5D5D5B","gray_900":"#363634","titleBox":"_1dveO","title":"_mxRxf","point":"_2fD-F","buttonGroup":"_2DGl3","btnFeedback":"_xGW1x","btnTerminate":"_3mLu2","myanswer":"_eDBpS","titleMyAnswer1":"_2fMq3","titleMyAnswer2":"_3gEYh","contentMyAnswer":"_2K_sx","myAnswerItem":"_2qiLh","time":"_6TCOK","timeCol":"_hmseC","answer-response":"_3GfJt","answer-response-0":"_3ut64","answer-response-1":"_2VtpD","answer-response-2":"_58lQU","answer-response-3":"_1ucMY","answer-response-4":"_1qkxy","answerCorrect":"_2jIeT","answerIncorrect":"_to2v0","answerNograss":"_1JSte","answerEasy":"_2_uTU","answerDiscrimination":"_1DBoA","answerTrap":"_1q3tD","answerNoTime":"_3iItu","questionOrder":"_1fNkS","myTimeLabel":"_1Z_F3","myPoolTime":"_4KwG0","topTimeLabel":"_245H-","topTime":"_3tZqw","meanTimeLabel":"_PlPLY","meanTime":"_12a7R","compareChart":"_3MW16","prevChart":"_1fNkb","chart":"_3K4oY","nextChart":"_3YKBp","titleChart":"_13BVP","compareGrass":"_1_fJu","titleCompareGrass":"_o1txm","tableCompareGrass":"_bT5nf","thcolumn1":"_3Umg0","tdcolumn1":"_3dRMF","tdcolumn3":"_2tcBP","classification":"_1AFeb","wrapperProblem":"_oTqG7","titleProblem":"_35eIx","titleProblemClose":"_3t4HO","titleTrickyProblem":"_1-oxK","wrongQuestions":"_2dpMR","question":"_1lSOX","assignedQuestions":"_1ONUt","wrapperContent":"_nPoR0","content":"_2zmZn","contentColumn1":"_334SY","span1":"_3Lf-U","span2":"_ZpMot","contentColumn2":"_16P3l","duration":"_1kT28","topDuration":"_1fVRi","overallCorrectRate":"_3jLGe","answer":"_VsZ0K","contentVulnerable":"_QxKMy","wrappContentProblem":"_nnqpW","contentProblem":"_3Z1nV","labelProblem":"_36Xpx","name":"_3ZJQW","percent":"_2J3MK","slider":"_1MPdO","track":"_3CV_y","noData":"__g-ff","loading":"_3j485","table-responsive":"_2O6RX","form-label":"_1RYOQ","form-control":"_3VRVT","form-label-dialog":"_3oCSh","btn-cancel":"_3USKq","btn-register":"_3y_iD","pdfBtnBox":"_3xZHo","pdfBtn":"_1DtWq","form-select":"_1a_vw"};
10998
10994
 
10999
10995
  var iconStarQuestion = function iconStarQuestion(_ref) {
11000
10996
  var _ref$width = _ref.width,
@@ -12884,6 +12880,7 @@ var Header = function Header(_ref) {
12884
12880
  className: "fw-bold me-2 text-nowrap",
12885
12881
  sx: {
12886
12882
  minWidth: "60px",
12883
+ maxWidth: "120px",
12887
12884
  overflow: "hidden",
12888
12885
  textOverflow: "ellipsis"
12889
12886
  }