@aivex/ui 1.1.0-dev.16 → 1.1.0-dev.18
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/components/BreadCrumb/BreadCrumb.d.ts +18 -12
- package/dist/components/BreadCrumb/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.d.ts +13 -5
- package/dist/components/Segmented/Segmented.d.ts +3 -3
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3186 -3092
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface BreadCrumbItemProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
-
label: string;
|
|
4
|
-
href?: string;
|
|
5
|
-
current?: boolean;
|
|
6
|
-
ref?: Ref<HTMLAnchorElement>;
|
|
7
|
-
}
|
|
8
|
-
declare function BreadCrumbItem({ className, label, href, current, ref, ...props }: BreadCrumbItemProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import type { ElementType, HTMLAttributes, ReactNode, Ref } from "react";
|
|
9
2
|
export interface BreadCrumbItemDef {
|
|
10
|
-
label:
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* 렌더링할 컴포넌트를 직접 지정합니다.
|
|
6
|
+
* 예: Next.js `Link`, React Router `NavLink` 등
|
|
7
|
+
* 지정하지 않으면 href 유무에 따라 <a> 또는 <button>으로 자동 선택됩니다.
|
|
8
|
+
*/
|
|
9
|
+
as?: ElementType;
|
|
10
|
+
/** 있으면 <a href> 로 렌더링 (시맨틱 / 새 탭 열기 지원) */
|
|
11
11
|
href?: string;
|
|
12
|
-
|
|
12
|
+
/** 클릭 핸들러 (SPA 라우팅 등) */
|
|
13
|
+
onClick?: () => void;
|
|
13
14
|
}
|
|
14
15
|
export interface BreadCrumbProps extends HTMLAttributes<HTMLElement> {
|
|
15
16
|
items: BreadCrumbItemDef[];
|
|
17
|
+
/**
|
|
18
|
+
* 이 값을 초과하면 중간 항목을 ··· 으로 축소합니다.
|
|
19
|
+
* 예: maxItems=3이고 항목이 5개면 → 첫번째 / ··· / 마지막
|
|
20
|
+
*/
|
|
21
|
+
maxItems?: number;
|
|
16
22
|
ref?: Ref<HTMLElement>;
|
|
17
23
|
}
|
|
18
|
-
declare function BreadCrumb({ className, items, ref, ...props }: BreadCrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export { BreadCrumb
|
|
24
|
+
declare function BreadCrumb({ className, items, maxItems, ref, ...props }: BreadCrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export { BreadCrumb };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { BreadCrumbItemDef,
|
|
2
|
-
export { BreadCrumb
|
|
1
|
+
export type { BreadCrumbItemDef, BreadCrumbProps } from "./BreadCrumb";
|
|
2
|
+
export { BreadCrumb } from "./BreadCrumb";
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { HTMLAttributes, Ref } from "react";
|
|
2
2
|
export interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange"> {
|
|
3
3
|
total: number;
|
|
4
|
-
page
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
page: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
/**
|
|
7
|
+
* 페이지 사이즈 셀렉터 옵션.
|
|
8
|
+
* @example [{ value: 10, label: "10 each" }, { value: 50, label: "50 each" }]
|
|
9
|
+
*/
|
|
10
|
+
pageSizeOptions: Array<{
|
|
11
|
+
value: number;
|
|
12
|
+
label: string;
|
|
13
|
+
}>;
|
|
7
14
|
onChange?: (page: number) => void;
|
|
15
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
8
16
|
ref?: Ref<HTMLElement>;
|
|
9
17
|
}
|
|
10
|
-
declare function Pagination({ className, total, page,
|
|
18
|
+
declare function Pagination({ className, total, page, pageSize, pageSizeOptions, onChange, onPageSizeChange, ref, ...props }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
11
19
|
export { Pagination };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ToggleGroupItemProps, ToggleGroupSingleProps } from "@radix-ui/react-toggle-group";
|
|
2
2
|
import { type ReactNode, type RefAttributes } from "react";
|
|
3
|
-
type SegmentedSize = "sm" | "md" | "lg";
|
|
3
|
+
type SegmentedSize = "sm" | "md" | "lg" | "icon-sm" | "icon-md" | "icon-lg";
|
|
4
4
|
export interface SegmentedRootProps extends Omit<ToggleGroupSingleProps, "onValueChange" | "type">, RefAttributes<HTMLDivElement> {
|
|
5
5
|
size?: SegmentedSize;
|
|
6
6
|
onValueChange?: (value: string) => void;
|
|
7
|
-
|
|
7
|
+
fullWidth?: boolean;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare function SegmentedRoot({ className, size, value, defaultValue, onValueChange,
|
|
10
|
+
declare function SegmentedRoot({ className, size, value, defaultValue, onValueChange, fullWidth, children, ref, ...props }: SegmentedRootProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export interface SegmentedItemProps extends ToggleGroupItemProps, RefAttributes<HTMLButtonElement> {
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
}
|