sellmate-design-system-react 0.2.0 → 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.
- package/README.md +84 -21
- package/dist/components/SActionModal/SActionModal.cjs +2 -0
- package/dist/components/SActionModal/SActionModal.cjs.map +1 -1
- package/dist/components/SActionModal/SActionModal.js +2 -0
- package/dist/components/SActionModal/SActionModal.js.map +1 -1
- package/dist/components/SBarcodeInput/SBarcodeInput.cjs +2 -0
- package/dist/components/SBarcodeInput/SBarcodeInput.cjs.map +1 -1
- package/dist/components/SBarcodeInput/SBarcodeInput.js +2 -0
- package/dist/components/SBarcodeInput/SBarcodeInput.js.map +1 -1
- package/dist/components/SCalendar/SCalendar.cjs +2 -0
- package/dist/components/SCalendar/SCalendar.cjs.map +1 -1
- package/dist/components/SCalendar/SCalendar.js +2 -0
- package/dist/components/SCalendar/SCalendar.js.map +1 -1
- package/dist/components/SChip/SChip.cjs +2 -0
- package/dist/components/SChip/SChip.cjs.map +1 -1
- package/dist/components/SChip/SChip.js +2 -0
- package/dist/components/SChip/SChip.js.map +1 -1
- package/dist/components/SChipInput/SChipInput.cjs +2 -0
- package/dist/components/SChipInput/SChipInput.cjs.map +1 -1
- package/dist/components/SChipInput/SChipInput.js +2 -0
- package/dist/components/SChipInput/SChipInput.js.map +1 -1
- package/dist/components/SConfirmModal/SConfirmModal.cjs +2 -0
- package/dist/components/SConfirmModal/SConfirmModal.cjs.map +1 -1
- package/dist/components/SConfirmModal/SConfirmModal.js +2 -0
- package/dist/components/SConfirmModal/SConfirmModal.js.map +1 -1
- package/dist/components/SDatePicker/SDatePicker.cjs +2 -0
- package/dist/components/SDatePicker/SDatePicker.cjs.map +1 -1
- package/dist/components/SDatePicker/SDatePicker.js +2 -0
- package/dist/components/SDatePicker/SDatePicker.js.map +1 -1
- package/dist/components/SDateRangePicker/SDateRangePicker.cjs +2 -0
- package/dist/components/SDateRangePicker/SDateRangePicker.cjs.map +1 -1
- package/dist/components/SDateRangePicker/SDateRangePicker.js +2 -0
- package/dist/components/SDateRangePicker/SDateRangePicker.js.map +1 -1
- package/dist/components/SField/SField.cjs +2 -0
- package/dist/components/SField/SField.cjs.map +1 -1
- package/dist/components/SField/SField.js +2 -0
- package/dist/components/SField/SField.js.map +1 -1
- package/dist/components/SFilePicker/SFilePicker.cjs +2 -0
- package/dist/components/SFilePicker/SFilePicker.cjs.map +1 -1
- package/dist/components/SFilePicker/SFilePicker.js +2 -0
- package/dist/components/SFilePicker/SFilePicker.js.map +1 -1
- package/dist/components/SGhostButton/SGhostButton.cjs +2 -0
- package/dist/components/SGhostButton/SGhostButton.cjs.map +1 -1
- package/dist/components/SGhostButton/SGhostButton.d.ts +3 -1
- package/dist/components/SGhostButton/SGhostButton.js +2 -0
- package/dist/components/SGhostButton/SGhostButton.js.map +1 -1
- package/dist/components/SGnb/SGnb.cjs +394 -213
- package/dist/components/SGnb/SGnb.cjs.map +1 -1
- package/dist/components/SGnb/SGnb.d.ts +16 -12
- package/dist/components/SGnb/SGnb.js +375 -214
- package/dist/components/SGnb/SGnb.js.map +1 -1
- package/dist/components/SGnb/gnb.config.d.ts +35 -11
- package/dist/components/SGnb/index.d.ts +1 -1
- package/dist/components/SGuide/SGuide.cjs +2 -0
- package/dist/components/SGuide/SGuide.cjs.map +1 -1
- package/dist/components/SGuide/SGuide.js +2 -0
- package/dist/components/SGuide/SGuide.js.map +1 -1
- package/dist/components/SInput/SInput.cjs +2 -0
- package/dist/components/SInput/SInput.cjs.map +1 -1
- package/dist/components/SInput/SInput.js +2 -0
- package/dist/components/SInput/SInput.js.map +1 -1
- package/dist/components/SKeyValueTable/SKeyValueTable.cjs +2 -0
- package/dist/components/SKeyValueTable/SKeyValueTable.cjs.map +1 -1
- package/dist/components/SKeyValueTable/SKeyValueTable.js +2 -0
- package/dist/components/SKeyValueTable/SKeyValueTable.js.map +1 -1
- package/dist/components/SLayout/SLayout.cjs +26 -8
- package/dist/components/SLayout/SLayout.cjs.map +1 -1
- package/dist/components/SLayout/SLayout.d.ts +15 -9
- package/dist/components/SLayout/SLayout.js +26 -8
- package/dist/components/SLayout/SLayout.js.map +1 -1
- package/dist/components/SLayout/index.d.ts +1 -1
- package/dist/components/SLoadingModal/SLoadingModal.cjs +2 -0
- package/dist/components/SLoadingModal/SLoadingModal.cjs.map +1 -1
- package/dist/components/SLoadingModal/SLoadingModal.js +2 -0
- package/dist/components/SLoadingModal/SLoadingModal.js.map +1 -1
- package/dist/components/SModalContainer/SModalContainer.cjs +2 -0
- package/dist/components/SModalContainer/SModalContainer.cjs.map +1 -1
- package/dist/components/SModalContainer/SModalContainer.js +2 -0
- package/dist/components/SModalContainer/SModalContainer.js.map +1 -1
- package/dist/components/SNumberInput/SNumberInput.cjs +2 -0
- package/dist/components/SNumberInput/SNumberInput.cjs.map +1 -1
- package/dist/components/SNumberInput/SNumberInput.js +2 -0
- package/dist/components/SNumberInput/SNumberInput.js.map +1 -1
- package/dist/components/SPage/SPage.cjs +27 -9
- package/dist/components/SPage/SPage.cjs.map +1 -1
- package/dist/components/SPage/SPage.d.ts +2 -2
- package/dist/components/SPage/SPage.js +27 -9
- package/dist/components/SPage/SPage.js.map +1 -1
- package/dist/components/SPopover/SPopover.cjs +2 -0
- package/dist/components/SPopover/SPopover.cjs.map +1 -1
- package/dist/components/SPopover/SPopover.js +2 -0
- package/dist/components/SPopover/SPopover.js.map +1 -1
- package/dist/components/SSelect/SSelect.cjs +2 -0
- package/dist/components/SSelect/SSelect.cjs.map +1 -1
- package/dist/components/SSelect/SSelect.js +2 -0
- package/dist/components/SSelect/SSelect.js.map +1 -1
- package/dist/components/STable/STable.cjs +3 -1
- package/dist/components/STable/STable.cjs.map +1 -1
- package/dist/components/STable/STable.js +3 -1
- package/dist/components/STable/STable.js.map +1 -1
- package/dist/components/STextarea/STextarea.cjs +2 -0
- package/dist/components/STextarea/STextarea.cjs.map +1 -1
- package/dist/components/STextarea/STextarea.js +2 -0
- package/dist/components/STextarea/STextarea.js.map +1 -1
- package/dist/components/STimePicker/STimePicker.cjs +3834 -0
- package/dist/components/STimePicker/STimePicker.cjs.map +1 -0
- package/dist/components/STimePicker/STimePicker.d.ts +50 -0
- package/dist/components/STimePicker/STimePicker.js +3811 -0
- package/dist/components/STimePicker/STimePicker.js.map +1 -0
- package/dist/components/STimePicker/index.d.ts +2 -0
- package/dist/components/STimePicker/timepicker.config.d.ts +23 -0
- package/dist/components/STimeRangePicker/STimeRangePicker.cjs +3908 -0
- package/dist/components/STimeRangePicker/STimeRangePicker.cjs.map +1 -0
- package/dist/components/STimeRangePicker/STimeRangePicker.d.ts +53 -0
- package/dist/components/STimeRangePicker/STimeRangePicker.js +3885 -0
- package/dist/components/STimeRangePicker/STimeRangePicker.js.map +1 -0
- package/dist/components/STimeRangePicker/index.d.ts +1 -0
- package/dist/components/STimeRangePicker/time-range-picker.config.d.ts +9 -0
- package/dist/components/SToast/SToast.cjs +2 -0
- package/dist/components/SToast/SToast.cjs.map +1 -1
- package/dist/components/SToast/SToast.js +2 -0
- package/dist/components/SToast/SToast.js.map +1 -1
- package/dist/components/SToast/SToastContainer.cjs +2 -0
- package/dist/components/SToast/SToastContainer.cjs.map +1 -1
- package/dist/components/SToast/SToastContainer.js +2 -0
- package/dist/components/SToast/SToastContainer.js.map +1 -1
- package/dist/components/STooltip/STooltip.cjs +2 -0
- package/dist/components/STooltip/STooltip.cjs.map +1 -1
- package/dist/components/STooltip/STooltip.js +2 -0
- package/dist/components/STooltip/STooltip.js.map +1 -1
- package/dist/index.cjs +1011 -136
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1006 -136
- package/dist/index.js.map +1 -1
- package/dist/styles.css +475 -74
- package/dist/theme.css +85 -70
- package/package.json +4 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { SIconName } from '../SIcon';
|
|
2
|
-
|
|
2
|
+
import type { STagColor } from '../STag';
|
|
3
|
+
/** 메뉴 스타일: box = 라운드/좁은 들여쓰기, belt = 풀폭 행/넓은 들여쓰기 */
|
|
3
4
|
export type SGnbType = 'box' | 'belt';
|
|
5
|
+
/** 상단바 구조: fix = GNB 폭에 고정, full = 레이아웃 전폭 */
|
|
6
|
+
export type SGnbHeader = 'fix' | 'full';
|
|
4
7
|
/** 색상(테마): light / dark */
|
|
5
8
|
export type SGnbColor = 'light' | 'dark';
|
|
6
9
|
/** GNB 메뉴 아이템 (재귀 트리). depth1 → depth2 → depth3. */
|
|
@@ -13,16 +16,28 @@ export interface SGnbMenuItem {
|
|
|
13
16
|
icon?: SIconName;
|
|
14
17
|
/** 우측 Tag 뱃지 텍스트 */
|
|
15
18
|
tag?: string;
|
|
19
|
+
/** 뱃지 색. 미지정 시 blue. */
|
|
20
|
+
tagColor?: STagColor;
|
|
16
21
|
/** 비활성 여부 */
|
|
17
22
|
disabled?: boolean;
|
|
18
23
|
/** 하위 아이템 (있으면 펼침/접힘 대상) */
|
|
19
24
|
children?: SGnbMenuItem[];
|
|
20
25
|
}
|
|
21
|
-
/**
|
|
22
|
-
|
|
26
|
+
/**
|
|
27
|
+
* 상단바(header 축). fix → gnbBelt-top-* 토큰, full → gnbBox-* 토큰.
|
|
28
|
+
* 배치까지 이 축이 정한다 — fix 는 GNB 컬럼 안, full 은 레이아웃 전폭.
|
|
29
|
+
*/
|
|
30
|
+
export declare const GNB_HEADER: Record<SGnbHeader, {
|
|
31
|
+
topHeight: string;
|
|
23
32
|
topPaddingX: string;
|
|
24
33
|
topGap: string;
|
|
25
|
-
|
|
34
|
+
logoHeight: string;
|
|
35
|
+
}>;
|
|
36
|
+
/** 메뉴(type 축). box → --cmp-gnbBox-*, belt → --cmp-gnbBelt-* */
|
|
37
|
+
export declare const GNB_MENU: Record<SGnbType, {
|
|
38
|
+
bodyPaddingY: string;
|
|
39
|
+
itemMarginX: string;
|
|
40
|
+
itemPaddingY: string;
|
|
26
41
|
itemPaddingRight: string;
|
|
27
42
|
itemGap: string;
|
|
28
43
|
itemRadius: string;
|
|
@@ -37,7 +52,11 @@ export declare const GNB_LAYOUT: Record<SGnbType, {
|
|
|
37
52
|
itemFontSize: number;
|
|
38
53
|
itemLineHeight: number;
|
|
39
54
|
}>;
|
|
40
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* 색상(color 축). light → --cmp-light-* 색, dark → --cmp-dark-* 색 (gnb colortype 토큰)
|
|
57
|
+
* 상단바 아이콘 색(--cmp-*-top-icon)은 SGhostButton 이 자체 intent 토큰으로 칠한다:
|
|
58
|
+
* light → --cmp-ghostButton-default-content, dark → --cmp-ghostButton-inverse-content (값 동일).
|
|
59
|
+
*/
|
|
41
60
|
export declare const GNB_COLORS: Record<SGnbColor, {
|
|
42
61
|
panelBg: string;
|
|
43
62
|
topBorder: string;
|
|
@@ -45,18 +64,23 @@ export declare const GNB_COLORS: Record<SGnbColor, {
|
|
|
45
64
|
itemBgHover: string;
|
|
46
65
|
itemBgSelected: string;
|
|
47
66
|
itemColorDefault: string;
|
|
67
|
+
itemColorHover: string;
|
|
48
68
|
itemColorActive: string;
|
|
69
|
+
itemChevron: string;
|
|
49
70
|
}>;
|
|
50
|
-
/**
|
|
71
|
+
/** 축과 무관한 공통 레이아웃. */
|
|
51
72
|
export declare const GNB_COMMON: {
|
|
52
|
-
|
|
53
|
-
logoHeight: string;
|
|
54
|
-
itemPaddingY: string;
|
|
73
|
+
/** 접힘 레일 폭. header="full" 은 접으면 메뉴만 사라져 레일이 없으므로 fix 전용. */
|
|
55
74
|
foldWidth: string;
|
|
75
|
+
/**
|
|
76
|
+
* 상단바 아이콘 버튼 사이 간격. fix 레일(세로 스택)의 gap·상하 여백에 쓴다.
|
|
77
|
+
* 레일 전용 여백 토큰이 따로 없어 같은 값(8px)인 이 토큰으로 재해석했다.
|
|
78
|
+
*/
|
|
79
|
+
buttonGap: string;
|
|
56
80
|
};
|
|
57
81
|
/**
|
|
58
|
-
* 메뉴 고정 폭.
|
|
59
|
-
*
|
|
82
|
+
* 메뉴 고정 폭. 두 header 모두 메뉴는 이 폭으로 좌측에 붙는다(토큰 없음 → 상수).
|
|
83
|
+
* header="full" 에서 SLayout 이 "메뉴 오른쪽 = 페이지" 영역을 잡을 때도 이 값을 쓴다.
|
|
60
84
|
*/
|
|
61
85
|
export declare const GNB_MENU_WIDTH = 240;
|
|
62
86
|
/** value 로 선택된 아이템의 조상 value 목록(자기 자신 제외)을 반환 → 자동 펼침용 */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { SGnb, type SGnbProps } from './SGnb';
|
|
2
|
-
export {
|
|
2
|
+
export { GNB_HEADER, GNB_MENU, GNB_COLORS, GNB_COMMON, GNB_MENU_WIDTH, findGnbAncestors, type SGnbType, type SGnbHeader, type SGnbColor, type SGnbMenuItem, } from './gnb.config';
|
|
@@ -2993,6 +2993,7 @@ function SGhostButton({
|
|
|
2993
2993
|
size = "sm",
|
|
2994
2994
|
intent = "default",
|
|
2995
2995
|
ariaLabel = "",
|
|
2996
|
+
ariaPressed,
|
|
2996
2997
|
tooltipText,
|
|
2997
2998
|
disabled = false,
|
|
2998
2999
|
onClick,
|
|
@@ -3029,6 +3030,7 @@ function SGhostButton({
|
|
|
3029
3030
|
disabled,
|
|
3030
3031
|
"aria-disabled": disabled ? "true" : void 0,
|
|
3031
3032
|
"aria-label": ariaLabel.trim() || void 0,
|
|
3033
|
+
"aria-pressed": ariaPressed,
|
|
3032
3034
|
tabIndex: disabled ? -1 : void 0,
|
|
3033
3035
|
onClick: (e) => {
|
|
3034
3036
|
if (disabled) {
|