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.
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { DropdownIndicatorProps } from 'react-select';
3
+ export declare const DropdownIndicator: (props: DropdownIndicatorProps) => React.JSX.Element;
4
+ export declare const CustomOption: (props: any) => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const customStyles: {
2
+ control: (baseStyles: any, state: any) => any;
3
+ input: (baseStyles: any, _: any) => any;
4
+ singleValue: (baseStyles: any) => any;
5
+ option: (baseStyles: any, state: any) => any;
6
+ };
@@ -0,0 +1,6 @@
1
+ export declare const customStyles: {
2
+ control: (baseStyles: any, state: any) => any;
3
+ input: (baseStyles: any, _: any) => any;
4
+ singleValue: (baseStyles: any) => any;
5
+ option: (baseStyles: any, state: any) => any;
6
+ };
@@ -1,6 +1,6 @@
1
1
  import { FC } from "react";
2
2
  import { INavigateProps } from "../../../utils/types";
3
- import { Role } from "../configs/constants";
3
+ import { Role } from "../../../utils/constants";
4
4
  interface Props {
5
5
  role?: Role;
6
6
  homeAcademyUrl: string;
package/dist/index.css CHANGED
@@ -1248,7 +1248,8 @@
1248
1248
  ._3Z1nV ._36Xpx {
1249
1249
  display: flex;
1250
1250
  align-items: center;
1251
- justify-content: space-between; }
1251
+ justify-content: space-between;
1252
+ margin-bottom: 8px; }
1252
1253
  ._3Z1nV ._36Xpx ._3ZJQW {
1253
1254
  font-family: "Pretendard";
1254
1255
  font-weight: 500;
@@ -1265,7 +1266,7 @@
1265
1266
  width: 100%;
1266
1267
  height: 12px;
1267
1268
  background-color: transparent;
1268
- border: 1px solid #ebebff;
1269
+ border: 1px solid #C8F8DB;
1269
1270
  border-radius: 12px;
1270
1271
  padding: 1px 5px;
1271
1272
  overflow-x: hidden; }
@@ -1275,6 +1276,7 @@
1275
1276
  ._3Z1nV ._1MPdO ._3CV_y {
1276
1277
  width: 8px;
1277
1278
  height: 8px;
1279
+ background: #18442A;
1278
1280
  border-radius: 100%;
1279
1281
  position: absolute;
1280
1282
  top: 0;
package/dist/index.js CHANGED
@@ -3352,27 +3352,20 @@ var canAccess = function canAccess(userRoles, componentRoles) {
3352
3352
  return true;
3353
3353
  };
3354
3354
 
3355
- var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
3356
- var DropdownIndicator = function DropdownIndicator(props) {
3357
- return React__default.createElement(Select.components.DropdownIndicator, Object.assign({}, props), React__default.createElement(fa.FaCaretDown, {
3358
- color: styles.darker
3359
- }));
3360
- };
3361
- var CustomOption = function CustomOption(props) {
3362
- return React__default.createElement(Select.components.Option, Object.assign({}, props), React__default.createElement("div", {
3363
- style: {
3364
- fontSize: "14px",
3365
- fontWeight: 500
3366
- }
3367
- }, props.data.label));
3368
- };
3369
3355
  var customStyles = {
3370
- control: function control(baseStyles) {
3356
+ control: function control(baseStyles, state) {
3371
3357
  return _extends({}, baseStyles, {
3372
3358
  fontSize: "14px",
3373
3359
  fontWeight: 700,
3374
3360
  color: styles.darker,
3375
- borderColor: styles.less_dark
3361
+ borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark,
3362
+ boxShadow: state.isFocused ? "0 0 0 1px " + styles.dark + "4D" : baseStyles.boxShadow,
3363
+ "&:active": {
3364
+ borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark
3365
+ },
3366
+ "&:hover": {
3367
+ borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark
3368
+ }
3376
3369
  });
3377
3370
  },
3378
3371
  input: function input(baseStyles, _) {
@@ -3388,8 +3381,32 @@ var customStyles = {
3388
3381
  fontWeight: 700,
3389
3382
  color: styles.darker
3390
3383
  });
3384
+ },
3385
+ option: function option(baseStyles, state) {
3386
+ return _extends({}, baseStyles, {
3387
+ backgroundColor: state.isSelected ? styles.dark : state.isFocused ? styles.light : 'white',
3388
+ "&:active": {
3389
+ backgroundColor: state.isSelected ? styles.dark : state.isFocused ? styles.less_dark : baseStyles.backgroundColor
3390
+ }
3391
+ });
3391
3392
  }
3392
3393
  };
3394
+
3395
+ var DropdownIndicator = function DropdownIndicator(props) {
3396
+ return React__default.createElement(Select.components.DropdownIndicator, Object.assign({}, props), React__default.createElement(fa.FaCaretDown, {
3397
+ color: styles.darker
3398
+ }));
3399
+ };
3400
+ var CustomOption = function CustomOption(props) {
3401
+ return React__default.createElement(Select.components.Option, Object.assign({}, props), React__default.createElement("div", {
3402
+ style: {
3403
+ fontSize: "14px",
3404
+ fontWeight: 500
3405
+ }
3406
+ }, props.data.label));
3407
+ };
3408
+
3409
+ var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
3393
3410
  var CustomSelect = function CustomSelect(_ref) {
3394
3411
  var isDefault = _ref.isDefault,
3395
3412
  options = _ref.options,
@@ -7279,43 +7296,6 @@ var getSubjectListApi$1 = function getSubjectListApi(textSearch) {
7279
7296
  };
7280
7297
 
7281
7298
  var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
7282
- var DropdownIndicator$1 = function DropdownIndicator(props) {
7283
- return React__default.createElement(Select.components.DropdownIndicator, Object.assign({}, props), React__default.createElement(fa.FaCaretDown, {
7284
- color: styles.darker
7285
- }));
7286
- };
7287
- var CustomOption$1 = function CustomOption(props) {
7288
- return React__default.createElement(Select.components.Option, Object.assign({}, props), React__default.createElement("div", {
7289
- style: {
7290
- fontSize: "14px",
7291
- fontWeight: 500
7292
- }
7293
- }, props.data.label));
7294
- };
7295
- var customStyles$1 = {
7296
- control: function control(baseStyles, state) {
7297
- return _extends({}, baseStyles, {
7298
- fontSize: "14px",
7299
- fontWeight: 700,
7300
- color: styles.darker,
7301
- borderColor: state.isFocused || state.hasValue ? styles.less_dark : '#97A1AF'
7302
- });
7303
- },
7304
- input: function input(baseStyles, _) {
7305
- return _extends({}, baseStyles, {
7306
- fontSize: "14px",
7307
- fontWeight: 700,
7308
- color: styles.darker
7309
- });
7310
- },
7311
- singleValue: function singleValue(baseStyles) {
7312
- return _extends({}, baseStyles, {
7313
- fontSize: "14px",
7314
- fontWeight: 700,
7315
- color: styles.darker
7316
- });
7317
- }
7318
- };
7319
7299
  var CustomSelectOption = function CustomSelectOption(_ref) {
7320
7300
  var defaultValue = _ref.defaultValue,
7321
7301
  options = _ref.options,
@@ -7340,10 +7320,10 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
7340
7320
  IndicatorSeparator: function IndicatorSeparator() {
7341
7321
  return null;
7342
7322
  },
7343
- DropdownIndicator: DropdownIndicator$1,
7344
- Option: CustomOption$1
7323
+ DropdownIndicator: DropdownIndicator,
7324
+ Option: CustomOption
7345
7325
  },
7346
- styles: customStyles$1,
7326
+ styles: customStyles,
7347
7327
  placeholder: t("select_placeholder")
7348
7328
  }, rest));
7349
7329
  };
@@ -8528,7 +8508,15 @@ var CustomCreatable = function CustomCreatable(_ref) {
8528
8508
  options: options,
8529
8509
  value: initialValues,
8530
8510
  menuPlacement: scrollBottom ? "top" : "auto",
8531
- isMulti: isMulti
8511
+ isMulti: isMulti,
8512
+ components: {
8513
+ IndicatorSeparator: function IndicatorSeparator() {
8514
+ return null;
8515
+ },
8516
+ DropdownIndicator: DropdownIndicator,
8517
+ Option: CustomOption
8518
+ },
8519
+ styles: customStyles
8532
8520
  }, rest));
8533
8521
  };
8534
8522
 
@@ -8554,7 +8542,15 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
8554
8542
  value: !isDefault ? initialValues : undefined,
8555
8543
  defaultValue: isDefault ? initialValues : undefined,
8556
8544
  menuPlacement: scrollBottom ? "top" : "auto",
8557
- isMulti: isMulti
8545
+ isMulti: isMulti,
8546
+ components: {
8547
+ IndicatorSeparator: function IndicatorSeparator() {
8548
+ return null;
8549
+ },
8550
+ DropdownIndicator: DropdownIndicator,
8551
+ Option: CustomOption
8552
+ },
8553
+ styles: customStyles
8558
8554
  }, rest));
8559
8555
  };
8560
8556
 
@@ -10992,7 +10988,7 @@ Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==t
10992
10988
 
10993
10989
  var ReactApexChart = unwrapExports(reactApexcharts_min);
10994
10990
 
10995
- 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"};
10991
+ 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"};
10996
10992
 
10997
10993
  var iconStarQuestion = function iconStarQuestion(_ref) {
10998
10994
  var _ref$width = _ref.width,
@@ -12882,6 +12878,7 @@ var Header = function Header(_ref) {
12882
12878
  className: "fw-bold me-2 text-nowrap",
12883
12879
  sx: {
12884
12880
  minWidth: "60px",
12881
+ maxWidth: "120px",
12885
12882
  overflow: "hidden",
12886
12883
  textOverflow: "ellipsis"
12887
12884
  }