@ehfuse/taskbox 0.3.5 → 0.4.0

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.
@@ -9,6 +9,7 @@
9
9
  * 3. **부분 지정**: 모든 필드가 선택이라 바꾸고 싶은 값만 준다(`TaskboxThemeInput`, 깊은 병합).
10
10
  * 4. **해석 후 전부 필수**: 컴포넌트는 `useTaskboxTheme()` 이 돌려준 `TaskboxTheme`(전 필드 확정)만 읽는다.
11
11
  */
12
+ import type { SxProps, Theme } from "@mui/material";
12
13
  /** 테마 명암 모드다. 미지정 시 MUI 테마의 palette.mode 를 상속한다. */
13
14
  export type TaskboxThemeMode = "light" | "dark";
14
15
  /** 의미 색 토큰이다(전역 팔레트 — 컴포넌트 기본값이 여기서 파생된다). */
@@ -42,6 +43,7 @@ export interface TaskboxBadgeStyle {
42
43
  width: number;
43
44
  borderRadius: number;
44
45
  paddingX: number;
46
+ sx?: SxProps<Theme>;
45
47
  }
46
48
  /** 목록표 그룹 헤더 행 스타일이다. */
47
49
  export interface TaskboxGroupHeaderStyle {
@@ -53,16 +55,28 @@ export interface TaskboxGroupHeaderStyle {
53
55
  labelFontWeight: number;
54
56
  minHeight: number;
55
57
  badge: TaskboxBadgeStyle;
58
+ sx?: SxProps<Theme>;
56
59
  }
57
60
  /** 목록표(표) 스타일이다. */
58
61
  export interface TaskboxTableStyle {
62
+ bg: string;
63
+ borderColor: string;
64
+ headerBg: string;
59
65
  headerColor: string;
60
66
  headerActiveColor: string;
61
67
  headerFilteredColor: string;
62
68
  headerFontSize: number;
69
+ rowBg: string;
70
+ rowColor: string;
71
+ rowSubColor: string;
63
72
  rowHoverBg: string;
64
73
  rowBorderColor: string;
74
+ cellHoverBg: string;
75
+ emptyColor: string;
65
76
  groupHeader: TaskboxGroupHeaderStyle;
77
+ sx?: SxProps<Theme>;
78
+ headerSx?: SxProps<Theme>;
79
+ rowSx?: SxProps<Theme>;
66
80
  }
67
81
  /** 보드(프로젝트·상태·목표) 스타일이다. */
68
82
  export interface TaskboxBoardStyle {
@@ -70,6 +84,7 @@ export interface TaskboxBoardStyle {
70
84
  columnHeaderColor: string;
71
85
  columnHeaderFontSize: number;
72
86
  badge: TaskboxBadgeStyle;
87
+ sx?: SxProps<Theme>;
73
88
  }
74
89
  /** 요약 카드(진행 게이지 + 남은/지연/공수) 스타일이다. */
75
90
  export interface TaskboxSummaryStyle {
@@ -80,6 +95,14 @@ export interface TaskboxSummaryStyle {
80
95
  numberColor: string;
81
96
  overdueColor: string;
82
97
  textColor: string;
98
+ sx?: SxProps<Theme>;
99
+ }
100
+ /** 행 안 액션 버튼 스타일이다(가져가기·확인 등 — 표 행에서 바로 누르는 파란 버튼). */
101
+ export interface TaskboxActionButtonStyle {
102
+ bg: string;
103
+ color: string;
104
+ hoverBg: string;
105
+ sx?: SxProps<Theme>;
83
106
  }
84
107
  /** 상태·중요도 칩 스타일이다(사전 색은 statusOptions 가 갖고, 여기는 공통 형태만). */
85
108
  export interface TaskboxChipStyle {
@@ -88,6 +111,7 @@ export interface TaskboxChipStyle {
88
111
  fontWeight: number;
89
112
  plainColor: string;
90
113
  plainDotColor: string;
114
+ sx?: SxProps<Theme>;
91
115
  }
92
116
  /** 업무함 테마다(해석 완료 — 전 필드 확정). 컴포넌트는 이 타입만 읽는다. */
93
117
  export interface TaskboxTheme {
@@ -97,6 +121,7 @@ export interface TaskboxTheme {
97
121
  board: TaskboxBoardStyle;
98
122
  summary: TaskboxSummaryStyle;
99
123
  chip: TaskboxChipStyle;
124
+ actionButton: TaskboxActionButtonStyle;
100
125
  }
101
126
  /** 소비처가 넘기는 테마다 — 바꾸고 싶은 값만 부분 지정한다(깊은 병합). */
102
127
  export interface TaskboxThemeInput {
@@ -112,4 +137,5 @@ export interface TaskboxThemeInput {
112
137
  };
113
138
  summary?: Partial<TaskboxSummaryStyle>;
114
139
  chip?: Partial<TaskboxChipStyle>;
140
+ actionButton?: Partial<TaskboxActionButtonStyle>;
115
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.3.5",
3
+ "version": "0.4.0",
4
4
  "description": "A React/MUI task inbox component with notices, per-user assignments, read tracking, and mobile card UI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",