@ehfuse/taskbox 0.4.1 → 0.4.3
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.d.ts +1 -0
- package/dist/index.esm.js +7 -7
- package/dist/index.esm.js.map +4 -4
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/state/useTaskboxTheme.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/package.json
CHANGED