sellmate-design-system-react 0.3.0 → 0.5.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/SGnb/SGnb.cjs +238 -79
- package/dist/components/SGnb/SGnb.cjs.map +1 -1
- package/dist/components/SGnb/SGnb.d.ts +17 -4
- package/dist/components/SGnb/SGnb.js +238 -79
- package/dist/components/SGnb/SGnb.js.map +1 -1
- package/dist/components/SGnb/gnb.config.d.ts +46 -12
- package/dist/components/SGnb/index.d.ts +1 -1
- package/dist/components/SLayout/SLayout.cjs +20 -19
- package/dist/components/SLayout/SLayout.cjs.map +1 -1
- package/dist/components/SLayout/SLayout.d.ts +4 -0
- package/dist/components/SLayout/SLayout.js +20 -19
- package/dist/components/SLayout/SLayout.js.map +1 -1
- package/dist/components/SPage/SPage.cjs +21 -20
- package/dist/components/SPage/SPage.cjs.map +1 -1
- package/dist/components/SPage/SPage.js +21 -20
- package/dist/components/SPage/SPage.js.map +1 -1
- package/dist/components/STable/STable.cjs +1 -1
- package/dist/components/STable/STable.cjs.map +1 -1
- package/dist/components/STable/STable.js +1 -1
- package/dist/components/STable/STable.js.map +1 -1
- package/dist/components/STabs/STabs.cjs +15 -26
- package/dist/components/STabs/STabs.cjs.map +1 -1
- package/dist/components/STabs/STabs.d.ts +1 -1
- package/dist/components/STabs/STabs.js +15 -26
- package/dist/components/STabs/STabs.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 +3910 -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 +3887 -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/index.cjs +1114 -108
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1107 -109
- package/dist/index.js.map +1 -1
- package/dist/styles.css +143 -72
- package/dist/theme.css +81 -69
- package/package.json +4 -1
|
@@ -2967,6 +2967,7 @@ function STabs({
|
|
|
2967
2967
|
}) {
|
|
2968
2968
|
const s = TAB_MAIN_SIZE[size];
|
|
2969
2969
|
const blue = TAB_MAIN_COLORS.selected.border;
|
|
2970
|
+
const isVertical = isSub && vertical;
|
|
2970
2971
|
const tabRefs = react.useRef([]);
|
|
2971
2972
|
const moveTo = (target) => {
|
|
2972
2973
|
if (target < 0 || target >= tabs.length) return;
|
|
@@ -2974,19 +2975,17 @@ function STabs({
|
|
|
2974
2975
|
tabRefs.current[target]?.focus();
|
|
2975
2976
|
};
|
|
2976
2977
|
const containerStyle = { ...style };
|
|
2977
|
-
if (!isSub) {
|
|
2978
|
-
if (vertical) containerStyle.borderRight = `1px solid ${blue}`;
|
|
2979
|
-
else containerStyle.borderBottom = `1px solid ${blue}`;
|
|
2980
|
-
}
|
|
2978
|
+
if (!isSub) containerStyle.borderBottom = `1px solid ${blue}`;
|
|
2981
2979
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2982
2980
|
"div",
|
|
2983
2981
|
{
|
|
2984
2982
|
role: "tablist",
|
|
2985
|
-
"aria-orientation":
|
|
2983
|
+
"aria-orientation": isVertical ? "vertical" : "horizontal",
|
|
2986
2984
|
className: cn(
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2985
|
+
// main(가로): baseline(하단 divider)이 100% 너비로 채워지도록 w-full
|
|
2986
|
+
isSub ? "inline-flex w-fit" : "flex w-full",
|
|
2987
|
+
isVertical ? "flex-col items-stretch" : "flex-row",
|
|
2988
|
+
isSub ? isVertical ? "gap-[16px]" : "gap-[24px]" : "gap-[4px]",
|
|
2990
2989
|
className
|
|
2991
2990
|
),
|
|
2992
2991
|
style: containerStyle,
|
|
@@ -3015,22 +3014,12 @@ function STabs({
|
|
|
3015
3014
|
color: selected ? TAB_MAIN_COLORS.selected.text : TAB_MAIN_COLORS.default.text,
|
|
3016
3015
|
border: `1px solid ${border}`,
|
|
3017
3016
|
// 폴더형: 미선택 탭은 baseline 위에, 선택 탭은 baseline(파란선)을 1px 덮어 연결된 것처럼 보이게
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
borderRight: selected ? `1px solid ${selectedBg}` : "none",
|
|
3025
|
-
marginRight: selected ? -1 : 0
|
|
3026
|
-
} : {
|
|
3027
|
-
borderTopLeftRadius: 6,
|
|
3028
|
-
borderTopRightRadius: 6,
|
|
3029
|
-
borderBottomLeftRadius: 0,
|
|
3030
|
-
borderBottomRightRadius: 0,
|
|
3031
|
-
borderBottom: selected ? `1px solid ${selectedBg}` : "none",
|
|
3032
|
-
marginBottom: selected ? -1 : 0
|
|
3033
|
-
}
|
|
3017
|
+
borderTopLeftRadius: 6,
|
|
3018
|
+
borderTopRightRadius: 6,
|
|
3019
|
+
borderBottomLeftRadius: 0,
|
|
3020
|
+
borderBottomRightRadius: 0,
|
|
3021
|
+
borderBottom: selected ? `1px solid ${selectedBg}` : "none",
|
|
3022
|
+
marginBottom: selected ? -1 : 0
|
|
3034
3023
|
};
|
|
3035
3024
|
}
|
|
3036
3025
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -3050,8 +3039,8 @@ function STabs({
|
|
|
3050
3039
|
select();
|
|
3051
3040
|
return;
|
|
3052
3041
|
}
|
|
3053
|
-
const nextKey =
|
|
3054
|
-
const prevKey =
|
|
3042
|
+
const nextKey = isVertical ? "ArrowDown" : "ArrowRight";
|
|
3043
|
+
const prevKey = isVertical ? "ArrowUp" : "ArrowLeft";
|
|
3055
3044
|
if (e.key === nextKey) {
|
|
3056
3045
|
e.preventDefault();
|
|
3057
3046
|
moveTo((i + 1) % tabs.length);
|