@designbasekorea/ui-wc 0.7.0 → 0.7.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.
@@ -300,6 +300,8 @@ declare class DbTabs extends HTMLElement {
300
300
  private inactivePanels;
301
301
  private isRendering;
302
302
  private childObserver?;
303
+ private resizeObserver?;
304
+ private resizeRaf?;
303
305
  get labels(): string[] | string;
304
306
  set labels(value: string[] | string);
305
307
  get tabItems(): TabItemConfig$1[];
@@ -318,6 +320,7 @@ declare class DbTabs extends HTMLElement {
318
320
  set fullWidth(value: boolean);
319
321
  connectedCallback(): void;
320
322
  disconnectedCallback(): void;
323
+ private handleResize;
321
324
  attributeChangedCallback(): void;
322
325
  private handleListScroll;
323
326
  private collectPanelContent;
@@ -1719,6 +1722,13 @@ declare class DbSidebar extends HTMLElement {
1719
1722
  private flyoutCloseTimer;
1720
1723
  private userFlyoutCloseTimer;
1721
1724
  private outsideHandler;
1725
+ /**
1726
+ * db-sidebar는 Light DOM으로 렌더링하므로 이름 있는 자식 요소를 직접 보존하고
1727
+ * 해당 내비게이션 영역으로 이동해 슬롯처럼 투영합니다.
1728
+ */
1729
+ private collectCustomNavSlots;
1730
+ private createCustomNavSlot;
1731
+ private projectCustomNavSlots;
1722
1732
  static get observedAttributes(): string[];
1723
1733
  connectedCallback(): void;
1724
1734
  disconnectedCallback(): void;
@@ -6442,7 +6452,7 @@ type SegmentControlProps = SelectionProps & {
6442
6452
  value?: string;
6443
6453
  size?: 's' | 'm' | 'l';
6444
6454
  variant?: 'default' | 'icon-only';
6445
- appearance?: 'pill' | 'rounded';
6455
+ appearance?: 'default' | 'pill' | 'rounded';
6446
6456
  fullWidth?: boolean;
6447
6457
  };
6448
6458
  type StepperProps = SelectionProps & {
@@ -7165,6 +7175,11 @@ type SidebarPromoBanner = {
7165
7175
  icon?: string;
7166
7176
  };
7167
7177
  type SidebarProps = WebComponentProps & {
7178
+ /**
7179
+ * 커스텀 내비게이션 콘텐츠입니다.
7180
+ * 최상위 자식에 slot="nav-top" | "nav" | "nav-bottom"을 지정하세요.
7181
+ */
7182
+ children?: ReactNode;
7168
7183
  items?: SidebarItem[] | string;
7169
7184
  sections?: SidebarSection[] | string;
7170
7185
  userMenuItems?: SidebarItem[] | string;
@@ -7186,7 +7201,10 @@ type SidebarProps = WebComponentProps & {
7186
7201
  settingsSections?: SidebarSection[] | string;
7187
7202
  activePanel?: string;
7188
7203
  size?: 's' | 'm' | 'l';
7189
- variant?: 'default' | 'dark' | 'light';
7204
+ /** 레이아웃 외형입니다. default(우측 보더만) · wrapper(패딩+radius+보더 카드형). */
7205
+ variant?: 'default' | 'wrapper';
7206
+ /** 색상 테마입니다. default · dark · light. */
7207
+ theme?: 'default' | 'dark' | 'light';
7190
7208
  position?: 'left' | 'right';
7191
7209
  collapsed?: boolean;
7192
7210
  collapsible?: boolean;
@@ -7808,6 +7826,7 @@ type SearchBarProps = WebComponentProps & {
7808
7826
  defaultValue?: string;
7809
7827
  placeholder?: string;
7810
7828
  size?: 's' | 'm' | 'l';
7829
+ appearance?: 'default' | 'pill';
7811
7830
  disabled?: boolean;
7812
7831
  readOnly?: boolean;
7813
7832
  fullWidth?: boolean;