touchstudy-core 0.1.161 → 0.1.162

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,2 @@
1
+ export declare const BpIcon: any;
2
+ export declare const BpCheckedIcon: any;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ import { QuestionAnswerType } from "../../utils";
3
+ interface Props {
4
+ value?: QuestionAnswerType;
5
+ disabled?: boolean;
6
+ }
7
+ declare const QuestionAnswerTypeSelector: FC<Props>;
8
+ export default QuestionAnswerTypeSelector;
@@ -0,0 +1,19 @@
1
+ import React, { PropsWithChildren } from "react";
2
+ import { SxProps, Theme } from "@mui/material";
3
+ import { FormikProps } from "formik";
4
+ import { QuestionRequest, TextbookRequest } from "../configs/types";
5
+ interface Props extends PropsWithChildren, FormikProps<TextbookRequest> {
6
+ data: QuestionRequest;
7
+ answerCount: number;
8
+ path: string;
9
+ isMath: boolean;
10
+ disabled?: boolean;
11
+ questionTitleStyle?: SxProps<Theme>;
12
+ optionKey: string;
13
+ isLoadingQuestionTypes: boolean;
14
+ questionTypes: any[];
15
+ onOpenQuestionTypeMenu: (key: string) => void;
16
+ onCloseQuestionTypeMenu: () => void;
17
+ }
18
+ declare const _default: React.NamedExoticComponent<Props>;
19
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { FC } from "react";
2
+ import { FormikProps } from "formik";
3
+ import { QuestionRequest } from "../../../utils/types";
4
+ interface Props extends FormikProps<any> {
5
+ data: any;
6
+ expandedIndex: number;
7
+ open: boolean;
8
+ paths: number[];
9
+ path: string;
10
+ categories: any[];
11
+ isLoadingCategories: boolean;
12
+ isLoadingQuestionTypes: boolean;
13
+ questionTypes: any[];
14
+ optionKey: string;
15
+ disabled?: boolean;
16
+ onToggle: (index: number) => void;
17
+ onQuestionCountChange: (count: number, index: number) => void;
18
+ onDelete: (text: string, confirmText: string, path: string, index: number) => void;
19
+ onOpenCategoryMenu: (path: string) => void;
20
+ onCloseCategoryMenu: () => void;
21
+ onCopiedPrevQuestionGroup: (path: string, paths: number[]) => QuestionRequest | undefined;
22
+ }
23
+ declare const QuestionGroupBlock: FC<Props>;
24
+ export default QuestionGroupBlock;
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import { FormikProps } from "formik";
3
+ import { QuestionGroupRequest, TextbookRequest } from "../configs/types";
4
+ interface Props extends FormikProps<TextbookRequest> {
5
+ path: string;
6
+ isMath: boolean;
7
+ open: boolean;
8
+ data: QuestionGroupRequest;
9
+ isLoadingCategories: boolean;
10
+ optionKey: string;
11
+ categories: any[];
12
+ isLoadingQuestionTypes: boolean;
13
+ questionTypes: any[];
14
+ disabled?: boolean;
15
+ onQuestioStartOrderChange: (order: number) => void;
16
+ onDelete: (text: string, confirmText: string, path: string, index: number) => void;
17
+ onOpenSubCategoryMenu: (path: string, id?: number) => void;
18
+ onOpenCategoryMenu: (path: string) => void;
19
+ onCloseCategoryMenu: () => void;
20
+ onOpenQuestionTypeMenu: (path: string, categoryId?: number, subCategoryId?: number) => void;
21
+ onCloseQuestionTypeMenu: () => void;
22
+ }
23
+ declare const _default: React.NamedExoticComponent<Props>;
24
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const handleKeyDown: (e: any) => void;
@@ -0,0 +1,6 @@
1
+ export declare const labelStyle: {
2
+ textOverflow: string;
3
+ overflowX: string;
4
+ width: string;
5
+ whiteSpace: string;
6
+ };
package/dist/index.js CHANGED
@@ -427,7 +427,7 @@ var question_count = "문제 갯수";
427
427
  var multi_choice = "여러 개임";
428
428
  var category = "문항 카테고리";
429
429
  var korean_category = "지문 영역";
430
- var korean_subcateogry = "지문 세부 영역";
430
+ var korean_subcategory = "지문 세부 영역";
431
431
  var _category = "카테고리";
432
432
  var score = "점수";
433
433
  var enter_score = "점수 입력";
@@ -1570,7 +1570,7 @@ var lang_ko = {
1570
1570
  multi_choice: multi_choice,
1571
1571
  category: category,
1572
1572
  korean_category: korean_category,
1573
- korean_subcateogry: korean_subcateogry,
1573
+ korean_subcategory: korean_subcategory,
1574
1574
  _category: _category,
1575
1575
  score: score,
1576
1576
  enter_score: enter_score,
@@ -2712,7 +2712,7 @@ var number_of_answers$1 = "Number of answers";
2712
2712
  var correct_answers$1 = "Correct answers";
2713
2713
  var category$1 = "Category";
2714
2714
  var korean_category$1 = "Category";
2715
- var korean_subcateogry$1 = "Subcategory";
2715
+ var korean_subcategory$1 = "Subcategory";
2716
2716
  var _category$1 = "Category";
2717
2717
  var score$1 = "Score";
2718
2718
  var enter_title$1 = "Enter title";
@@ -3858,7 +3858,7 @@ var lang_en = {
3858
3858
  correct_answers: correct_answers$1,
3859
3859
  category: category$1,
3860
3860
  korean_category: korean_category$1,
3861
- korean_subcateogry: korean_subcateogry$1,
3861
+ korean_subcategory: korean_subcategory$1,
3862
3862
  _category: _category$1,
3863
3863
  score: score$1,
3864
3864
  enter_title: enter_title$1,
@@ -431,7 +431,7 @@ var question_count = "문제 갯수";
431
431
  var multi_choice = "여러 개임";
432
432
  var category = "문항 카테고리";
433
433
  var korean_category = "지문 영역";
434
- var korean_subcateogry = "지문 세부 영역";
434
+ var korean_subcategory = "지문 세부 영역";
435
435
  var _category = "카테고리";
436
436
  var score = "점수";
437
437
  var enter_score = "점수 입력";
@@ -1574,7 +1574,7 @@ var lang_ko = {
1574
1574
  multi_choice: multi_choice,
1575
1575
  category: category,
1576
1576
  korean_category: korean_category,
1577
- korean_subcateogry: korean_subcateogry,
1577
+ korean_subcategory: korean_subcategory,
1578
1578
  _category: _category,
1579
1579
  score: score,
1580
1580
  enter_score: enter_score,
@@ -2716,7 +2716,7 @@ var number_of_answers$1 = "Number of answers";
2716
2716
  var correct_answers$1 = "Correct answers";
2717
2717
  var category$1 = "Category";
2718
2718
  var korean_category$1 = "Category";
2719
- var korean_subcateogry$1 = "Subcategory";
2719
+ var korean_subcategory$1 = "Subcategory";
2720
2720
  var _category$1 = "Category";
2721
2721
  var score$1 = "Score";
2722
2722
  var enter_title$1 = "Enter title";
@@ -3862,7 +3862,7 @@ var lang_en = {
3862
3862
  correct_answers: correct_answers$1,
3863
3863
  category: category$1,
3864
3864
  korean_category: korean_category$1,
3865
- korean_subcateogry: korean_subcateogry$1,
3865
+ korean_subcategory: korean_subcategory$1,
3866
3866
  _category: _category$1,
3867
3867
  score: score$1,
3868
3868
  enter_title: enter_title$1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "touchstudy-core",
3
- "version": "0.1.161",
3
+ "version": "0.1.162",
4
4
  "description": "Contains core components && functions for TouchStudy project",
5
5
  "author": "brss",
6
6
  "license": "MIT",