@ehfuse/taskbox 0.10.35 → 0.10.36
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 +14 -14
- package/dist/index.esm.js.map +3 -3
- package/dist/index.js +26 -26
- package/dist/index.js.map +3 -3
- package/dist/sections/DrawerSection.d.ts +6 -0
- package/dist/types/provider.d.ts +14 -0
- package/package.json +1 -1
|
@@ -5,6 +5,12 @@ import type { ReactNode } from "react";
|
|
|
5
5
|
* 댓글·활동은 자체 타이틀 줄을 그리므로(펼치기 버튼이 붙는다) 이 상수를 함께 써서 크기가 갈리지 않게 한다.
|
|
6
6
|
*/
|
|
7
7
|
export declare const DRAWER_SECTION_TITLE_FONT_SIZE = 16;
|
|
8
|
+
/** 절 제목 모양 — Provider sectionTitle 를 기본값과 합친다(댓글 머리도 같이 쓴다). */
|
|
9
|
+
export declare function useDrawerSectionTitleStyle(): {
|
|
10
|
+
showIcon: boolean;
|
|
11
|
+
color: string;
|
|
12
|
+
fontWeight: number;
|
|
13
|
+
};
|
|
8
14
|
/** 드로어 섹션 래퍼 props 다. */
|
|
9
15
|
export interface DrawerSectionProps {
|
|
10
16
|
icon: ReactNode;
|
package/dist/types/provider.d.ts
CHANGED
|
@@ -56,7 +56,21 @@ export interface TaskboxTranslateResult {
|
|
|
56
56
|
summary?: string;
|
|
57
57
|
}
|
|
58
58
|
/** TaskboxProvider 설정이다 — 없거나 부분만 줘도 전 컴포넌트가 기본값으로 동작한다. */
|
|
59
|
+
/** 상세 · 등록 드로어의 절 제목 모양(0.10.36) — 안 주면 예전 그대로(아이콘 + 진회색 #37352f · 500). */
|
|
60
|
+
export interface TaskboxSectionTitleStyle {
|
|
61
|
+
/** 제목 앞 아이콘을 보인다. 기본 true. */
|
|
62
|
+
showIcon?: boolean;
|
|
63
|
+
/** 글자색(MUI 색 이름 "primary.main" 도 된다). 기본 "#37352f". */
|
|
64
|
+
color?: string;
|
|
65
|
+
/** 굵기. 기본 500. */
|
|
66
|
+
fontWeight?: number;
|
|
67
|
+
}
|
|
59
68
|
export interface TaskboxConfig {
|
|
69
|
+
/**
|
|
70
|
+
* 드로어 절 제목(내용 · 비고 · 할 일 · 파일 · 댓글) 모양(0.10.36). 앱의 다른 속성 화면 절 제목과 맞출 때 준다
|
|
71
|
+
* (업무함: 아이콘 없이 파랑 · 600). 안 주면 예전 모양 — codeshop 등 기존 소비처는 바뀌지 않는다.
|
|
72
|
+
*/
|
|
73
|
+
sectionTitle?: TaskboxSectionTitleStyle;
|
|
60
74
|
/** 연도 목록의 공휴일을 로드한다(캘린더 빨간날·명칭 표시). 미지정=일요일만 휴일. */
|
|
61
75
|
loadHolidays?: (years: number[]) => Promise<TaskboxHoliday[]>;
|
|
62
76
|
/** 첨부 파일 URL 빌더. 기본 `/api/v1/files/:uuid`. */
|
package/package.json
CHANGED