@nexus-cross/design-system 1.0.6 → 1.0.8
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/breadcrumb.js +6 -2
- package/dist/breadcrumb.mjs +1 -1
- package/dist/chunks/{chunk-PXBZEAZQ.mjs → chunk-22O6YUYH.mjs} +1 -1
- package/dist/chunks/{chunk-SUIT4XKB.js → chunk-3RK3UT2O.js} +42 -11
- package/dist/chunks/{chunk-GN6X27QI.mjs → chunk-AAITRHED.mjs} +42 -11
- package/dist/chunks/chunk-DDY7ENHX.mjs +53 -0
- package/dist/chunks/{chunk-QRNHFOLG.js → chunk-OE5BAEBE.js} +1 -1
- package/dist/chunks/chunk-WATCVNBT.js +76 -0
- package/dist/component-tokens/button.d.ts +3 -0
- package/dist/component-tokens/button.d.ts.map +1 -0
- package/dist/component-tokens/index.d.ts +3 -0
- package/dist/component-tokens/index.d.ts.map +1 -0
- package/dist/component-tokens/types.d.ts +19 -0
- package/dist/component-tokens/types.d.ts.map +1 -0
- package/dist/{accordion.d.mts → components/Accordion.d.ts} +2 -3
- package/dist/components/Accordion.d.ts.map +1 -0
- package/dist/{alert.d.mts → components/Alert.d.ts} +5 -6
- package/dist/components/Alert.d.ts.map +1 -0
- package/dist/{avatar.d.mts → components/Avatar.d.ts} +5 -6
- package/dist/components/Avatar.d.ts.map +1 -0
- package/dist/{badge.d.mts → components/Badge.d.ts} +5 -6
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/Breadcrumb.d.ts +23 -0
- package/dist/components/Breadcrumb.d.ts.map +1 -0
- package/dist/{button.d.mts → components/Button.d.ts} +5 -6
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/{carousel.d.mts → components/Carousel.d.ts} +5 -6
- package/dist/components/Carousel.d.ts.map +1 -0
- package/dist/{checkbox.d.mts → components/CheckBox.d.ts} +6 -7
- package/dist/components/CheckBox.d.ts.map +1 -0
- package/dist/{chip.d.mts → components/Chip.d.ts} +6 -7
- package/dist/components/Chip.d.ts.map +1 -0
- package/dist/{client-only.d.mts → components/ClientOnly.d.ts} +4 -5
- package/dist/components/ClientOnly.d.ts.map +1 -0
- package/dist/{countdown.d.mts → components/Countdown.d.ts} +3 -3
- package/dist/components/Countdown.d.ts.map +1 -0
- package/dist/{counter.d.mts → components/Counter.d.ts} +3 -3
- package/dist/components/Counter.d.ts.map +1 -0
- package/dist/{data-list.d.mts → components/DataList.d.ts} +4 -5
- package/dist/components/DataList.d.ts.map +1 -0
- package/dist/{date-picker.d.mts → components/DatePicker.d.ts} +3 -3
- package/dist/components/DatePicker.d.ts.map +1 -0
- package/dist/{divider.d.mts → components/Divider.d.ts} +5 -6
- package/dist/components/Divider.d.ts.map +1 -0
- package/dist/{drawer.d.mts → components/Drawer.d.ts} +13 -15
- package/dist/components/Drawer.d.ts.map +1 -0
- package/dist/{dropdown-menu.d.mts → components/DropdownMenu.d.ts} +4 -4
- package/dist/components/DropdownMenu.d.ts.map +1 -0
- package/dist/{ellipsis.d.mts → components/Ellipsis.d.ts} +4 -5
- package/dist/components/Ellipsis.d.ts.map +1 -0
- package/dist/{empty-state.d.mts → components/EmptyState.d.ts} +5 -6
- package/dist/components/EmptyState.d.ts.map +1 -0
- package/dist/{error-boundary.d.mts → components/ErrorBoundary.d.ts} +4 -5
- package/dist/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/{infinite-scroll.d.mts → components/InfiniteScroll.d.ts} +5 -6
- package/dist/components/InfiniteScroll.d.ts.map +1 -0
- package/dist/{marquee.d.mts → components/Marquee.d.ts} +3 -3
- package/dist/components/Marquee.d.ts.map +1 -0
- package/dist/{number-input.d.mts → components/NumberInput.d.ts} +5 -6
- package/dist/components/NumberInput.d.ts.map +1 -0
- package/dist/{nx-image.d.mts → components/NxImage.d.ts} +3 -3
- package/dist/components/NxImage.d.ts.map +1 -0
- package/dist/{pagination.d.mts → components/Pagination.d.ts} +6 -7
- package/dist/components/Pagination.d.ts.map +1 -0
- package/dist/components/Popover.d.ts +23 -0
- package/dist/components/Popover.d.ts.map +1 -0
- package/dist/{price-input.d.ts → components/PriceInput.d.ts} +5 -6
- package/dist/components/PriceInput.d.ts.map +1 -0
- package/dist/{progress.d.mts → components/Progress.d.ts} +5 -6
- package/dist/components/Progress.d.ts.map +1 -0
- package/dist/{radio-group.d.mts → components/RadioGroup.d.ts} +6 -7
- package/dist/components/RadioGroup.d.ts.map +1 -0
- package/dist/{select.d.mts → components/Select.d.ts} +7 -10
- package/dist/components/Select.d.ts.map +1 -0
- package/dist/{skeleton.d.mts → components/Skeleton.d.ts} +3 -3
- package/dist/components/Skeleton.d.ts.map +1 -0
- package/dist/{slider.d.mts → components/Slider.d.ts} +5 -6
- package/dist/components/Slider.d.ts.map +1 -0
- package/dist/{spinner.d.mts → components/Spinner.d.ts} +3 -3
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/{stepper.d.mts → components/Stepper.d.ts} +5 -6
- package/dist/components/Stepper.d.ts.map +1 -0
- package/dist/{switch.d.mts → components/Switch.d.ts} +5 -6
- package/dist/components/Switch.d.ts.map +1 -0
- package/dist/{tab.d.mts → components/Tab.d.ts} +7 -9
- package/dist/components/Tab.d.ts.map +1 -0
- package/dist/{tag-input.d.mts → components/TagInput.d.ts} +5 -6
- package/dist/components/TagInput.d.ts.map +1 -0
- package/dist/{text-area.d.mts → components/TextArea.d.ts} +5 -6
- package/dist/components/TextArea.d.ts.map +1 -0
- package/dist/{text-input.d.mts → components/TextInput.d.ts} +5 -6
- package/dist/components/TextInput.d.ts.map +1 -0
- package/dist/{theme-provider.d.mts → components/ThemeProvider.d.ts} +3 -3
- package/dist/components/ThemeProvider.d.ts.map +1 -0
- package/dist/{toggle-group.d.mts → components/ToggleGroup.d.ts} +5 -6
- package/dist/components/ToggleGroup.d.ts.map +1 -0
- package/dist/{tooltip.d.mts → components/Tooltip.d.ts} +6 -10
- package/dist/components/Tooltip.d.ts.map +1 -0
- package/dist/{virtual-scroll.d.mts → components/VirtualScroll.d.ts} +4 -4
- package/dist/components/VirtualScroll.d.ts.map +1 -0
- package/dist/hooks/useCheckDevice.d.ts +4 -4
- package/dist/hooks/useCheckDevice.d.ts.map +1 -0
- package/dist/hooks/useClickOutside.d.ts +2 -2
- package/dist/hooks/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useDraggableBottomSheet.d.ts +3 -3
- package/dist/hooks/useDraggableBottomSheet.d.ts.map +1 -0
- package/dist/hooks/useDraggableWindow.d.ts +5 -7
- package/dist/hooks/useDraggableWindow.d.ts.map +1 -0
- package/dist/hooks/useInView.d.ts +3 -3
- package/dist/hooks/useInView.d.ts.map +1 -0
- package/dist/hooks/useModal.d.ts +48 -2
- package/dist/hooks/useModal.d.ts.map +1 -0
- package/dist/index.d.ts +100 -91
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -9
- package/dist/index.mjs +2 -2
- package/dist/modal/Modal.d.ts +52 -0
- package/dist/modal/Modal.d.ts.map +1 -0
- package/dist/modal/components/ModalComponent.d.ts +22 -0
- package/dist/modal/components/ModalComponent.d.ts.map +1 -0
- package/dist/modal/components/ModalContainer.d.ts +9 -0
- package/dist/modal/components/ModalContainer.d.ts.map +1 -0
- package/dist/modal/components/ModalPortal.d.ts +8 -0
- package/dist/modal/components/ModalPortal.d.ts.map +1 -0
- package/dist/modal/components/ModalPortalTarget.d.ts +7 -0
- package/dist/modal/components/ModalPortalTarget.d.ts.map +1 -0
- package/dist/modal/components/ModalTemplate.d.ts +20 -0
- package/dist/modal/components/ModalTemplate.d.ts.map +1 -0
- package/dist/modal/components/ModalTemplate.variants.d.ts +29 -0
- package/dist/modal/components/ModalTemplate.variants.d.ts.map +1 -0
- package/dist/modal/constants.d.ts +3 -0
- package/dist/modal/constants.d.ts.map +1 -0
- package/dist/modal/index.d.ts +11 -82
- package/dist/modal/index.d.ts.map +1 -0
- package/dist/modal/types.d.ts +90 -0
- package/dist/modal/types.d.ts.map +1 -0
- package/dist/schemas/_all.json +6 -26
- package/dist/schemas/accordion.d.ts +67 -0
- package/dist/schemas/accordion.d.ts.map +1 -0
- package/dist/schemas/alert.d.ts +30 -0
- package/dist/schemas/alert.d.ts.map +1 -0
- package/dist/schemas/avatar.d.ts +30 -0
- package/dist/schemas/avatar.d.ts.map +1 -0
- package/dist/schemas/badge.d.ts +33 -0
- package/dist/schemas/badge.d.ts.map +1 -0
- package/dist/schemas/breadcrumb.d.ts +28 -0
- package/dist/schemas/breadcrumb.d.ts.map +1 -0
- package/dist/schemas/breadcrumb.json +6 -26
- package/dist/schemas/button.d.ts +42 -0
- package/dist/schemas/button.d.ts.map +1 -0
- package/dist/schemas/carousel.d.ts +48 -0
- package/dist/schemas/carousel.d.ts.map +1 -0
- package/dist/schemas/checkbox.d.ts +48 -0
- package/dist/schemas/checkbox.d.ts.map +1 -0
- package/dist/schemas/chip.d.ts +30 -0
- package/dist/schemas/chip.d.ts.map +1 -0
- package/dist/schemas/client-only.d.ts +12 -0
- package/dist/schemas/client-only.d.ts.map +1 -0
- package/dist/schemas/countdown.d.ts +52 -0
- package/dist/schemas/countdown.d.ts.map +1 -0
- package/dist/schemas/counter.d.ts +36 -0
- package/dist/schemas/counter.d.ts.map +1 -0
- package/dist/schemas/data-list.d.ts +33 -0
- package/dist/schemas/data-list.d.ts.map +1 -0
- package/dist/schemas/date-picker.d.ts +36 -0
- package/dist/schemas/date-picker.d.ts.map +1 -0
- package/dist/schemas/divider.d.ts +21 -0
- package/dist/schemas/divider.d.ts.map +1 -0
- package/dist/schemas/drawer.d.ts +95 -0
- package/dist/schemas/drawer.d.ts.map +1 -0
- package/dist/schemas/dropdown-menu.d.ts +64 -0
- package/dist/schemas/dropdown-menu.d.ts.map +1 -0
- package/dist/schemas/ellipsis.d.ts +30 -0
- package/dist/schemas/ellipsis.d.ts.map +1 -0
- package/dist/schemas/empty-state.d.ts +27 -0
- package/dist/schemas/empty-state.d.ts.map +1 -0
- package/dist/schemas/error-boundary.d.ts +15 -0
- package/dist/schemas/error-boundary.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +47 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/infinite-scroll.d.ts +39 -0
- package/dist/schemas/infinite-scroll.d.ts.map +1 -0
- package/dist/schemas/marquee.d.ts +27 -0
- package/dist/schemas/marquee.d.ts.map +1 -0
- package/dist/schemas/modal.d.ts +176 -0
- package/dist/schemas/modal.d.ts.map +1 -0
- package/dist/schemas/number-input.d.ts +72 -0
- package/dist/schemas/number-input.d.ts.map +1 -0
- package/dist/schemas/nx-image.d.ts +33 -0
- package/dist/schemas/nx-image.d.ts.map +1 -0
- package/dist/schemas/pagination.d.ts +27 -0
- package/dist/schemas/pagination.d.ts.map +1 -0
- package/dist/schemas/popover.d.ts +39 -0
- package/dist/schemas/popover.d.ts.map +1 -0
- package/dist/schemas/price-input.d.ts +63 -0
- package/dist/schemas/price-input.d.ts.map +1 -0
- package/dist/schemas/progress.d.ts +30 -0
- package/dist/schemas/progress.d.ts.map +1 -0
- package/dist/schemas/radio-group.d.ts +61 -0
- package/dist/schemas/radio-group.d.ts.map +1 -0
- package/dist/schemas/select.d.ts +52 -0
- package/dist/schemas/select.d.ts.map +1 -0
- package/dist/schemas/skeleton.d.ts +27 -0
- package/dist/schemas/skeleton.d.ts.map +1 -0
- package/dist/schemas/slider.d.ts +45 -0
- package/dist/schemas/slider.d.ts.map +1 -0
- package/dist/schemas/spinner.d.ts +21 -0
- package/dist/schemas/spinner.d.ts.map +1 -0
- package/dist/schemas/stepper.d.ts +39 -0
- package/dist/schemas/stepper.d.ts.map +1 -0
- package/dist/schemas/switch.d.ts +33 -0
- package/dist/schemas/switch.d.ts.map +1 -0
- package/dist/schemas/tab.d.ts +61 -0
- package/dist/schemas/tab.d.ts.map +1 -0
- package/dist/schemas/table.d.ts +113 -0
- package/dist/schemas/table.d.ts.map +1 -0
- package/dist/schemas/tag-input.d.ts +39 -0
- package/dist/schemas/tag-input.d.ts.map +1 -0
- package/dist/schemas/text-area.d.ts +69 -0
- package/dist/schemas/text-area.d.ts.map +1 -0
- package/dist/schemas/text-input.d.ts +78 -0
- package/dist/schemas/text-input.d.ts.map +1 -0
- package/dist/schemas/theme-provider.d.ts +36 -0
- package/dist/schemas/theme-provider.d.ts.map +1 -0
- package/dist/schemas/toast.d.ts +91 -0
- package/dist/schemas/toast.d.ts.map +1 -0
- package/dist/schemas/toggle-group.d.ts +58 -0
- package/dist/schemas/toggle-group.d.ts.map +1 -0
- package/dist/schemas/tooltip.d.ts +33 -0
- package/dist/schemas/tooltip.d.ts.map +1 -0
- package/dist/schemas/virtual-scroll.d.ts +67 -0
- package/dist/schemas/virtual-scroll.d.ts.map +1 -0
- package/dist/schemas.js +11 -10
- package/dist/schemas.mjs +11 -10
- package/dist/styles/.generated/built.d.ts +3 -0
- package/dist/styles/.generated/built.d.ts.map +1 -0
- package/dist/styles/inject-layer.d.ts +2 -0
- package/dist/styles/inject-layer.d.ts.map +1 -0
- package/dist/styles/inject.d.ts +2 -0
- package/dist/styles/inject.d.ts.map +1 -0
- package/dist/styles/layer.js +2 -2
- package/dist/styles/layer.mjs +1 -1
- package/dist/styles.css +96 -33
- package/dist/styles.js +2 -2
- package/dist/styles.layered.css +96 -33
- package/dist/styles.mjs +1 -1
- package/dist/table/Table.d.ts +20 -0
- package/dist/table/Table.d.ts.map +1 -0
- package/dist/table/TableHighlightContext.d.ts +11 -0
- package/dist/table/TableHighlightContext.d.ts.map +1 -0
- package/dist/table/TableRow.d.ts +17 -0
- package/dist/table/TableRow.d.ts.map +1 -0
- package/dist/table/TdColumn.d.ts +14 -0
- package/dist/table/TdColumn.d.ts.map +1 -0
- package/dist/table/index.d.ts +23 -0
- package/dist/table/index.d.ts.map +1 -0
- package/dist/table/types.d.ts +27 -0
- package/dist/table/types.d.ts.map +1 -0
- package/dist/table.js +7 -7
- package/dist/table.mjs +1 -1
- package/dist/toast/Toast.d.ts +8 -0
- package/dist/toast/Toast.d.ts.map +1 -0
- package/dist/toast/index.d.ts +6 -0
- package/dist/toast/index.d.ts.map +1 -0
- package/dist/{toast.d.mts → toast/useToast.d.ts} +4 -14
- package/dist/toast/useToast.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +3 -5
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/scroll.d.ts +3 -4
- package/dist/utils/scroll.d.ts.map +1 -0
- package/package.json +49 -49
- package/dist/accordion.d.ts +0 -28
- package/dist/alert.d.ts +0 -17
- package/dist/avatar.d.ts +0 -17
- package/dist/badge.d.ts +0 -18
- package/dist/breadcrumb.d.mts +0 -15
- package/dist/breadcrumb.d.ts +0 -15
- package/dist/button.d.ts +0 -17
- package/dist/carousel.d.ts +0 -36
- package/dist/checkbox.d.ts +0 -21
- package/dist/chip.d.ts +0 -16
- package/dist/chunks/chunk-3ZWN66YH.js +0 -53
- package/dist/chunks/chunk-EJY7IVSK.mjs +0 -31
- package/dist/client-only.d.ts +0 -13
- package/dist/countdown.d.ts +0 -27
- package/dist/counter.d.ts +0 -15
- package/dist/data-list.d.ts +0 -33
- package/dist/date-picker.d.ts +0 -17
- package/dist/divider.d.ts +0 -14
- package/dist/drawer.d.ts +0 -42
- package/dist/dropdown-menu.d.ts +0 -30
- package/dist/ellipsis.d.ts +0 -16
- package/dist/empty-state.d.ts +0 -16
- package/dist/error-boundary.d.ts +0 -20
- package/dist/hooks/useCheckDevice.d.mts +0 -47
- package/dist/hooks/useClickOutside.d.mts +0 -12
- package/dist/hooks/useDraggableBottomSheet.d.mts +0 -24
- package/dist/hooks/useDraggableWindow.d.mts +0 -21
- package/dist/hooks/useInView.d.mts +0 -14
- package/dist/hooks/useModal.d.mts +0 -2
- package/dist/index.d.mts +0 -91
- package/dist/infinite-scroll.d.ts +0 -26
- package/dist/marquee.d.ts +0 -12
- package/dist/modal/index.d.mts +0 -87
- package/dist/number-input.d.ts +0 -37
- package/dist/nx-image.d.ts +0 -13
- package/dist/pagination.d.ts +0 -22
- package/dist/popover.d.mts +0 -25
- package/dist/popover.d.ts +0 -25
- package/dist/price-input.d.mts +0 -36
- package/dist/progress.d.ts +0 -18
- package/dist/radio-group.d.ts +0 -29
- package/dist/schemas.d.mts +0 -2173
- package/dist/schemas.d.ts +0 -2173
- package/dist/select.d.ts +0 -31
- package/dist/skeleton.d.ts +0 -15
- package/dist/slider.d.ts +0 -20
- package/dist/spinner.d.ts +0 -9
- package/dist/stepper.d.ts +0 -20
- package/dist/styles/layer.d.mts +0 -3
- package/dist/styles/layer.d.ts +0 -3
- package/dist/styles.d.mts +0 -3
- package/dist/styles.d.ts +0 -3
- package/dist/switch.d.ts +0 -15
- package/dist/tab.d.ts +0 -36
- package/dist/table.d.mts +0 -95
- package/dist/table.d.ts +0 -95
- package/dist/tag-input.d.ts +0 -21
- package/dist/text-area.d.ts +0 -19
- package/dist/text-input.d.ts +0 -21
- package/dist/theme-provider.d.ts +0 -25
- package/dist/toast.d.ts +0 -42
- package/dist/toggle-group.d.ts +0 -36
- package/dist/tooltip.d.ts +0 -24
- package/dist/useModal-BsGIcP8t.d.mts +0 -128
- package/dist/useModal-BsGIcP8t.d.ts +0 -128
- package/dist/utils/cn.d.mts +0 -5
- package/dist/utils/scroll.d.mts +0 -4
- package/dist/virtual-scroll.d.ts +0 -34
package/dist/counter.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface CounterProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
-
startValue?: number;
|
|
5
|
-
endValue: number;
|
|
6
|
-
duration?: number;
|
|
7
|
-
delay?: number;
|
|
8
|
-
separator?: boolean;
|
|
9
|
-
digits?: number;
|
|
10
|
-
triggerOnView?: boolean;
|
|
11
|
-
onEnd?: () => void;
|
|
12
|
-
}
|
|
13
|
-
declare const Counter: React.ForwardRefExoticComponent<CounterProps & React.RefAttributes<HTMLSpanElement>>;
|
|
14
|
-
|
|
15
|
-
export { Counter, type CounterProps };
|
package/dist/data-list.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
type UnknownArray = readonly unknown[];
|
|
5
|
-
interface DataListProps<T extends UnknownArray> {
|
|
6
|
-
/** 렌더링할 데이터 배열. null이면 로딩 상태로 간주 */
|
|
7
|
-
list: T | null;
|
|
8
|
-
/** 빈 배열일 때 표시할 메시지 또는 요소 */
|
|
9
|
-
noDataMessage?: string | React.ReactElement;
|
|
10
|
-
/** 에러 발생 시 표시할 fallback */
|
|
11
|
-
errorFallback?: React.ReactNode;
|
|
12
|
-
/** 로딩 중 표시할 요소 (기본: Spinner) */
|
|
13
|
-
loadingElement?: React.ReactElement;
|
|
14
|
-
/** 로딩 중 표시할 스켈레톤 요소 */
|
|
15
|
-
skeletonElement?: React.ReactElement;
|
|
16
|
-
/** 스켈레톤 반복 개수 */
|
|
17
|
-
skeletonCount?: number;
|
|
18
|
-
/** 강제 로딩 상태 */
|
|
19
|
-
loading?: boolean;
|
|
20
|
-
/** 각 아이템을 렌더링하는 함수 */
|
|
21
|
-
children: (params: {
|
|
22
|
-
item: T[number];
|
|
23
|
-
index: number;
|
|
24
|
-
}) => React.ReactNode;
|
|
25
|
-
/** 루트 요소 className */
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
28
|
-
declare function DataList<T extends UnknownArray>({ list, loadingElement, skeletonElement, skeletonCount, noDataMessage, loading, errorFallback, children, className, }: DataListProps<T>): react_jsx_runtime.JSX.Element;
|
|
29
|
-
declare namespace DataList {
|
|
30
|
-
var displayName: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { DataList, type DataListProps };
|
package/dist/date-picker.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface DatePickerProps {
|
|
4
|
-
value?: Date;
|
|
5
|
-
defaultValue?: Date;
|
|
6
|
-
onChange?: (date: Date | undefined) => void;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
minDate?: Date;
|
|
10
|
-
maxDate?: Date;
|
|
11
|
-
locale?: 'ko' | 'en';
|
|
12
|
-
formatStr?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
declare const DatePicker: React.FC<DatePickerProps>;
|
|
16
|
-
|
|
17
|
-
export { DatePicker, type DatePickerProps };
|
package/dist/divider.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
5
|
-
declare const dividerVariants: (props?: ({
|
|
6
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
7
|
-
variant?: "dashed" | "dotted" | "solid" | null | undefined;
|
|
8
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
interface DividerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dividerVariants> {
|
|
10
|
-
color?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
|
|
14
|
-
export { Divider, type DividerProps, dividerVariants };
|
package/dist/drawer.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Drawer as Drawer$1 } from 'vaul';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
|
|
6
|
-
declare const drawerOverlayVariants: (props?: ({
|
|
7
|
-
blur?: "none" | "md" | "sm" | null | undefined;
|
|
8
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
declare const drawerContentVariants: (props?: ({
|
|
10
|
-
direction?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
11
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
|
-
type DrawerDirection = 'bottom' | 'top' | 'left' | 'right';
|
|
13
|
-
type DrawerRootProps = React.ComponentPropsWithoutRef<typeof Drawer$1.Root> & {
|
|
14
|
-
direction?: DrawerDirection;
|
|
15
|
-
};
|
|
16
|
-
declare const DrawerRoot: ({ direction, ...props }: DrawerRootProps) => React.ReactElement;
|
|
17
|
-
declare const DrawerTrigger: React.FC<React.ComponentPropsWithoutRef<typeof Drawer$1.Trigger>>;
|
|
18
|
-
interface DrawerContentProps extends VariantProps<typeof drawerOverlayVariants> {
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
direction?: DrawerDirection;
|
|
21
|
-
showHandle?: boolean;
|
|
22
|
-
overlayClassName?: string;
|
|
23
|
-
className?: string;
|
|
24
|
-
}
|
|
25
|
-
declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
declare const DrawerClose: React.FC<React.ComponentPropsWithoutRef<typeof Drawer$1.Close>>;
|
|
27
|
-
declare const DrawerTitle: React.FC<React.ComponentPropsWithoutRef<typeof Drawer$1.Title> & {
|
|
28
|
-
className?: string;
|
|
29
|
-
}>;
|
|
30
|
-
declare const DrawerDescription: React.FC<React.ComponentPropsWithoutRef<typeof Drawer$1.Description> & {
|
|
31
|
-
className?: string;
|
|
32
|
-
}>;
|
|
33
|
-
type DrawerComponent = typeof DrawerRoot & {
|
|
34
|
-
Trigger: typeof DrawerTrigger;
|
|
35
|
-
Content: typeof DrawerContent;
|
|
36
|
-
Close: typeof DrawerClose;
|
|
37
|
-
Title: typeof DrawerTitle;
|
|
38
|
-
Description: typeof DrawerDescription;
|
|
39
|
-
};
|
|
40
|
-
declare const Drawer: DrawerComponent;
|
|
41
|
-
|
|
42
|
-
export { Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDirection, DrawerRoot, type DrawerRootProps, DrawerTitle, DrawerTrigger, drawerContentVariants, drawerOverlayVariants };
|
package/dist/dropdown-menu.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
|
-
|
|
4
|
-
interface DropdownMenuItemType {
|
|
5
|
-
label: React.ReactNode;
|
|
6
|
-
value?: string;
|
|
7
|
-
icon?: React.ReactNode;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
danger?: boolean;
|
|
11
|
-
separator?: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface DropdownMenuProps {
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
items: DropdownMenuItemType[];
|
|
16
|
-
align?: 'start' | 'center' | 'end';
|
|
17
|
-
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
18
|
-
className?: string;
|
|
19
|
-
contentClassName?: string;
|
|
20
|
-
}
|
|
21
|
-
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
22
|
-
declare const DropdownMenuRoot: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
23
|
-
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
-
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
26
|
-
danger?: boolean;
|
|
27
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
-
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
-
|
|
30
|
-
export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, type DropdownMenuItemType, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuTrigger };
|
package/dist/ellipsis.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
interface EllipsisProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
content: ReactNode;
|
|
7
|
-
triggerMore?: ReactNode;
|
|
8
|
-
triggerLess?: ReactNode;
|
|
9
|
-
lineClamp?: number;
|
|
10
|
-
defaultShortened?: boolean;
|
|
11
|
-
observingEnvs?: boolean[];
|
|
12
|
-
onShowMoreLessClick?: () => void;
|
|
13
|
-
}
|
|
14
|
-
declare const Ellipsis: ({ className, content, triggerMore, triggerLess, lineClamp, defaultShortened, observingEnvs, onShowMoreLessClick, }: EllipsisProps) => react_jsx_runtime.JSX.Element;
|
|
15
|
-
|
|
16
|
-
export { Ellipsis, type EllipsisProps };
|
package/dist/empty-state.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
5
|
-
declare const emptyStateVariants: (props?: ({
|
|
6
|
-
size?: "lg" | "md" | "sm" | null | undefined;
|
|
7
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
|
-
interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof emptyStateVariants> {
|
|
9
|
-
icon?: React.ReactNode;
|
|
10
|
-
title?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
action?: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
|
|
16
|
-
export { EmptyState, type EmptyStateProps, emptyStateVariants };
|
package/dist/error-boundary.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
interface ErrorBoundaryProps {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
fallback?: React.ReactNode;
|
|
7
|
-
onError?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
8
|
-
}
|
|
9
|
-
interface ErrorBoundaryState {
|
|
10
|
-
hasError: boolean;
|
|
11
|
-
error: Error | null;
|
|
12
|
-
}
|
|
13
|
-
declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
14
|
-
constructor(props: ErrorBoundaryProps);
|
|
15
|
-
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
16
|
-
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
17
|
-
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { ErrorBoundary, type ErrorBoundaryProps };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
interface BreakPoints {
|
|
2
|
-
isDesktop?: string;
|
|
3
|
-
isTablet?: string;
|
|
4
|
-
isMobile?: string;
|
|
5
|
-
}
|
|
6
|
-
interface CheckDeviceResult {
|
|
7
|
-
isDesktop: boolean;
|
|
8
|
-
isTablet: boolean;
|
|
9
|
-
isMobile: boolean;
|
|
10
|
-
}
|
|
11
|
-
type NumericBreakpoints = Record<string, number>;
|
|
12
|
-
/**
|
|
13
|
-
* 미디어쿼리 기반 디바이스 타입 감지 훅.
|
|
14
|
-
*
|
|
15
|
-
* 숫자 기반 (권장):
|
|
16
|
-
* ```tsx
|
|
17
|
-
* const device = useCheckDevice({
|
|
18
|
-
* mobile: 0,
|
|
19
|
-
* tablet: 600,
|
|
20
|
-
* 'desktop-sm': 1024,
|
|
21
|
-
* desktop: 1280,
|
|
22
|
-
* });
|
|
23
|
-
* // device.mobile, device.tablet, device['desktop-sm'], device.desktop
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* 기본값:
|
|
27
|
-
* ```tsx
|
|
28
|
-
* const { mobile, tablet, desktop } = useCheckDevice();
|
|
29
|
-
* // mobile < 768, tablet 768–1279, desktop 1280+
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* 레거시 (미디어쿼리 문자열):
|
|
33
|
-
* ```tsx
|
|
34
|
-
* const { isDesktop } = useCheckDevice({
|
|
35
|
-
* isDesktop: '(min-width: 1440px)',
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
declare function useCheckDevice(): {
|
|
40
|
-
mobile: boolean;
|
|
41
|
-
tablet: boolean;
|
|
42
|
-
desktop: boolean;
|
|
43
|
-
};
|
|
44
|
-
declare function useCheckDevice(breakPoints: BreakPoints | undefined): CheckDeviceResult;
|
|
45
|
-
declare function useCheckDevice(breakPoints: NumericBreakpoints): Record<string, boolean>;
|
|
46
|
-
|
|
47
|
-
export { type BreakPoints, type CheckDeviceResult, useCheckDevice as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 특정 엘리먼트 외부 클릭을 감지하는 훅.
|
|
3
|
-
*
|
|
4
|
-
* @param ref - 외부 클릭 감지 대상 HTMLElement (또는 null)
|
|
5
|
-
* @param handler - 외부 클릭 시 실행할 콜백
|
|
6
|
-
* @param option.offTouchEvent - true이면 touchstart 이벤트 무시
|
|
7
|
-
*/
|
|
8
|
-
declare const useClickOutside: (ref: HTMLElement | null, handler: (e: MouseEvent | TouchEvent) => void, option?: {
|
|
9
|
-
offTouchEvent?: boolean;
|
|
10
|
-
}) => void;
|
|
11
|
-
|
|
12
|
-
export { useClickOutside as default };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
interface UseDraggableBottomSheetOptions {
|
|
2
|
-
enabled: boolean;
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
threshold?: number;
|
|
5
|
-
velocityThreshold?: number;
|
|
6
|
-
maxDragDistance?: number;
|
|
7
|
-
}
|
|
8
|
-
declare function useDraggableBottomSheet({ enabled, onClose, threshold, velocityThreshold, maxDragDistance, }: UseDraggableBottomSheetOptions): {
|
|
9
|
-
onTouchStart: undefined;
|
|
10
|
-
onTouchMove: undefined;
|
|
11
|
-
onTouchEnd: undefined;
|
|
12
|
-
translateY: number;
|
|
13
|
-
dimOpacity: number;
|
|
14
|
-
isAnimating: boolean;
|
|
15
|
-
} | {
|
|
16
|
-
onTouchStart: (e: React.TouchEvent) => void;
|
|
17
|
-
onTouchMove: (e: React.TouchEvent) => void;
|
|
18
|
-
onTouchEnd: () => void;
|
|
19
|
-
translateY: number;
|
|
20
|
-
dimOpacity: number;
|
|
21
|
-
isAnimating: boolean;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { useDraggableBottomSheet };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React$1 from 'react';
|
|
2
|
-
import { RefObject } from 'react';
|
|
3
|
-
|
|
4
|
-
interface Position {
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
}
|
|
8
|
-
interface UseDraggableWindowOptions {
|
|
9
|
-
initialPosition?: Position;
|
|
10
|
-
persistKey?: string;
|
|
11
|
-
targetRef?: RefObject<HTMLElement | null>;
|
|
12
|
-
}
|
|
13
|
-
declare function useDraggableWindow({ initialPosition, persistKey, targetRef, }?: UseDraggableWindowOptions): {
|
|
14
|
-
position: Position;
|
|
15
|
-
setPosition: React$1.Dispatch<React$1.SetStateAction<Position>>;
|
|
16
|
-
handleMouseDown: (e: React.MouseEvent) => void;
|
|
17
|
-
resetPosition: () => void;
|
|
18
|
-
isDefaultPosition: boolean;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export { useDraggableWindow };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface UseInViewOptions {
|
|
2
|
-
/** 한 번 보이면 계속 true 유지 (default: true) */
|
|
3
|
-
triggerOnce?: boolean;
|
|
4
|
-
/** 뷰포트 확장 마진 (default: '200px') */
|
|
5
|
-
rootMargin?: string;
|
|
6
|
-
/** 교차 비율 임계값 (default: 0) */
|
|
7
|
-
threshold?: number;
|
|
8
|
-
}
|
|
9
|
-
declare function useInView(options?: UseInViewOptions): {
|
|
10
|
-
ref: (node: Element | null) => void;
|
|
11
|
-
isInView: boolean;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { useInView as default, useInView };
|
package/dist/index.d.mts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
export { cn } from './utils/cn.mjs';
|
|
2
|
-
export { scrollFreeze, scrollRelease } from './utils/scroll.mjs';
|
|
3
|
-
export { BreakPoints, CheckDeviceResult, default as useCheckDevice } from './hooks/useCheckDevice.mjs';
|
|
4
|
-
export { default as useClickOutside } from './hooks/useClickOutside.mjs';
|
|
5
|
-
export { A as AnimationOptions, D as DefaultModalPropsType, M as ModalLayout, a as ModalPropsType, b as ModalTemplatePropsType, c as ModalType, O as OpenModal, u as useModal } from './useModal-BsGIcP8t.mjs';
|
|
6
|
-
export { useDraggableBottomSheet } from './hooks/useDraggableBottomSheet.mjs';
|
|
7
|
-
export { useDraggableWindow } from './hooks/useDraggableWindow.mjs';
|
|
8
|
-
export { default as useInView } from './hooks/useInView.mjs';
|
|
9
|
-
export { ModalContainer, ModalPortalTarget, ModalTemplate, ModalTemplateProps, checkModal, closeModal, getModalDefaultOption, modal, modal as openModal, resetModal } from './modal/index.mjs';
|
|
10
|
-
export { ExternalToast as ToastOptions, toast } from 'sonner';
|
|
11
|
-
export { ToastPosition, Toaster, ToasterProps, useToast } from './toast.mjs';
|
|
12
|
-
export { ChildrenFuncParamsType, Table, TableData, TableHighlightProvider, TableProps, TableRow, TableRowProps, TableThRowDataType, TdColumn, TdColumnProps, tableRowVariants, useTableHighlight } from './table.mjs';
|
|
13
|
-
export { Popover, PopoverArrow, PopoverClose, PopoverContent, PopoverTrigger, popoverContentClasses } from './popover.mjs';
|
|
14
|
-
export { Tooltip, TooltipProvider, tooltipContentVariants } from './tooltip.mjs';
|
|
15
|
-
export { Select, SelectItem, selectContentVariants, selectTriggerVariants } from './select.mjs';
|
|
16
|
-
export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemType, DropdownMenuProps, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuTrigger } from './dropdown-menu.mjs';
|
|
17
|
-
export { ToggleGroup, ToggleGroupItem, ToggleGroupProps, toggleGroupVariants } from './toggle-group.mjs';
|
|
18
|
-
export { Slider, SliderProps, sliderVariants } from './slider.mjs';
|
|
19
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger } from './accordion.mjs';
|
|
20
|
-
export { InfiniteScroll, InfiniteScrollProps } from './infinite-scroll.mjs';
|
|
21
|
-
export { Ellipsis, EllipsisProps } from './ellipsis.mjs';
|
|
22
|
-
export { EmptyState, EmptyStateProps, emptyStateVariants } from './empty-state.mjs';
|
|
23
|
-
export { Drawer, DrawerClose, DrawerContent, DrawerContentProps, DrawerDescription, DrawerDirection, DrawerRoot, DrawerRootProps, DrawerTitle, DrawerTrigger, drawerContentVariants, drawerOverlayVariants } from './drawer.mjs';
|
|
24
|
-
export { Button, ButtonProps, buttonVariants } from './button.mjs';
|
|
25
|
-
export { Breadcrumb, BreadcrumbItem, BreadcrumbProps } from './breadcrumb.mjs';
|
|
26
|
-
export { Chip, ChipProps, chipVariants } from './chip.mjs';
|
|
27
|
-
export { Badge, BadgeProps, badgeVariants } from './badge.mjs';
|
|
28
|
-
export { Progress, ProgressProps, progressVariants } from './progress.mjs';
|
|
29
|
-
export { Alert, AlertProps, alertVariants } from './alert.mjs';
|
|
30
|
-
export { Switch, SwitchProps, switchVariants } from './switch.mjs';
|
|
31
|
-
export { StepItem, Stepper, StepperProps, stepperVariants } from './stepper.mjs';
|
|
32
|
-
export { TextInput, TextInputProps, textInputVariants } from './text-input.mjs';
|
|
33
|
-
export { TextArea, TextAreaProps, textAreaVariants } from './text-area.mjs';
|
|
34
|
-
export { CheckBox, CheckBoxProps, checkBoxVariants } from './checkbox.mjs';
|
|
35
|
-
export { RadioGroup, RadioGroupProps, RadioItem, RadioItemProps, radioGroupVariants, radioItemVariants } from './radio-group.mjs';
|
|
36
|
-
export { Spinner, SpinnerProps } from './spinner.mjs';
|
|
37
|
-
export { Skeleton, SkeletonProps } from './skeleton.mjs';
|
|
38
|
-
export { Divider, DividerProps, dividerVariants } from './divider.mjs';
|
|
39
|
-
export { ClientOnly, ClientOnlyProps } from './client-only.mjs';
|
|
40
|
-
export { ErrorBoundary, ErrorBoundaryProps } from './error-boundary.mjs';
|
|
41
|
-
export { ThemeProvider, ThemeProviderProps, useTheme } from './theme-provider.mjs';
|
|
42
|
-
export { Pagination, PaginationProps, pageButtonVariants, paginationVariants } from './pagination.mjs';
|
|
43
|
-
export { NumberInput, NumberInputProps, NumberInputRef, numberInputBind, numberInputVariants } from './number-input.mjs';
|
|
44
|
-
export { PriceInput, PriceInputProps, priceInputVariants } from './price-input.mjs';
|
|
45
|
-
export { Avatar, AvatarProps, avatarVariants } from './avatar.mjs';
|
|
46
|
-
export { Counter, CounterProps } from './counter.mjs';
|
|
47
|
-
export { Countdown, CountdownProps, TimeLeft, useCountdown } from './countdown.mjs';
|
|
48
|
-
export { Marquee, MarqueeProps } from './marquee.mjs';
|
|
49
|
-
export { Tab, TabItem, TabProps, tabListVariants, tabTriggerVariants } from './tab.mjs';
|
|
50
|
-
export { Carousel, CarouselApi, CarouselDots, CarouselNext, CarouselPrev, CarouselProps, CarouselSlide, CarouselSlideProps, useCarousel } from './carousel.mjs';
|
|
51
|
-
export { DataList, DataListProps } from './data-list.mjs';
|
|
52
|
-
export { TagInput, TagInputProps, tagInputVariants } from './tag-input.mjs';
|
|
53
|
-
export { NxImage, NxImageProps } from './nx-image.mjs';
|
|
54
|
-
export { DatePicker, DatePickerProps } from './date-picker.mjs';
|
|
55
|
-
export { VirtualGrid, VirtualGridProps, VirtualList, VirtualListProps } from './virtual-scroll.mjs';
|
|
56
|
-
import 'clsx';
|
|
57
|
-
import 'react';
|
|
58
|
-
import 'react/jsx-runtime';
|
|
59
|
-
import 'class-variance-authority/types';
|
|
60
|
-
import 'class-variance-authority';
|
|
61
|
-
import '@radix-ui/react-popover';
|
|
62
|
-
import '@radix-ui/react-tooltip';
|
|
63
|
-
import '@radix-ui/react-dropdown-menu';
|
|
64
|
-
import '@radix-ui/react-slider';
|
|
65
|
-
import '@radix-ui/react-accordion';
|
|
66
|
-
import 'vaul';
|
|
67
|
-
import 'embla-carousel-react';
|
|
68
|
-
import '@tanstack/react-virtual';
|
|
69
|
-
|
|
70
|
-
interface ComponentTokenDef {
|
|
71
|
-
/** CSS custom property name, e.g. '--color-comp-btn-primary-bg' */
|
|
72
|
-
cssVar: string;
|
|
73
|
-
type: 'color' | 'opacity' | 'radius' | 'spacing' | 'shadow' | 'font-size';
|
|
74
|
-
/** Default value referencing a semantic token, e.g. 'var(--color-accent-primary)' */
|
|
75
|
-
defaultValue: string;
|
|
76
|
-
description?: string;
|
|
77
|
-
}
|
|
78
|
-
interface ComponentTokenSchema {
|
|
79
|
-
id: string;
|
|
80
|
-
name: string;
|
|
81
|
-
description?: string;
|
|
82
|
-
tokens: {
|
|
83
|
-
common: Record<string, ComponentTokenDef>;
|
|
84
|
-
variants?: Record<string, Record<string, ComponentTokenDef>>;
|
|
85
|
-
sizes?: Record<string, Record<string, ComponentTokenDef>>;
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
declare const buttonTokenSchema: ComponentTokenSchema;
|
|
90
|
-
|
|
91
|
-
export { type ComponentTokenDef, type ComponentTokenSchema, buttonTokenSchema };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode, MutableRefObject, ReactElement } from 'react';
|
|
3
|
-
|
|
4
|
-
type BaseProps = {
|
|
5
|
-
className?: string;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
tag?: string;
|
|
8
|
-
list: unknown[] | null;
|
|
9
|
-
scrollTarget?: HTMLElement | Document | MutableRefObject<HTMLElement | Document> | null;
|
|
10
|
-
rootMargin?: number;
|
|
11
|
-
loading?: boolean;
|
|
12
|
-
loadingElement?: ReactElement;
|
|
13
|
-
handleLoadMore: () => void;
|
|
14
|
-
};
|
|
15
|
-
type TotalCountProps = BaseProps & {
|
|
16
|
-
totalCount: number;
|
|
17
|
-
hasMore?: never;
|
|
18
|
-
};
|
|
19
|
-
type HasMoreProps = BaseProps & {
|
|
20
|
-
hasMore: boolean;
|
|
21
|
-
totalCount?: never;
|
|
22
|
-
};
|
|
23
|
-
type InfiniteScrollProps = TotalCountProps | HasMoreProps;
|
|
24
|
-
declare const InfiniteScroll: ({ className, tag, list, scrollTarget, rootMargin, loading, loadingElement, children, handleLoadMore, ...props }: InfiniteScrollProps) => react_jsx_runtime.JSX.Element;
|
|
25
|
-
|
|
26
|
-
export { InfiniteScroll, type InfiniteScrollProps };
|
package/dist/marquee.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface MarqueeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
direction?: 'left' | 'right' | 'up' | 'down';
|
|
5
|
-
speed?: number;
|
|
6
|
-
pauseOnHover?: boolean;
|
|
7
|
-
gap?: number;
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
declare const Marquee: React.ForwardRefExoticComponent<MarqueeProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
|
|
12
|
-
export { Marquee, type MarqueeProps };
|
package/dist/modal/index.d.mts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { d as DefaultModalOption, b as ModalTemplatePropsType, M as ModalLayout, c as ModalType, D as DefaultModalPropsType, e as ModalPropsOf, O as OpenModal } from '../useModal-BsGIcP8t.mjs';
|
|
3
|
-
export { A as AnimationOptions, a as ModalPropsType, u as useModal } from '../useModal-BsGIcP8t.mjs';
|
|
4
|
-
import { BreakPoints } from '../hooks/useCheckDevice.mjs';
|
|
5
|
-
import React__default, { ReactElement, ComponentType } from 'react';
|
|
6
|
-
|
|
7
|
-
type Props = DefaultModalOption & {
|
|
8
|
-
className?: string;
|
|
9
|
-
breakPoints?: BreakPoints;
|
|
10
|
-
};
|
|
11
|
-
declare const ModalContainer: ({ className, breakPoints, ...defaultOption }: Props) => react_jsx_runtime.JSX.Element;
|
|
12
|
-
|
|
13
|
-
interface PropsType$1 {
|
|
14
|
-
id: string;
|
|
15
|
-
className?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const ModalPortalTarget: ({ id, className }: PropsType$1) => react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
|
-
interface PropsType extends ModalTemplatePropsType {
|
|
20
|
-
layout?: ModalLayout;
|
|
21
|
-
hideHeader?: boolean;
|
|
22
|
-
hideFooter?: boolean;
|
|
23
|
-
footer?: ReactElement | string;
|
|
24
|
-
innerClassName?: string;
|
|
25
|
-
bodyClassName?: string;
|
|
26
|
-
footerClassName?: string;
|
|
27
|
-
dimClassName?: string;
|
|
28
|
-
headerClassName?: string;
|
|
29
|
-
enableDrag?: boolean;
|
|
30
|
-
dragPersistKey?: string;
|
|
31
|
-
}
|
|
32
|
-
declare const ModalTemplate: React__default.ForwardRefExoticComponent<PropsType & React__default.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
|
|
34
|
-
declare class Modal {
|
|
35
|
-
private _modalList;
|
|
36
|
-
private defaultOption;
|
|
37
|
-
observeFunction: ((modalList: ModalType[]) => void) | null;
|
|
38
|
-
private enableKeyDownEvent;
|
|
39
|
-
set modalList(value: ModalType[]);
|
|
40
|
-
get modalList(): ModalType[];
|
|
41
|
-
handleKeyPressEvent: (e: KeyboardEvent) => void;
|
|
42
|
-
checkModal(params: {
|
|
43
|
-
componentName: string;
|
|
44
|
-
onlyLastCheck?: boolean;
|
|
45
|
-
} | {
|
|
46
|
-
modalId: string;
|
|
47
|
-
onlyLastCheck?: boolean;
|
|
48
|
-
}): boolean;
|
|
49
|
-
deleteModal(id: string): void;
|
|
50
|
-
closeModal(id: string, isAnimation?: boolean): void;
|
|
51
|
-
resolveModal<T extends ModalType>({ modal, result, useClose, }: {
|
|
52
|
-
modal: T;
|
|
53
|
-
result: unknown;
|
|
54
|
-
useClose?: boolean;
|
|
55
|
-
}): void;
|
|
56
|
-
resetModal(): void;
|
|
57
|
-
makeProps<P extends DefaultModalPropsType>(props: P): P & {
|
|
58
|
-
animation: {
|
|
59
|
-
name?: string;
|
|
60
|
-
mobile?: string;
|
|
61
|
-
delay?: number;
|
|
62
|
-
duration?: number;
|
|
63
|
-
timingFunc?: string;
|
|
64
|
-
leaveTimingFunc?: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
private handleToggle;
|
|
68
|
-
private handleToggleOnlyOne;
|
|
69
|
-
openModal<T extends ComponentType<Record<string, unknown>>>({ component, props, }: {
|
|
70
|
-
component: T;
|
|
71
|
-
props?: ModalPropsOf<T> & DefaultModalPropsType;
|
|
72
|
-
}): Promise<unknown>;
|
|
73
|
-
getDefaultOption(): DefaultModalOption;
|
|
74
|
-
observe({ options, observeFunction, }: {
|
|
75
|
-
options?: DefaultModalOption;
|
|
76
|
-
observeFunction: (modalList: ModalType[]) => void;
|
|
77
|
-
}): void;
|
|
78
|
-
unobserve(): void;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
declare const openModal: OpenModal;
|
|
82
|
-
declare const closeModal: Modal['closeModal'];
|
|
83
|
-
declare const checkModal: Modal['checkModal'];
|
|
84
|
-
declare const resetModal: () => void;
|
|
85
|
-
declare const getModalDefaultOption: Modal['getDefaultOption'];
|
|
86
|
-
|
|
87
|
-
export { DefaultModalPropsType, ModalContainer, ModalLayout, ModalPortalTarget, ModalTemplate, type PropsType as ModalTemplateProps, ModalTemplatePropsType, ModalType, OpenModal, checkModal, closeModal, getModalDefaultOption, openModal as modal, openModal, resetModal };
|
package/dist/number-input.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
5
|
-
declare const numberInputVariants: (props?: ({
|
|
6
|
-
variant?: "basic" | "bind" | null | undefined;
|
|
7
|
-
size?: "xl" | "lg" | null | undefined;
|
|
8
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
-
interface NumberInputRef {
|
|
10
|
-
input: HTMLInputElement | null;
|
|
11
|
-
increment: () => void;
|
|
12
|
-
decrement: () => void;
|
|
13
|
-
startIncrement: (e: React.PointerEvent) => void;
|
|
14
|
-
startDecrement: (e: React.PointerEvent) => void;
|
|
15
|
-
stop: () => void;
|
|
16
|
-
}
|
|
17
|
-
interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange' | 'value'>, VariantProps<typeof numberInputVariants> {
|
|
18
|
-
value?: number | string;
|
|
19
|
-
error?: boolean;
|
|
20
|
-
min?: number;
|
|
21
|
-
max?: number;
|
|
22
|
-
step?: number;
|
|
23
|
-
digit?: number;
|
|
24
|
-
label?: string;
|
|
25
|
-
description?: string;
|
|
26
|
-
showMax?: boolean;
|
|
27
|
-
hideButtons?: boolean;
|
|
28
|
-
onValueChange?: (value: number | undefined) => void;
|
|
29
|
-
}
|
|
30
|
-
declare function numberInputBind(ref: React.RefObject<NumberInputRef | null>, direction: 'increment' | 'decrement'): {
|
|
31
|
-
onPointerDown: (e: React.PointerEvent) => void;
|
|
32
|
-
onPointerUp: () => void | undefined;
|
|
33
|
-
onPointerLeave: () => void | undefined;
|
|
34
|
-
};
|
|
35
|
-
declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<NumberInputRef>>;
|
|
36
|
-
|
|
37
|
-
export { NumberInput, type NumberInputProps, type NumberInputRef, numberInputBind, numberInputVariants };
|
package/dist/nx-image.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface NxImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
4
|
-
fallback?: React.ReactNode;
|
|
5
|
-
fallbackSrc?: string;
|
|
6
|
-
aspectRatio?: string;
|
|
7
|
-
objectFit?: 'cover' | 'contain' | 'fill' | 'none';
|
|
8
|
-
lazy?: boolean;
|
|
9
|
-
wrapperClassName?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const NxImage: React.ForwardRefExoticComponent<NxImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
12
|
-
|
|
13
|
-
export { NxImage, type NxImageProps };
|
package/dist/pagination.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
5
|
-
declare const paginationVariants: (props?: ({
|
|
6
|
-
size?: "md" | "sm" | null | undefined;
|
|
7
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
|
-
declare const pageButtonVariants: (props?: ({
|
|
9
|
-
size?: "md" | "sm" | null | undefined;
|
|
10
|
-
active?: boolean | null | undefined;
|
|
11
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
|
-
interface PaginationProps extends VariantProps<typeof paginationVariants> {
|
|
13
|
-
currentPage: number;
|
|
14
|
-
totalPages: number;
|
|
15
|
-
siblingCount?: number;
|
|
16
|
-
showEdges?: boolean;
|
|
17
|
-
onPageChange: (page: number) => void;
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
20
|
-
declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
21
|
-
|
|
22
|
-
export { Pagination, type PaginationProps, pageButtonVariants, paginationVariants };
|