@nexus-cross/design-system 1.0.6-beta.2 → 1.0.6
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/DESIGN.md +185 -0
- package/cursor-rules/nexus-ui-api.mdc +223 -7
- package/cursor-rules/nexus-ui-components.mdc +44 -17
- package/dist/alert.d.mts +17 -0
- package/dist/alert.d.ts +17 -0
- package/dist/alert.js +16 -0
- package/dist/alert.mjs +3 -0
- package/dist/badge.d.mts +18 -0
- package/dist/badge.d.ts +18 -0
- package/dist/badge.js +16 -0
- package/dist/badge.mjs +3 -0
- package/dist/breadcrumb.d.mts +15 -0
- package/dist/breadcrumb.d.ts +15 -0
- package/dist/breadcrumb.js +12 -0
- package/dist/breadcrumb.mjs +3 -0
- package/dist/chunks/chunk-2N2EPBO4.js +120 -0
- package/dist/chunks/{chunk-AFSEYJZT.js → chunk-2T7RUYEK.js} +175 -50
- package/dist/chunks/chunk-2UPGFY6E.mjs +76 -0
- package/dist/chunks/chunk-3ZWN66YH.js +53 -0
- package/dist/chunks/chunk-5PQ3UCKF.js +99 -0
- package/dist/chunks/chunk-6BWOKTVQ.mjs +87 -0
- package/dist/chunks/chunk-6DBRL6NA.mjs +81 -0
- package/dist/chunks/chunk-B5O6W3Z4.mjs +73 -0
- package/dist/chunks/chunk-BJM3NDT2.mjs +368 -0
- package/dist/chunks/chunk-C2DSAJTL.js +109 -0
- package/dist/chunks/chunk-CUTMLBC3.mjs +86 -0
- package/dist/chunks/chunk-CV4GMFWP.js +174 -0
- package/dist/chunks/chunk-DICN6GKE.js +99 -0
- package/dist/chunks/chunk-DYPPVXQF.js +143 -0
- package/dist/chunks/chunk-EJY7IVSK.mjs +31 -0
- package/dist/chunks/chunk-FUIBYZZ4.mjs +98 -0
- package/dist/chunks/{chunk-HNLI646G.mjs → chunk-GN6X27QI.mjs} +9 -2
- package/dist/chunks/chunk-H2G5FMRN.mjs +75 -0
- package/dist/chunks/chunk-H2V7RHYV.mjs +120 -0
- package/dist/chunks/chunk-MMCA33FW.mjs +85 -0
- package/dist/chunks/chunk-NZHK76R3.js +109 -0
- package/dist/chunks/chunk-P73MEU7N.mjs +150 -0
- package/dist/chunks/chunk-PDJTSQOC.js +59 -0
- package/dist/chunks/chunk-PXBZEAZQ.mjs +5 -0
- package/dist/chunks/chunk-QRNHFOLG.js +7 -0
- package/dist/chunks/chunk-S2GMEC43.js +109 -0
- package/dist/chunks/{chunk-VGO4Z2WH.js → chunk-SUIT4XKB.js} +8 -1
- package/dist/chunks/chunk-X3CTJ7TD.js +108 -0
- package/dist/chunks/chunk-XGIJZ3NZ.js +160 -0
- package/dist/chunks/chunk-YO5MSDPX.mjs +36 -0
- package/dist/chunks/chunk-ZI4LN2B2.js +96 -0
- package/dist/chunks/chunk-ZU4AWAFT.mjs +137 -0
- package/dist/date-picker.d.mts +17 -0
- package/dist/date-picker.d.ts +17 -0
- package/dist/date-picker.js +12 -0
- package/dist/date-picker.mjs +3 -0
- package/dist/dropdown-menu.d.mts +30 -0
- package/dist/dropdown-menu.d.ts +30 -0
- package/dist/dropdown-menu.js +32 -0
- package/dist/dropdown-menu.mjs +3 -0
- package/dist/empty-state.d.mts +16 -0
- package/dist/empty-state.d.ts +16 -0
- package/dist/empty-state.js +16 -0
- package/dist/empty-state.mjs +3 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +269 -157
- package/dist/index.mjs +30 -18
- package/dist/modal/index.js +12 -12
- package/dist/modal/index.mjs +3 -3
- package/dist/number-input.d.mts +5 -6
- package/dist/number-input.d.ts +5 -6
- package/dist/number-input.js +4 -4
- package/dist/number-input.mjs +1 -1
- package/dist/nx-image.d.mts +13 -0
- package/dist/nx-image.d.ts +13 -0
- package/dist/nx-image.js +12 -0
- package/dist/nx-image.mjs +3 -0
- package/dist/progress.d.mts +18 -0
- package/dist/progress.d.ts +18 -0
- package/dist/progress.js +16 -0
- package/dist/progress.mjs +3 -0
- package/dist/schemas/_all.json +840 -13
- package/dist/schemas/alert.json +49 -0
- package/dist/schemas/badge.json +76 -0
- package/dist/schemas/breadcrumb.json +47 -0
- package/dist/schemas/datePicker.json +56 -0
- package/dist/schemas/dropdownMenu.json +83 -0
- package/dist/schemas/emptyState.json +44 -0
- package/dist/schemas/numberInput.json +27 -8
- package/dist/schemas/nxImage.json +56 -0
- package/dist/schemas/progress.json +63 -0
- package/dist/schemas/slider.json +78 -0
- package/dist/schemas/stepper.json +73 -0
- package/dist/schemas/tagInput.json +70 -0
- package/dist/schemas/textArea.json +26 -1
- package/dist/schemas/toggleGroup.json +88 -0
- package/dist/schemas.d.mts +628 -144
- package/dist/schemas.d.ts +628 -144
- package/dist/schemas.js +177 -7
- package/dist/schemas.mjs +166 -8
- package/dist/slider.d.mts +20 -0
- package/dist/slider.d.ts +20 -0
- package/dist/slider.js +16 -0
- package/dist/slider.mjs +3 -0
- package/dist/stepper.d.mts +20 -0
- package/dist/stepper.d.ts +20 -0
- package/dist/stepper.js +16 -0
- package/dist/stepper.mjs +3 -0
- package/dist/styles/layer.js +2 -2
- package/dist/styles/layer.mjs +1 -1
- package/dist/styles.css +1615 -185
- package/dist/styles.js +2 -2
- package/dist/styles.layered.css +1615 -185
- package/dist/styles.mjs +1 -1
- package/dist/table.d.mts +40 -25
- package/dist/table.d.ts +40 -25
- package/dist/table.js +7 -7
- package/dist/table.mjs +1 -1
- package/dist/tag-input.d.mts +21 -0
- package/dist/tag-input.d.ts +21 -0
- package/dist/tag-input.js +16 -0
- package/dist/tag-input.mjs +3 -0
- package/dist/text-area.d.mts +5 -1
- package/dist/text-area.d.ts +5 -1
- package/dist/text-area.js +3 -3
- package/dist/text-area.mjs +1 -1
- package/dist/toggle-group.d.mts +36 -0
- package/dist/toggle-group.d.ts +36 -0
- package/dist/toggle-group.js +16 -0
- package/dist/toggle-group.mjs +3 -0
- package/package.json +69 -3
- package/scripts/setup-cursor-rules.cjs +15 -1
- package/dist/chunks/chunk-26BUGBOY.mjs +0 -57
- package/dist/chunks/chunk-CLGH2RTS.js +0 -7
- package/dist/chunks/chunk-ECVAVQUY.mjs +0 -243
- package/dist/chunks/chunk-UPCWJWXR.mjs +0 -5
- package/dist/chunks/chunk-WR55D4ZS.js +0 -80
- package/dist/chunks/{chunk-3VFBPFZF.mjs → chunk-CWMLTXOH.mjs} +2 -2
- package/dist/chunks/{chunk-U53UA76K.js → chunk-HFBTS42N.js} +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,45 +1,57 @@
|
|
|
1
1
|
import './styles.css';
|
|
2
|
+
export { Table, TableHighlightProvider, TableRow, TdColumn, tableRowVariants, useTableHighlight } from './chunks/chunk-GN6X27QI.mjs';
|
|
2
3
|
export { useInView } from './chunks/chunk-2JTPRBHZ.mjs';
|
|
4
|
+
export { Slider, sliderVariants } from './chunks/chunk-H2G5FMRN.mjs';
|
|
5
|
+
export { TagInput, tagInputVariants } from './chunks/chunk-H2V7RHYV.mjs';
|
|
6
|
+
export { NxImage } from './chunks/chunk-6BWOKTVQ.mjs';
|
|
7
|
+
export { DatePicker } from './chunks/chunk-FUIBYZZ4.mjs';
|
|
3
8
|
export { ClientOnly } from './chunks/chunk-AOXXE5UQ.mjs';
|
|
4
9
|
export { ThemeProvider, useTheme } from './chunks/chunk-I252NERB.mjs';
|
|
5
10
|
export { Toaster, toast, useToast } from './chunks/chunk-ZWSIIGA3.mjs';
|
|
6
|
-
export { Table, TableHighlightProvider, TableRow, TdColumn, tableRowVariants, useTableHighlight } from './chunks/chunk-HNLI646G.mjs';
|
|
7
|
-
export { InfiniteScroll } from './chunks/chunk-LMMON5AU.mjs';
|
|
8
|
-
export { Marquee } from './chunks/chunk-SJMCPSVH.mjs';
|
|
9
|
-
export { Ellipsis } from './chunks/chunk-6FMDO6TT.mjs';
|
|
10
|
-
export { Skeleton } from './chunks/chunk-P2T72N62.mjs';
|
|
11
11
|
export { Countdown, useCountdown } from './chunks/chunk-LI7SFBUQ.mjs';
|
|
12
12
|
export { Counter } from './chunks/chunk-CA3SOLI3.mjs';
|
|
13
13
|
export { DataList } from './chunks/chunk-K2TBLM3F.mjs';
|
|
14
14
|
export { ErrorBoundary } from './chunks/chunk-VIGRCJAE.mjs';
|
|
15
|
+
export { EmptyState, emptyStateVariants } from './chunks/chunk-YO5MSDPX.mjs';
|
|
16
|
+
export { Breadcrumb } from './chunks/chunk-EJY7IVSK.mjs';
|
|
17
|
+
export { Stepper, stepperVariants } from './chunks/chunk-MMCA33FW.mjs';
|
|
18
|
+
export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuTrigger } from './chunks/chunk-6DBRL6NA.mjs';
|
|
19
|
+
export { ToggleGroup, toggleGroupVariants } from './chunks/chunk-P73MEU7N.mjs';
|
|
20
|
+
export { Popover, PopoverArrow, PopoverClose, PopoverContent, PopoverTrigger, popoverContentClasses } from './chunks/chunk-ULGYTBCT.mjs';
|
|
21
|
+
export { Carousel, CarouselDots, CarouselNext, CarouselPrev, CarouselSlide, useCarousel } from './chunks/chunk-3HHJORN7.mjs';
|
|
22
|
+
export { VirtualGrid, VirtualList } from './chunks/chunk-EHAUUUWB.mjs';
|
|
23
|
+
export { InfiniteScroll } from './chunks/chunk-LMMON5AU.mjs';
|
|
24
|
+
export { Marquee } from './chunks/chunk-SJMCPSVH.mjs';
|
|
25
|
+
export { Ellipsis } from './chunks/chunk-6FMDO6TT.mjs';
|
|
15
26
|
export { Spinner } from './chunks/chunk-BPUQ2CO2.mjs';
|
|
27
|
+
export { Skeleton } from './chunks/chunk-P2T72N62.mjs';
|
|
28
|
+
export { Select, SelectItem, selectContentVariants, selectTriggerVariants } from './chunks/chunk-DO6VK2QQ.mjs';
|
|
29
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerRoot, DrawerTitle, DrawerTrigger, drawerContentVariants, drawerOverlayVariants } from './chunks/chunk-SGNRVYYQ.mjs';
|
|
30
|
+
export { Tooltip, TooltipProvider, tooltipContentVariants } from './chunks/chunk-W4GG5A7K.mjs';
|
|
16
31
|
export { Divider, dividerVariants } from './chunks/chunk-GX6GSWX3.mjs';
|
|
17
32
|
export { RadioGroup, RadioItem, radioGroupVariants, radioItemVariants } from './chunks/chunk-33UFQJIO.mjs';
|
|
18
33
|
export { Pagination, pageButtonVariants, paginationVariants } from './chunks/chunk-2RPRCWKV.mjs';
|
|
19
34
|
export { Tab, tabListVariants, tabTriggerVariants } from './chunks/chunk-QZ4QR3XV.mjs';
|
|
20
35
|
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger } from './chunks/chunk-XG6QG65W.mjs';
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
36
|
+
export { Alert, alertVariants } from './chunks/chunk-2UPGFY6E.mjs';
|
|
37
|
+
export { CheckBox, checkBoxVariants } from './chunks/chunk-MRRKW5QN.mjs';
|
|
38
|
+
export { Switch, switchVariants } from './chunks/chunk-ADO7PDLY.mjs';
|
|
24
39
|
export { TextInput, textInputVariants } from './chunks/chunk-UKRU46PH.mjs';
|
|
25
|
-
export { TextArea, textAreaVariants } from './chunks/chunk-
|
|
26
|
-
export { NumberInput, numberInputBind, numberInputVariants } from './chunks/chunk-
|
|
40
|
+
export { TextArea, textAreaVariants } from './chunks/chunk-ZU4AWAFT.mjs';
|
|
41
|
+
export { NumberInput, numberInputBind, numberInputVariants } from './chunks/chunk-BJM3NDT2.mjs';
|
|
27
42
|
export { PriceInput, priceInputVariants } from './chunks/chunk-WGGBE4ZD.mjs';
|
|
28
43
|
export { Avatar, avatarVariants } from './chunks/chunk-YLO4UKSC.mjs';
|
|
29
|
-
export {
|
|
30
|
-
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerRoot, DrawerTitle, DrawerTrigger, drawerContentVariants, drawerOverlayVariants } from './chunks/chunk-SGNRVYYQ.mjs';
|
|
31
|
-
export { Tooltip, TooltipProvider, tooltipContentVariants } from './chunks/chunk-W4GG5A7K.mjs';
|
|
32
|
-
export { ModalContainer_default as ModalContainer, ModalPortalTarget_default as ModalPortalTarget, ModalTemplate_default as ModalTemplate, checkModal, closeModal, getModalDefaultOption, openModal as modal, openModal, resetModal } from './chunks/chunk-3VFBPFZF.mjs';
|
|
33
|
-
export { useDraggableBottomSheet } from './chunks/chunk-U56AGSLE.mjs';
|
|
34
|
-
export { useDraggableWindow } from './chunks/chunk-4J3GCZ7W.mjs';
|
|
44
|
+
export { ModalContainer_default as ModalContainer, ModalPortalTarget_default as ModalPortalTarget, ModalTemplate_default as ModalTemplate, checkModal, closeModal, getModalDefaultOption, openModal as modal, openModal, resetModal } from './chunks/chunk-CWMLTXOH.mjs';
|
|
35
45
|
export { scrollFreeze, scrollRelease } from './chunks/chunk-54IA2P2Z.mjs';
|
|
36
46
|
export { useCheckDevice_default as useCheckDevice } from './chunks/chunk-YEWKPWK3.mjs';
|
|
37
47
|
export { useClickOutside_default as useClickOutside } from './chunks/chunk-OTGS6BDQ.mjs';
|
|
38
48
|
export { useModal } from './chunks/chunk-6H7V2I3X.mjs';
|
|
49
|
+
export { useDraggableBottomSheet } from './chunks/chunk-U56AGSLE.mjs';
|
|
50
|
+
export { useDraggableWindow } from './chunks/chunk-4J3GCZ7W.mjs';
|
|
39
51
|
export { Button, buttonVariants } from './chunks/chunk-VVXQZ4XH.mjs';
|
|
40
52
|
export { Chip, chipVariants } from './chunks/chunk-RX5UKRYK.mjs';
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
53
|
+
export { Badge, badgeVariants } from './chunks/chunk-CUTMLBC3.mjs';
|
|
54
|
+
export { Progress, progressVariants } from './chunks/chunk-B5O6W3Z4.mjs';
|
|
43
55
|
export { cn } from './chunks/chunk-MCKOWMLS.mjs';
|
|
44
56
|
import './chunks/chunk-CVYXRSXT.mjs';
|
|
45
57
|
|
package/dist/modal/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunks/chunk-HHXDOKXY.js');
|
|
5
|
-
require('../chunks/chunk-NHDGKOAM.js');
|
|
3
|
+
var chunkHFBTS42N_js = require('../chunks/chunk-HFBTS42N.js');
|
|
6
4
|
require('../chunks/chunk-T2IY2TSR.js');
|
|
7
5
|
require('../chunks/chunk-XEHFB62A.js');
|
|
8
6
|
require('../chunks/chunk-INP2AH3B.js');
|
|
9
7
|
var chunkHUPAHDJ7_js = require('../chunks/chunk-HUPAHDJ7.js');
|
|
8
|
+
require('../chunks/chunk-HHXDOKXY.js');
|
|
9
|
+
require('../chunks/chunk-NHDGKOAM.js');
|
|
10
10
|
require('../chunks/chunk-CZC76ZD5.js');
|
|
11
11
|
require('../chunks/chunk-JNMCYWGY.js');
|
|
12
12
|
|
|
@@ -14,39 +14,39 @@ require('../chunks/chunk-JNMCYWGY.js');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "ModalContainer", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkHFBTS42N_js.ModalContainer_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ModalPortalTarget", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkHFBTS42N_js.ModalPortalTarget_default; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ModalTemplate", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkHFBTS42N_js.ModalTemplate_default; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "checkModal", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkHFBTS42N_js.checkModal; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "closeModal", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkHFBTS42N_js.closeModal; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getModalDefaultOption", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkHFBTS42N_js.getModalDefaultOption; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "modal", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkHFBTS42N_js.openModal; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "openModal", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkHFBTS42N_js.openModal; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "resetModal", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkHFBTS42N_js.resetModal; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "useModal", {
|
|
52
52
|
enumerable: true,
|
package/dist/modal/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { ModalContainer_default as ModalContainer, ModalPortalTarget_default as ModalPortalTarget, ModalTemplate_default as ModalTemplate, checkModal, closeModal, getModalDefaultOption, openModal as modal, openModal, resetModal } from '../chunks/chunk-
|
|
2
|
-
import '../chunks/chunk-U56AGSLE.mjs';
|
|
3
|
-
import '../chunks/chunk-4J3GCZ7W.mjs';
|
|
1
|
+
export { ModalContainer_default as ModalContainer, ModalPortalTarget_default as ModalPortalTarget, ModalTemplate_default as ModalTemplate, checkModal, closeModal, getModalDefaultOption, openModal as modal, openModal, resetModal } from '../chunks/chunk-CWMLTXOH.mjs';
|
|
4
2
|
import '../chunks/chunk-54IA2P2Z.mjs';
|
|
5
3
|
import '../chunks/chunk-YEWKPWK3.mjs';
|
|
6
4
|
import '../chunks/chunk-OTGS6BDQ.mjs';
|
|
7
5
|
export { useModal } from '../chunks/chunk-6H7V2I3X.mjs';
|
|
6
|
+
import '../chunks/chunk-U56AGSLE.mjs';
|
|
7
|
+
import '../chunks/chunk-4J3GCZ7W.mjs';
|
|
8
8
|
import '../chunks/chunk-MCKOWMLS.mjs';
|
|
9
9
|
import '../chunks/chunk-CVYXRSXT.mjs';
|
package/dist/number-input.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const numberInputVariants: (props?: ({
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
variant?: "basic" | "bind" | null | undefined;
|
|
7
|
+
size?: "xl" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface NumberInputRef {
|
|
10
10
|
input: HTMLInputElement | null;
|
|
@@ -21,13 +21,12 @@ interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
|
|
|
21
21
|
max?: number;
|
|
22
22
|
step?: number;
|
|
23
23
|
digit?: number;
|
|
24
|
+
label?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
showMax?: boolean;
|
|
24
27
|
hideButtons?: boolean;
|
|
25
28
|
onValueChange?: (value: number | undefined) => void;
|
|
26
29
|
}
|
|
27
|
-
/**
|
|
28
|
-
* 외부 버튼에 NumberInput의 증감 이벤트를 바인딩하는 유틸 함수.
|
|
29
|
-
* 이벤트 핸들러 내부에서 ref.current를 참조하므로 mount 이후 정상 동작.
|
|
30
|
-
*/
|
|
31
30
|
declare function numberInputBind(ref: React.RefObject<NumberInputRef | null>, direction: 'increment' | 'decrement'): {
|
|
32
31
|
onPointerDown: (e: React.PointerEvent) => void;
|
|
33
32
|
onPointerUp: () => void | undefined;
|
package/dist/number-input.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const numberInputVariants: (props?: ({
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
variant?: "basic" | "bind" | null | undefined;
|
|
7
|
+
size?: "xl" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface NumberInputRef {
|
|
10
10
|
input: HTMLInputElement | null;
|
|
@@ -21,13 +21,12 @@ interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
|
|
|
21
21
|
max?: number;
|
|
22
22
|
step?: number;
|
|
23
23
|
digit?: number;
|
|
24
|
+
label?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
showMax?: boolean;
|
|
24
27
|
hideButtons?: boolean;
|
|
25
28
|
onValueChange?: (value: number | undefined) => void;
|
|
26
29
|
}
|
|
27
|
-
/**
|
|
28
|
-
* 외부 버튼에 NumberInput의 증감 이벤트를 바인딩하는 유틸 함수.
|
|
29
|
-
* 이벤트 핸들러 내부에서 ref.current를 참조하므로 mount 이후 정상 동작.
|
|
30
|
-
*/
|
|
31
30
|
declare function numberInputBind(ref: React.RefObject<NumberInputRef | null>, direction: 'increment' | 'decrement'): {
|
|
32
31
|
onPointerDown: (e: React.PointerEvent) => void;
|
|
33
32
|
onPointerUp: () => void | undefined;
|
package/dist/number-input.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2T7RUYEK_js = require('./chunks/chunk-2T7RUYEK.js');
|
|
4
4
|
require('./chunks/chunk-CZC76ZD5.js');
|
|
5
5
|
require('./chunks/chunk-JNMCYWGY.js');
|
|
6
6
|
|
|
@@ -8,13 +8,13 @@ require('./chunks/chunk-JNMCYWGY.js');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "NumberInput", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk2T7RUYEK_js.NumberInput; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "numberInputBind", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk2T7RUYEK_js.numberInputBind; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "numberInputVariants", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk2T7RUYEK_js.numberInputVariants; }
|
|
20
20
|
});
|
package/dist/number-input.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { NumberInput, numberInputBind, numberInputVariants } from './chunks/chunk-
|
|
1
|
+
export { NumberInput, numberInputBind, numberInputVariants } from './chunks/chunk-BJM3NDT2.mjs';
|
|
2
2
|
import './chunks/chunk-MCKOWMLS.mjs';
|
|
3
3
|
import './chunks/chunk-CVYXRSXT.mjs';
|
|
@@ -0,0 +1,13 @@
|
|
|
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 };
|
|
@@ -0,0 +1,13 @@
|
|
|
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/nx-image.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkNZHK76R3_js = require('./chunks/chunk-NZHK76R3.js');
|
|
4
|
+
require('./chunks/chunk-CZC76ZD5.js');
|
|
5
|
+
require('./chunks/chunk-JNMCYWGY.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "NxImage", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkNZHK76R3_js.NxImage; }
|
|
12
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
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 progressVariants: (props?: ({
|
|
6
|
+
variant?: "primary" | "danger" | "info" | "success" | "warning" | null | undefined;
|
|
7
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof progressVariants> {
|
|
10
|
+
value?: number;
|
|
11
|
+
max?: number;
|
|
12
|
+
showValue?: boolean;
|
|
13
|
+
indeterminate?: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
|
|
18
|
+
export { Progress, type ProgressProps, progressVariants };
|
|
@@ -0,0 +1,18 @@
|
|
|
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 progressVariants: (props?: ({
|
|
6
|
+
variant?: "primary" | "danger" | "info" | "success" | "warning" | null | undefined;
|
|
7
|
+
size?: "lg" | "md" | "sm" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof progressVariants> {
|
|
10
|
+
value?: number;
|
|
11
|
+
max?: number;
|
|
12
|
+
showValue?: boolean;
|
|
13
|
+
indeterminate?: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
|
|
18
|
+
export { Progress, type ProgressProps, progressVariants };
|
package/dist/progress.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZI4LN2B2_js = require('./chunks/chunk-ZI4LN2B2.js');
|
|
4
|
+
require('./chunks/chunk-CZC76ZD5.js');
|
|
5
|
+
require('./chunks/chunk-JNMCYWGY.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "Progress", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkZI4LN2B2_js.Progress; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "progressVariants", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkZI4LN2B2_js.progressVariants; }
|
|
16
|
+
});
|