@ehfuse/taskbox 0.3.6 → 0.4.1

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,24 @@ export interface TaskboxSummaryStyle {
80
95
  numberColor: string;
81
96
  overdueColor: string;
82
97
  textColor: string;
98
+ sx?: SxProps<Theme>;
99
+ }
100
+ /** 상단 탭 스타일이다(업무함 탭바 — 소비처가 조립하는 헤더의 탭). */
101
+ export interface TaskboxTabsStyle {
102
+ bg: string;
103
+ color: string;
104
+ hoverBg: string;
105
+ borderColor: string;
106
+ selectedBg: string;
107
+ selectedColor: string;
108
+ sx?: SxProps<Theme>;
109
+ }
110
+ /** 행 안 액션 버튼 스타일이다(가져가기·확인 등 — 표 행에서 바로 누르는 파란 버튼). */
111
+ export interface TaskboxActionButtonStyle {
112
+ bg: string;
113
+ color: string;
114
+ hoverBg: string;
115
+ sx?: SxProps<Theme>;
83
116
  }
84
117
  /** 상태·중요도 칩 스타일이다(사전 색은 statusOptions 가 갖고, 여기는 공통 형태만). */
85
118
  export interface TaskboxChipStyle {
@@ -88,6 +121,7 @@ export interface TaskboxChipStyle {
88
121
  fontWeight: number;
89
122
  plainColor: string;
90
123
  plainDotColor: string;
124
+ sx?: SxProps<Theme>;
91
125
  }
92
126
  /** 업무함 테마다(해석 완료 — 전 필드 확정). 컴포넌트는 이 타입만 읽는다. */
93
127
  export interface TaskboxTheme {
@@ -97,6 +131,8 @@ export interface TaskboxTheme {
97
131
  board: TaskboxBoardStyle;
98
132
  summary: TaskboxSummaryStyle;
99
133
  chip: TaskboxChipStyle;
134
+ actionButton: TaskboxActionButtonStyle;
135
+ tabs: TaskboxTabsStyle;
100
136
  }
101
137
  /** 소비처가 넘기는 테마다 — 바꾸고 싶은 값만 부분 지정한다(깊은 병합). */
102
138
  export interface TaskboxThemeInput {
@@ -112,4 +148,6 @@ export interface TaskboxThemeInput {
112
148
  };
113
149
  summary?: Partial<TaskboxSummaryStyle>;
114
150
  chip?: Partial<TaskboxChipStyle>;
151
+ actionButton?: Partial<TaskboxActionButtonStyle>;
152
+ tabs?: Partial<TaskboxTabsStyle>;
115
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.3.6",
3
+ "version": "0.4.1",
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",