@ehfuse/taskbox 0.4.0 → 0.4.2
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.
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +3 -3
- package/dist/index.js +6 -6
- package/dist/index.js.map +3 -3
- package/dist/state/useTaskboxTheme.d.ts +12 -0
- package/dist/types/theme.d.ts +12 -0
- package/package.json +1 -1
|
@@ -10,6 +10,18 @@ import type { TaskboxTheme, TaskboxThemeColors, TaskboxThemeInput, TaskboxThemeM
|
|
|
10
10
|
export declare function buildTaskboxTheme(colors: TaskboxThemeColors, mode?: TaskboxThemeMode): TaskboxTheme;
|
|
11
11
|
/** 기본 테마에 주입값을 깊은 병합한다(컴포넌트 스타일 → 배지까지 부분 지정 가능). */
|
|
12
12
|
export declare function resolveTaskboxTheme(base: TaskboxTheme, input?: TaskboxThemeInput): TaskboxTheme;
|
|
13
|
+
/** `createTaskboxTheme` 옵션이다. */
|
|
14
|
+
export interface CreateTaskboxThemeOptions {
|
|
15
|
+
mode?: TaskboxThemeMode;
|
|
16
|
+
accent?: string;
|
|
17
|
+
accentContrast?: string;
|
|
18
|
+
input?: TaskboxThemeInput;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 훅 없이 테마를 만든다 — Provider 바깥(소비처가 감싸는 Paper·헤더 등)에서 같은 색을 쓰려고 할 때 쓴다.
|
|
22
|
+
* 컴포넌트 안에서 주입된 설정을 읽어야 하면 `useTaskboxTheme()` 를 쓴다.
|
|
23
|
+
*/
|
|
24
|
+
export declare function createTaskboxTheme(options?: CreateTaskboxThemeOptions): TaskboxTheme;
|
|
13
25
|
/**
|
|
14
26
|
* 현재 업무함 테마를 읽는다.
|
|
15
27
|
* 기본 강조색은 MUI 테마의 primary 를 상속하므로(주 버튼과 동일), 별도 설정 없이도 앱 색과 맞는다.
|
package/dist/types/theme.d.ts
CHANGED
|
@@ -97,6 +97,16 @@ export interface TaskboxSummaryStyle {
|
|
|
97
97
|
textColor: string;
|
|
98
98
|
sx?: SxProps<Theme>;
|
|
99
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
|
+
}
|
|
100
110
|
/** 행 안 액션 버튼 스타일이다(가져가기·확인 등 — 표 행에서 바로 누르는 파란 버튼). */
|
|
101
111
|
export interface TaskboxActionButtonStyle {
|
|
102
112
|
bg: string;
|
|
@@ -122,6 +132,7 @@ export interface TaskboxTheme {
|
|
|
122
132
|
summary: TaskboxSummaryStyle;
|
|
123
133
|
chip: TaskboxChipStyle;
|
|
124
134
|
actionButton: TaskboxActionButtonStyle;
|
|
135
|
+
tabs: TaskboxTabsStyle;
|
|
125
136
|
}
|
|
126
137
|
/** 소비처가 넘기는 테마다 — 바꾸고 싶은 값만 부분 지정한다(깊은 병합). */
|
|
127
138
|
export interface TaskboxThemeInput {
|
|
@@ -138,4 +149,5 @@ export interface TaskboxThemeInput {
|
|
|
138
149
|
summary?: Partial<TaskboxSummaryStyle>;
|
|
139
150
|
chip?: Partial<TaskboxChipStyle>;
|
|
140
151
|
actionButton?: Partial<TaskboxActionButtonStyle>;
|
|
152
|
+
tabs?: Partial<TaskboxTabsStyle>;
|
|
141
153
|
}
|
package/package.json
CHANGED