@mondrianai/runyourai-design-system 0.0.13 → 0.0.14

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.mts CHANGED
@@ -712,6 +712,8 @@ type SidebarMainMenuItem = {
712
712
  type?: 'item';
713
713
  id: string;
714
714
  title: string;
715
+ /** 서브메뉴 패널 헤더 영역을 커스텀할 ReactNode. 미지정 시 title 문자열을 기본 스타일로 표시합니다. */
716
+ panelHeader?: React$1.ReactNode;
715
717
  href: string;
716
718
  icon: React$1.ReactNode;
717
719
  isActive?: boolean;
@@ -796,13 +798,17 @@ interface TabsProps<T extends string = string> {
796
798
  * "pill" — 회색 배경 컨테이너 + 흰 배경 active (segment control 스타일)
797
799
  * "underline" — 하단 밑줄 active (default)
798
800
  */
799
- variant?: 'pill' | 'underline';
801
+ variant?: "pill" | "underline";
800
802
  /** 컨테이너를 w-full로 펼치고 각 탭 버튼을 균등 분할(flex-1)합니다 */
801
803
  block?: boolean;
802
804
  /** Tailwind height 클래스 (e.g. "h-[36px]"). 지정 시 내부 버튼 패딩도 자동 조정됩니다. */
803
805
  height?: string;
804
806
  className?: string;
805
807
  }
808
+ /**
809
+ * 디자인 시스템에서는 동일 뷰의 데이터 전환을 위해 ToggleGroup 대신 Tabs를 사용합니다.
810
+ * Tabs의 원래 목적으로도 사용하며, 한 화면에 두 가지의 의미로 Tabs를 사용하지 않습니다.
811
+ */
806
812
  declare function Tabs<T extends string = string>({ allTabs, current, onTabChange, variant, block, height, className, }: TabsProps<T>): react_jsx_runtime.JSX.Element;
807
813
 
808
814
  interface ToggleProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> {
package/dist/index.d.ts CHANGED
@@ -712,6 +712,8 @@ type SidebarMainMenuItem = {
712
712
  type?: 'item';
713
713
  id: string;
714
714
  title: string;
715
+ /** 서브메뉴 패널 헤더 영역을 커스텀할 ReactNode. 미지정 시 title 문자열을 기본 스타일로 표시합니다. */
716
+ panelHeader?: React$1.ReactNode;
715
717
  href: string;
716
718
  icon: React$1.ReactNode;
717
719
  isActive?: boolean;
@@ -796,13 +798,17 @@ interface TabsProps<T extends string = string> {
796
798
  * "pill" — 회색 배경 컨테이너 + 흰 배경 active (segment control 스타일)
797
799
  * "underline" — 하단 밑줄 active (default)
798
800
  */
799
- variant?: 'pill' | 'underline';
801
+ variant?: "pill" | "underline";
800
802
  /** 컨테이너를 w-full로 펼치고 각 탭 버튼을 균등 분할(flex-1)합니다 */
801
803
  block?: boolean;
802
804
  /** Tailwind height 클래스 (e.g. "h-[36px]"). 지정 시 내부 버튼 패딩도 자동 조정됩니다. */
803
805
  height?: string;
804
806
  className?: string;
805
807
  }
808
+ /**
809
+ * 디자인 시스템에서는 동일 뷰의 데이터 전환을 위해 ToggleGroup 대신 Tabs를 사용합니다.
810
+ * Tabs의 원래 목적으로도 사용하며, 한 화면에 두 가지의 의미로 Tabs를 사용하지 않습니다.
811
+ */
806
812
  declare function Tabs<T extends string = string>({ allTabs, current, onTabChange, variant, block, height, className, }: TabsProps<T>): react_jsx_runtime.JSX.Element;
807
813
 
808
814
  interface ToggleProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> {
package/dist/index.js CHANGED
@@ -4985,7 +4985,7 @@ function Sidebar({
4985
4985
  className,
4986
4986
  LinkComponent
4987
4987
  }) {
4988
- var _a;
4988
+ var _a, _b, _c;
4989
4989
  const [isPanelOpen, setIsPanelOpen] = React22.useState(true);
4990
4990
  const activeMenu = React22.useMemo(
4991
4991
  () => {
@@ -5068,7 +5068,7 @@ function Sidebar({
5068
5068
  }
5069
5069
  ) }),
5070
5070
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex flex-col flex-1 items-center justify-end min-h-0 min-w-0 px-4 py-3 gap-3 w-full", children: utilities == null ? void 0 : utilities.map((util) => {
5071
- var _a2, _b;
5071
+ var _a2, _b2;
5072
5072
  if (util.popover) {
5073
5073
  return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(React22.Fragment, { children: util.popover }, util.id);
5074
5074
  }
@@ -5113,7 +5113,7 @@ function Sidebar({
5113
5113
  }
5114
5114
  )
5115
5115
  },
5116
- (_b = util.id) != null ? _b : util.label
5116
+ (_b2 = util.id) != null ? _b2 : util.label
5117
5117
  );
5118
5118
  }) }),
5119
5119
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex items-center justify-center pt-3 pb-5 shrink-0 w-full", children: avatar })
@@ -5134,7 +5134,7 @@ function Sidebar({
5134
5134
  className: "flex items-center justify-between pl-2 pr-0.5 py-2 w-full",
5135
5135
  style: { height: "36px" },
5136
5136
  children: [
5137
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex items-center gap-1.5 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-sm font-semibold leading-5 text-foreground tracking-tight truncate", children: (activeMenu == null ? void 0 : activeMenu.title) || "-" }) }),
5137
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex items-center gap-1.5 min-w-0", children: (_c = activeMenu == null ? void 0 : activeMenu.panelHeader) != null ? _c : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-sm font-semibold leading-5 text-foreground tracking-tight truncate", children: (_b = activeMenu == null ? void 0 : activeMenu.title) != null ? _b : "-" }) }),
5138
5138
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
5139
5139
  "button",
5140
5140
  {