@nexus-cross/design-system 1.0.0
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/cursor-rules/nexus-project-setup.mdc +292 -0
- package/cursor-rules/nexus-ui-api.mdc +698 -0
- package/cursor-rules/nexus-ui-components.mdc +136 -0
- package/dist/accordion.d.mts +28 -0
- package/dist/accordion.d.ts +28 -0
- package/dist/accordion.js +28 -0
- package/dist/accordion.mjs +3 -0
- package/dist/avatar.d.mts +17 -0
- package/dist/avatar.d.ts +17 -0
- package/dist/avatar.js +16 -0
- package/dist/avatar.mjs +3 -0
- package/dist/button.d.mts +17 -0
- package/dist/button.d.ts +17 -0
- package/dist/button.js +16 -0
- package/dist/button.mjs +3 -0
- package/dist/carousel.d.mts +36 -0
- package/dist/carousel.d.ts +36 -0
- package/dist/carousel.js +32 -0
- package/dist/carousel.mjs +3 -0
- package/dist/checkbox.d.mts +21 -0
- package/dist/checkbox.d.ts +21 -0
- package/dist/checkbox.js +20 -0
- package/dist/checkbox.mjs +3 -0
- package/dist/chip.d.mts +16 -0
- package/dist/chip.d.ts +16 -0
- package/dist/chip.js +16 -0
- package/dist/chip.mjs +3 -0
- package/dist/chunks/chunk-22ULI3BF.js +21 -0
- package/dist/chunks/chunk-26BUGBOY.mjs +57 -0
- package/dist/chunks/chunk-2JTPRBHZ.mjs +36 -0
- package/dist/chunks/chunk-2MC7XJSE.js +98 -0
- package/dist/chunks/chunk-2RPRCWKV.mjs +139 -0
- package/dist/chunks/chunk-2ZXDXO4I.js +166 -0
- package/dist/chunks/chunk-33UFQJIO.mjs +135 -0
- package/dist/chunks/chunk-3HHJORN7.mjs +137 -0
- package/dist/chunks/chunk-3PCNRCTB.js +61 -0
- package/dist/chunks/chunk-3VFBPFZF.mjs +640 -0
- package/dist/chunks/chunk-4J3GCZ7W.mjs +102 -0
- package/dist/chunks/chunk-54IA2P2Z.mjs +40 -0
- package/dist/chunks/chunk-54RBL7J4.mjs +179 -0
- package/dist/chunks/chunk-5JHJNN2K.js +83 -0
- package/dist/chunks/chunk-5JHN4FCY.mjs +58 -0
- package/dist/chunks/chunk-6FMDO6TT.mjs +114 -0
- package/dist/chunks/chunk-6H7V2I3X.mjs +270 -0
- package/dist/chunks/chunk-7AISZYWL.js +7 -0
- package/dist/chunks/chunk-7G65JBTN.js +133 -0
- package/dist/chunks/chunk-ADO7PDLY.mjs +66 -0
- package/dist/chunks/chunk-AFSEYJZT.js +267 -0
- package/dist/chunks/chunk-AOXXE5UQ.mjs +14 -0
- package/dist/chunks/chunk-AZ2URLDD.js +39 -0
- package/dist/chunks/chunk-B6G5TJRO.js +116 -0
- package/dist/chunks/chunk-BLGQHR3M.js +56 -0
- package/dist/chunks/chunk-BPUQ2CO2.mjs +48 -0
- package/dist/chunks/chunk-BSZ2LN6E.js +129 -0
- package/dist/chunks/chunk-CA3SOLI3.mjs +78 -0
- package/dist/chunks/chunk-CSJDDREF.js +90 -0
- package/dist/chunks/chunk-CVYXRSXT.mjs +8 -0
- package/dist/chunks/chunk-CZC76ZD5.js +10 -0
- package/dist/chunks/chunk-D6FII7HW.js +202 -0
- package/dist/chunks/chunk-DLFV7ZZV.js +112 -0
- package/dist/chunks/chunk-DO6VK2QQ.mjs +108 -0
- package/dist/chunks/chunk-ECVAVQUY.mjs +243 -0
- package/dist/chunks/chunk-EHAUUUWB.mjs +120 -0
- package/dist/chunks/chunk-EVOOTSY5.js +59 -0
- package/dist/chunks/chunk-GX6GSWX3.mjs +38 -0
- package/dist/chunks/chunk-HHXDOKXY.js +108 -0
- package/dist/chunks/chunk-HNLI646G.mjs +325 -0
- package/dist/chunks/chunk-HUPAHDJ7.js +273 -0
- package/dist/chunks/chunk-I252NERB.mjs +21 -0
- package/dist/chunks/chunk-IE4DGLMH.js +75 -0
- package/dist/chunks/chunk-INP2AH3B.js +27 -0
- package/dist/chunks/chunk-IOSIQLZL.js +70 -0
- package/dist/chunks/chunk-J5ZKGPBY.js +132 -0
- package/dist/chunks/chunk-JNMCYWGY.js +10 -0
- package/dist/chunks/chunk-LI7SFBUQ.mjs +89 -0
- package/dist/chunks/chunk-LMMON5AU.mjs +81 -0
- package/dist/chunks/chunk-LOQXCHKL.js +74 -0
- package/dist/chunks/chunk-MA2VCCIY.js +71 -0
- package/dist/chunks/chunk-MCKOWMLS.mjs +8 -0
- package/dist/chunks/chunk-MRRKW5QN.mjs +108 -0
- package/dist/chunks/chunk-MTX7GD3H.js +80 -0
- package/dist/chunks/chunk-NFIPQZ4O.js +100 -0
- package/dist/chunks/chunk-NHDGKOAM.js +104 -0
- package/dist/chunks/chunk-OMN5YQCE.js +143 -0
- package/dist/chunks/chunk-OTGS6BDQ.mjs +25 -0
- package/dist/chunks/chunk-P2T72N62.mjs +34 -0
- package/dist/chunks/chunk-P3DZKXG4.js +116 -0
- package/dist/chunks/chunk-QK6NCII4.js +36 -0
- package/dist/chunks/chunk-QZ4QR3XV.mjs +142 -0
- package/dist/chunks/chunk-RS3SBY3I.js +163 -0
- package/dist/chunks/chunk-RX5UKRYK.mjs +76 -0
- package/dist/chunks/chunk-SGNRVYYQ.mjs +99 -0
- package/dist/chunks/chunk-SJMCPSVH.mjs +76 -0
- package/dist/chunks/chunk-T2IY2TSR.js +43 -0
- package/dist/chunks/chunk-U53UA76K.js +653 -0
- package/dist/chunks/chunk-U56AGSLE.mjs +106 -0
- package/dist/chunks/chunk-ULGYTBCT.mjs +47 -0
- package/dist/chunks/chunk-V5OTJP6H.mjs +5 -0
- package/dist/chunks/chunk-VGO4Z2WH.js +336 -0
- package/dist/chunks/chunk-VIGRCJAE.mjs +37 -0
- package/dist/chunks/chunk-VVXQZ4XH.mjs +93 -0
- package/dist/chunks/chunk-W4GG5A7K.mjs +51 -0
- package/dist/chunks/chunk-WKCXACMZ.js +99 -0
- package/dist/chunks/chunk-WR55D4ZS.js +80 -0
- package/dist/chunks/chunk-X2SHTVZQ.js +89 -0
- package/dist/chunks/chunk-XEHFB62A.js +82 -0
- package/dist/chunks/chunk-XG6QG65W.mjs +63 -0
- package/dist/chunks/chunk-YB5ZKHVB.js +64 -0
- package/dist/chunks/chunk-YCG4FZC3.js +167 -0
- package/dist/chunks/chunk-YEWKPWK3.mjs +80 -0
- package/dist/chunks/chunk-YLO4UKSC.mjs +48 -0
- package/dist/chunks/chunk-YZV6FWE7.js +160 -0
- package/dist/chunks/chunk-ZWSIIGA3.mjs +58 -0
- package/dist/client-only.d.mts +13 -0
- package/dist/client-only.d.ts +13 -0
- package/dist/client-only.js +11 -0
- package/dist/client-only.mjs +2 -0
- package/dist/countdown.d.mts +27 -0
- package/dist/countdown.d.ts +27 -0
- package/dist/countdown.js +16 -0
- package/dist/countdown.mjs +3 -0
- package/dist/counter.d.mts +15 -0
- package/dist/counter.d.ts +15 -0
- package/dist/counter.js +11 -0
- package/dist/counter.mjs +2 -0
- package/dist/data-list.d.mts +33 -0
- package/dist/data-list.d.ts +33 -0
- package/dist/data-list.js +14 -0
- package/dist/data-list.mjs +5 -0
- package/dist/divider.d.mts +14 -0
- package/dist/divider.d.ts +14 -0
- package/dist/divider.js +16 -0
- package/dist/divider.mjs +3 -0
- package/dist/drawer.d.mts +42 -0
- package/dist/drawer.d.ts +42 -0
- package/dist/drawer.js +44 -0
- package/dist/drawer.mjs +3 -0
- package/dist/ellipsis.d.mts +16 -0
- package/dist/ellipsis.d.ts +16 -0
- package/dist/ellipsis.js +12 -0
- package/dist/ellipsis.mjs +3 -0
- package/dist/error-boundary.d.mts +20 -0
- package/dist/error-boundary.d.ts +20 -0
- package/dist/error-boundary.js +11 -0
- package/dist/error-boundary.mjs +2 -0
- package/dist/hooks/useCheckDevice.d.mts +47 -0
- package/dist/hooks/useCheckDevice.d.ts +47 -0
- package/dist/hooks/useCheckDevice.js +8 -0
- package/dist/hooks/useCheckDevice.mjs +2 -0
- package/dist/hooks/useClickOutside.d.mts +12 -0
- package/dist/hooks/useClickOutside.d.ts +12 -0
- package/dist/hooks/useClickOutside.js +8 -0
- package/dist/hooks/useClickOutside.mjs +2 -0
- package/dist/hooks/useDraggableBottomSheet.d.mts +24 -0
- package/dist/hooks/useDraggableBottomSheet.d.ts +24 -0
- package/dist/hooks/useDraggableBottomSheet.js +11 -0
- package/dist/hooks/useDraggableBottomSheet.mjs +2 -0
- package/dist/hooks/useDraggableWindow.d.mts +21 -0
- package/dist/hooks/useDraggableWindow.d.ts +21 -0
- package/dist/hooks/useDraggableWindow.js +11 -0
- package/dist/hooks/useDraggableWindow.mjs +2 -0
- package/dist/hooks/useInView.d.mts +14 -0
- package/dist/hooks/useInView.d.ts +14 -0
- package/dist/hooks/useInView.js +17 -0
- package/dist/hooks/useInView.mjs +2 -0
- package/dist/hooks/useModal.d.mts +2 -0
- package/dist/hooks/useModal.d.ts +2 -0
- package/dist/hooks/useModal.js +11 -0
- package/dist/hooks/useModal.mjs +2 -0
- package/dist/index.d.mts +76 -0
- package/dist/index.d.ts +76 -0
- package/dist/index.js +746 -0
- package/dist/index.mjs +328 -0
- package/dist/infinite-scroll.d.mts +26 -0
- package/dist/infinite-scroll.d.ts +26 -0
- package/dist/infinite-scroll.js +12 -0
- package/dist/infinite-scroll.mjs +3 -0
- package/dist/marquee.d.mts +12 -0
- package/dist/marquee.d.ts +12 -0
- package/dist/marquee.js +12 -0
- package/dist/marquee.mjs +3 -0
- package/dist/modal/index.d.mts +87 -0
- package/dist/modal/index.d.ts +87 -0
- package/dist/modal/index.js +54 -0
- package/dist/modal/index.mjs +9 -0
- package/dist/number-input.d.mts +38 -0
- package/dist/number-input.d.ts +38 -0
- package/dist/number-input.js +20 -0
- package/dist/number-input.mjs +3 -0
- package/dist/pagination.d.mts +22 -0
- package/dist/pagination.d.ts +22 -0
- package/dist/pagination.js +20 -0
- package/dist/pagination.mjs +3 -0
- package/dist/popover.d.mts +25 -0
- package/dist/popover.d.ts +25 -0
- package/dist/popover.js +32 -0
- package/dist/popover.mjs +3 -0
- package/dist/radio-group.d.mts +29 -0
- package/dist/radio-group.d.ts +29 -0
- package/dist/radio-group.js +24 -0
- package/dist/radio-group.mjs +3 -0
- package/dist/schemas/_all.json +2250 -0
- package/dist/schemas/accordion.json +101 -0
- package/dist/schemas/avatar.json +55 -0
- package/dist/schemas/button.json +71 -0
- package/dist/schemas/carousel.json +32 -0
- package/dist/schemas/carouselButton.json +20 -0
- package/dist/schemas/carouselDots.json +17 -0
- package/dist/schemas/carouselSlide.json +20 -0
- package/dist/schemas/checkBox.json +57 -0
- package/dist/schemas/chip.json +49 -0
- package/dist/schemas/clientOnly.json +19 -0
- package/dist/schemas/countdown.json +58 -0
- package/dist/schemas/counter.json +57 -0
- package/dist/schemas/dataList.json +56 -0
- package/dist/schemas/divider.json +40 -0
- package/dist/schemas/drawer.json +27 -0
- package/dist/schemas/drawerContent.json +50 -0
- package/dist/schemas/ellipsis.json +49 -0
- package/dist/schemas/errorBoundary.json +22 -0
- package/dist/schemas/infiniteScroll.json +65 -0
- package/dist/schemas/marquee.json +46 -0
- package/dist/schemas/modalCall.json +21 -0
- package/dist/schemas/modalTemplate.json +123 -0
- package/dist/schemas/numberInput.json +77 -0
- package/dist/schemas/pagination.json +50 -0
- package/dist/schemas/popover.json +67 -0
- package/dist/schemas/radioGroup.json +61 -0
- package/dist/schemas/radioItem.json +35 -0
- package/dist/schemas/select.json +62 -0
- package/dist/schemas/selectItem.json +31 -0
- package/dist/schemas/skeleton.json +48 -0
- package/dist/schemas/spinner.json +27 -0
- package/dist/schemas/switch.json +41 -0
- package/dist/schemas/tab.json +89 -0
- package/dist/schemas/table.json +75 -0
- package/dist/schemas/tableRow.json +32 -0
- package/dist/schemas/tdColumn.json +107 -0
- package/dist/schemas/textArea.json +44 -0
- package/dist/schemas/textInput.json +67 -0
- package/dist/schemas/themeProvider.json +65 -0
- package/dist/schemas/toaster.json +31 -0
- package/dist/schemas/tooltip.json +67 -0
- package/dist/schemas/virtualGrid.json +59 -0
- package/dist/schemas/virtualList.json +54 -0
- package/dist/schemas.d.mts +1263 -0
- package/dist/schemas.d.ts +1263 -0
- package/dist/schemas.js +513 -0
- package/dist/schemas.mjs +469 -0
- package/dist/select.d.mts +31 -0
- package/dist/select.d.ts +31 -0
- package/dist/select.js +24 -0
- package/dist/select.mjs +3 -0
- package/dist/skeleton.d.mts +15 -0
- package/dist/skeleton.d.ts +15 -0
- package/dist/skeleton.js +12 -0
- package/dist/skeleton.mjs +3 -0
- package/dist/spinner.d.mts +9 -0
- package/dist/spinner.d.ts +9 -0
- package/dist/spinner.js +12 -0
- package/dist/spinner.mjs +3 -0
- package/dist/styles/layer.d.mts +3 -0
- package/dist/styles/layer.d.ts +3 -0
- package/dist/styles/layer.js +18 -0
- package/dist/styles/layer.mjs +16 -0
- package/dist/styles.css +2401 -0
- package/dist/styles.d.mts +3 -0
- package/dist/styles.d.ts +3 -0
- package/dist/styles.js +16 -0
- package/dist/styles.layered.css +2404 -0
- package/dist/styles.mjs +14 -0
- package/dist/switch.d.mts +15 -0
- package/dist/switch.d.ts +15 -0
- package/dist/switch.js +16 -0
- package/dist/switch.mjs +3 -0
- package/dist/tab.d.mts +36 -0
- package/dist/tab.d.ts +36 -0
- package/dist/tab.js +20 -0
- package/dist/tab.mjs +3 -0
- package/dist/table.d.mts +80 -0
- package/dist/table.d.ts +80 -0
- package/dist/table.js +33 -0
- package/dist/table.mjs +4 -0
- package/dist/text-area.d.mts +15 -0
- package/dist/text-area.d.ts +15 -0
- package/dist/text-area.js +16 -0
- package/dist/text-area.mjs +3 -0
- package/dist/text-input.d.mts +21 -0
- package/dist/text-input.d.ts +21 -0
- package/dist/text-input.js +16 -0
- package/dist/text-input.mjs +3 -0
- package/dist/theme-provider.d.mts +25 -0
- package/dist/theme-provider.d.ts +25 -0
- package/dist/theme-provider.js +15 -0
- package/dist/theme-provider.mjs +2 -0
- package/dist/toast.d.mts +42 -0
- package/dist/toast.d.ts +42 -0
- package/dist/toast.js +20 -0
- package/dist/toast.mjs +3 -0
- package/dist/tooltip.d.mts +24 -0
- package/dist/tooltip.d.ts +24 -0
- package/dist/tooltip.js +20 -0
- package/dist/tooltip.mjs +3 -0
- package/dist/useModal-BsGIcP8t.d.mts +128 -0
- package/dist/useModal-BsGIcP8t.d.ts +128 -0
- package/dist/utils/cn.d.mts +5 -0
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/cn.js +11 -0
- package/dist/utils/cn.mjs +2 -0
- package/dist/utils/scroll.d.mts +4 -0
- package/dist/utils/scroll.d.ts +4 -0
- package/dist/utils/scroll.js +15 -0
- package/dist/utils/scroll.mjs +2 -0
- package/dist/virtual-scroll.d.mts +34 -0
- package/dist/virtual-scroll.d.ts +34 -0
- package/dist/virtual-scroll.js +16 -0
- package/dist/virtual-scroll.mjs +3 -0
- package/package.json +291 -0
- package/scripts/setup-cursor-rules.cjs +92 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import './styles.css';
|
|
2
|
+
export { ThemeProvider, useTheme } from './chunks/chunk-I252NERB.mjs';
|
|
3
|
+
export { Toaster, toast, useToast } from './chunks/chunk-ZWSIIGA3.mjs';
|
|
4
|
+
export { Table, TableHighlightProvider, TableRow, TdColumn, tableRowVariants, useTableHighlight } from './chunks/chunk-HNLI646G.mjs';
|
|
5
|
+
export { useInView } from './chunks/chunk-2JTPRBHZ.mjs';
|
|
6
|
+
export { Marquee } from './chunks/chunk-SJMCPSVH.mjs';
|
|
7
|
+
export { Ellipsis } from './chunks/chunk-6FMDO6TT.mjs';
|
|
8
|
+
export { Skeleton } from './chunks/chunk-P2T72N62.mjs';
|
|
9
|
+
export { Countdown, useCountdown } from './chunks/chunk-LI7SFBUQ.mjs';
|
|
10
|
+
export { Counter } from './chunks/chunk-CA3SOLI3.mjs';
|
|
11
|
+
export { DataList } from './chunks/chunk-5JHN4FCY.mjs';
|
|
12
|
+
export { ErrorBoundary } from './chunks/chunk-VIGRCJAE.mjs';
|
|
13
|
+
export { Spinner } from './chunks/chunk-BPUQ2CO2.mjs';
|
|
14
|
+
export { ClientOnly } from './chunks/chunk-AOXXE5UQ.mjs';
|
|
15
|
+
export { RadioGroup, RadioItem, radioGroupVariants, radioItemVariants } from './chunks/chunk-33UFQJIO.mjs';
|
|
16
|
+
export { Pagination, pageButtonVariants, paginationVariants } from './chunks/chunk-2RPRCWKV.mjs';
|
|
17
|
+
export { Tab, tabListVariants, tabTriggerVariants } from './chunks/chunk-QZ4QR3XV.mjs';
|
|
18
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger } from './chunks/chunk-XG6QG65W.mjs';
|
|
19
|
+
export { Popover, PopoverArrow, PopoverClose, PopoverContent, PopoverTrigger, popoverContentClasses } from './chunks/chunk-ULGYTBCT.mjs';
|
|
20
|
+
export { Carousel, CarouselDots, CarouselNext, CarouselPrev, CarouselSlide, useCarousel } from './chunks/chunk-3HHJORN7.mjs';
|
|
21
|
+
export { VirtualGrid, VirtualList } from './chunks/chunk-EHAUUUWB.mjs';
|
|
22
|
+
export { InfiniteScroll } from './chunks/chunk-LMMON5AU.mjs';
|
|
23
|
+
export { TextInput, textInputVariants } from './chunks/chunk-54RBL7J4.mjs';
|
|
24
|
+
export { TextArea, textAreaVariants } from './chunks/chunk-26BUGBOY.mjs';
|
|
25
|
+
export { NumberInput, numberInputBind, numberInputVariants } from './chunks/chunk-ECVAVQUY.mjs';
|
|
26
|
+
export { Avatar, avatarVariants } from './chunks/chunk-YLO4UKSC.mjs';
|
|
27
|
+
export { Select, SelectItem, selectContentVariants, selectTriggerVariants } from './chunks/chunk-DO6VK2QQ.mjs';
|
|
28
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerRoot, DrawerTitle, DrawerTrigger, drawerContentVariants, drawerOverlayVariants } from './chunks/chunk-SGNRVYYQ.mjs';
|
|
29
|
+
export { Tooltip, TooltipProvider, tooltipContentVariants } from './chunks/chunk-W4GG5A7K.mjs';
|
|
30
|
+
export { Divider, dividerVariants } from './chunks/chunk-GX6GSWX3.mjs';
|
|
31
|
+
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';
|
|
32
|
+
export { useDraggableBottomSheet } from './chunks/chunk-U56AGSLE.mjs';
|
|
33
|
+
export { useDraggableWindow } from './chunks/chunk-4J3GCZ7W.mjs';
|
|
34
|
+
export { scrollFreeze, scrollRelease } from './chunks/chunk-54IA2P2Z.mjs';
|
|
35
|
+
export { useCheckDevice_default as useCheckDevice } from './chunks/chunk-YEWKPWK3.mjs';
|
|
36
|
+
export { useClickOutside_default as useClickOutside } from './chunks/chunk-OTGS6BDQ.mjs';
|
|
37
|
+
export { useModal } from './chunks/chunk-6H7V2I3X.mjs';
|
|
38
|
+
export { Button, buttonVariants } from './chunks/chunk-VVXQZ4XH.mjs';
|
|
39
|
+
export { Chip, chipVariants } from './chunks/chunk-RX5UKRYK.mjs';
|
|
40
|
+
export { CheckBox, checkBoxVariants } from './chunks/chunk-MRRKW5QN.mjs';
|
|
41
|
+
export { Switch, switchVariants } from './chunks/chunk-ADO7PDLY.mjs';
|
|
42
|
+
export { cn } from './chunks/chunk-MCKOWMLS.mjs';
|
|
43
|
+
import './chunks/chunk-CVYXRSXT.mjs';
|
|
44
|
+
|
|
45
|
+
// src/component-tokens/button.ts
|
|
46
|
+
var buttonTokenSchema = {
|
|
47
|
+
id: "button",
|
|
48
|
+
name: "Button",
|
|
49
|
+
description: "\uBC84\uD2BC \uCEF4\uD3EC\uB10C\uD2B8 \uD1A0\uD070 \u2014 2\uCD95 variant(semantic \xD7 variant). semantic\uB2F9 6\uAC1C \uC0C9\uC0C1 \uD1A0\uD070 + size\uBCC4 spacing/radius/font.",
|
|
50
|
+
tokens: {
|
|
51
|
+
common: {
|
|
52
|
+
"focus-ring": {
|
|
53
|
+
cssVar: "--color-comp-btn-focus-ring",
|
|
54
|
+
type: "color",
|
|
55
|
+
defaultValue: "var(--color-accent-primary)",
|
|
56
|
+
description: "\uD3EC\uCEE4\uC2A4 \uB9C1 \uC0C9\uC0C1"
|
|
57
|
+
},
|
|
58
|
+
shadow: {
|
|
59
|
+
cssVar: "--shadow-comp-btn",
|
|
60
|
+
type: "shadow",
|
|
61
|
+
defaultValue: "none",
|
|
62
|
+
description: "\uBC15\uC2A4 \uADF8\uB9BC\uC790"
|
|
63
|
+
},
|
|
64
|
+
gap: {
|
|
65
|
+
cssVar: "--spacing-comp-btn-gap",
|
|
66
|
+
type: "spacing",
|
|
67
|
+
defaultValue: "0.5rem",
|
|
68
|
+
description: "\uC544\uC774\uCF58-\uD14D\uC2A4\uD2B8 \uAC04\uACA9"
|
|
69
|
+
},
|
|
70
|
+
"disabled-opacity": {
|
|
71
|
+
cssVar: "--opacity-comp-btn-disabled",
|
|
72
|
+
type: "opacity",
|
|
73
|
+
defaultValue: "0.5",
|
|
74
|
+
description: "\uBE44\uD65C\uC131 \uC0C1\uD0DC \uD22C\uBA85\uB3C4"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
variants: {
|
|
78
|
+
primary: {
|
|
79
|
+
base: {
|
|
80
|
+
cssVar: "--color-comp-btn-primary-base",
|
|
81
|
+
type: "color",
|
|
82
|
+
defaultValue: "var(--color-accent-primary)",
|
|
83
|
+
description: "contained bg / outlined border"
|
|
84
|
+
},
|
|
85
|
+
hover: {
|
|
86
|
+
cssVar: "--color-comp-btn-primary-hover",
|
|
87
|
+
type: "color",
|
|
88
|
+
defaultValue: "var(--color-accent-primary-hover)",
|
|
89
|
+
description: "contained hover bg"
|
|
90
|
+
},
|
|
91
|
+
pressed: {
|
|
92
|
+
cssVar: "--color-comp-btn-primary-pressed",
|
|
93
|
+
type: "color",
|
|
94
|
+
defaultValue: "var(--color-accent-primary-pressed)",
|
|
95
|
+
description: "contained active/pressed bg"
|
|
96
|
+
},
|
|
97
|
+
on: {
|
|
98
|
+
cssVar: "--color-comp-btn-primary-on",
|
|
99
|
+
type: "color",
|
|
100
|
+
defaultValue: "var(--color-accent-on-primary)",
|
|
101
|
+
description: "contained text (on-color)"
|
|
102
|
+
},
|
|
103
|
+
text: {
|
|
104
|
+
cssVar: "--color-comp-btn-primary-text",
|
|
105
|
+
type: "color",
|
|
106
|
+
defaultValue: "var(--color-accent-primary-intense)",
|
|
107
|
+
description: "outlined/subtle/ghost text"
|
|
108
|
+
},
|
|
109
|
+
"subtle-bg": {
|
|
110
|
+
cssVar: "--color-comp-btn-primary-subtle-bg",
|
|
111
|
+
type: "color",
|
|
112
|
+
defaultValue: "var(--color-accent-primary-bg)",
|
|
113
|
+
description: "subtle bg / outlined\xB7ghost hover bg"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
secondary: {
|
|
117
|
+
base: {
|
|
118
|
+
cssVar: "--color-comp-btn-secondary-base",
|
|
119
|
+
type: "color",
|
|
120
|
+
defaultValue: "var(--color-accent-secondary)"
|
|
121
|
+
},
|
|
122
|
+
hover: {
|
|
123
|
+
cssVar: "--color-comp-btn-secondary-hover",
|
|
124
|
+
type: "color",
|
|
125
|
+
defaultValue: "var(--color-accent-secondary-hover)"
|
|
126
|
+
},
|
|
127
|
+
pressed: {
|
|
128
|
+
cssVar: "--color-comp-btn-secondary-pressed",
|
|
129
|
+
type: "color",
|
|
130
|
+
defaultValue: "var(--color-accent-secondary-pressed)"
|
|
131
|
+
},
|
|
132
|
+
on: {
|
|
133
|
+
cssVar: "--color-comp-btn-secondary-on",
|
|
134
|
+
type: "color",
|
|
135
|
+
defaultValue: "var(--color-accent-on-secondary)"
|
|
136
|
+
},
|
|
137
|
+
text: {
|
|
138
|
+
cssVar: "--color-comp-btn-secondary-text",
|
|
139
|
+
type: "color",
|
|
140
|
+
defaultValue: "var(--color-accent-secondary-intense)"
|
|
141
|
+
},
|
|
142
|
+
"subtle-bg": {
|
|
143
|
+
cssVar: "--color-comp-btn-secondary-subtle-bg",
|
|
144
|
+
type: "color",
|
|
145
|
+
defaultValue: "var(--color-accent-secondary-bg)"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
normal: {
|
|
149
|
+
base: {
|
|
150
|
+
cssVar: "--color-comp-btn-normal-base",
|
|
151
|
+
type: "color",
|
|
152
|
+
defaultValue: "var(--color-surface-subtle)"
|
|
153
|
+
},
|
|
154
|
+
hover: {
|
|
155
|
+
cssVar: "--color-comp-btn-normal-hover",
|
|
156
|
+
type: "color",
|
|
157
|
+
defaultValue: "var(--color-surface-hover)"
|
|
158
|
+
},
|
|
159
|
+
pressed: {
|
|
160
|
+
cssVar: "--color-comp-btn-normal-pressed",
|
|
161
|
+
type: "color",
|
|
162
|
+
defaultValue: "var(--color-surface-pressed)"
|
|
163
|
+
},
|
|
164
|
+
on: {
|
|
165
|
+
cssVar: "--color-comp-btn-normal-on",
|
|
166
|
+
type: "color",
|
|
167
|
+
defaultValue: "var(--color-text-primary)"
|
|
168
|
+
},
|
|
169
|
+
text: {
|
|
170
|
+
cssVar: "--color-comp-btn-normal-text",
|
|
171
|
+
type: "color",
|
|
172
|
+
defaultValue: "var(--color-text-primary)"
|
|
173
|
+
},
|
|
174
|
+
"subtle-bg": {
|
|
175
|
+
cssVar: "--color-comp-btn-normal-subtle-bg",
|
|
176
|
+
type: "color",
|
|
177
|
+
defaultValue: "var(--color-surface-subtle)"
|
|
178
|
+
},
|
|
179
|
+
border: {
|
|
180
|
+
cssVar: "--color-comp-btn-normal-border",
|
|
181
|
+
type: "color",
|
|
182
|
+
defaultValue: "var(--color-border-default)",
|
|
183
|
+
description: "normal outlined \uC804\uC6A9 border \uC0C9\uC0C1"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
danger: {
|
|
187
|
+
base: {
|
|
188
|
+
cssVar: "--color-comp-btn-danger-base",
|
|
189
|
+
type: "color",
|
|
190
|
+
defaultValue: "var(--color-status-danger)"
|
|
191
|
+
},
|
|
192
|
+
hover: {
|
|
193
|
+
cssVar: "--color-comp-btn-danger-hover",
|
|
194
|
+
type: "color",
|
|
195
|
+
defaultValue: "var(--color-status-danger-hover)"
|
|
196
|
+
},
|
|
197
|
+
pressed: {
|
|
198
|
+
cssVar: "--color-comp-btn-danger-pressed",
|
|
199
|
+
type: "color",
|
|
200
|
+
defaultValue: "var(--color-status-danger-pressed)"
|
|
201
|
+
},
|
|
202
|
+
on: {
|
|
203
|
+
cssVar: "--color-comp-btn-danger-on",
|
|
204
|
+
type: "color",
|
|
205
|
+
defaultValue: "var(--color-static-white)"
|
|
206
|
+
},
|
|
207
|
+
text: {
|
|
208
|
+
cssVar: "--color-comp-btn-danger-text",
|
|
209
|
+
type: "color",
|
|
210
|
+
defaultValue: "var(--color-status-danger-intense)"
|
|
211
|
+
},
|
|
212
|
+
"subtle-bg": {
|
|
213
|
+
cssVar: "--color-comp-btn-danger-subtle-bg",
|
|
214
|
+
type: "color",
|
|
215
|
+
defaultValue: "var(--color-status-danger-bg)"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
sizes: {
|
|
220
|
+
xl: {
|
|
221
|
+
height: {
|
|
222
|
+
cssVar: "--spacing-comp-btn-xl-h",
|
|
223
|
+
type: "spacing",
|
|
224
|
+
defaultValue: "3rem",
|
|
225
|
+
description: "\uB192\uC774 (48px)"
|
|
226
|
+
},
|
|
227
|
+
"padding-x": {
|
|
228
|
+
cssVar: "--spacing-comp-btn-xl-px",
|
|
229
|
+
type: "spacing",
|
|
230
|
+
defaultValue: "1.5rem",
|
|
231
|
+
description: "\uC88C\uC6B0 \uD328\uB529 (24px)"
|
|
232
|
+
},
|
|
233
|
+
"font-size": {
|
|
234
|
+
cssVar: "--text-comp-btn-xl",
|
|
235
|
+
type: "font-size",
|
|
236
|
+
defaultValue: "1rem",
|
|
237
|
+
description: "\uAE00\uC790 \uD06C\uAE30 (16px)"
|
|
238
|
+
},
|
|
239
|
+
radius: {
|
|
240
|
+
cssVar: "--radius-comp-btn-xl",
|
|
241
|
+
type: "radius",
|
|
242
|
+
defaultValue: "0.75rem",
|
|
243
|
+
description: "\uBAA8\uC11C\uB9AC \uB465\uAE00\uAE30 (12px)"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
lg: {
|
|
247
|
+
height: {
|
|
248
|
+
cssVar: "--spacing-comp-btn-lg-h",
|
|
249
|
+
type: "spacing",
|
|
250
|
+
defaultValue: "2.5rem",
|
|
251
|
+
description: "\uB192\uC774 (40px)"
|
|
252
|
+
},
|
|
253
|
+
"padding-x": {
|
|
254
|
+
cssVar: "--spacing-comp-btn-lg-px",
|
|
255
|
+
type: "spacing",
|
|
256
|
+
defaultValue: "1.5rem",
|
|
257
|
+
description: "\uC88C\uC6B0 \uD328\uB529 (24px)"
|
|
258
|
+
},
|
|
259
|
+
"font-size": {
|
|
260
|
+
cssVar: "--text-comp-btn-lg",
|
|
261
|
+
type: "font-size",
|
|
262
|
+
defaultValue: "1rem",
|
|
263
|
+
description: "\uAE00\uC790 \uD06C\uAE30 (16px)"
|
|
264
|
+
},
|
|
265
|
+
radius: {
|
|
266
|
+
cssVar: "--radius-comp-btn-lg",
|
|
267
|
+
type: "radius",
|
|
268
|
+
defaultValue: "0.5rem",
|
|
269
|
+
description: "\uBAA8\uC11C\uB9AC \uB465\uAE00\uAE30 (8px)"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
md: {
|
|
273
|
+
height: {
|
|
274
|
+
cssVar: "--spacing-comp-btn-md-h",
|
|
275
|
+
type: "spacing",
|
|
276
|
+
defaultValue: "1.875rem",
|
|
277
|
+
description: "\uB192\uC774 (30px)"
|
|
278
|
+
},
|
|
279
|
+
"padding-x": {
|
|
280
|
+
cssVar: "--spacing-comp-btn-md-px",
|
|
281
|
+
type: "spacing",
|
|
282
|
+
defaultValue: "0.75rem",
|
|
283
|
+
description: "\uC88C\uC6B0 \uD328\uB529 (12px)"
|
|
284
|
+
},
|
|
285
|
+
"font-size": {
|
|
286
|
+
cssVar: "--text-comp-btn-md",
|
|
287
|
+
type: "font-size",
|
|
288
|
+
defaultValue: "0.875rem",
|
|
289
|
+
description: "\uAE00\uC790 \uD06C\uAE30 (14px)"
|
|
290
|
+
},
|
|
291
|
+
radius: {
|
|
292
|
+
cssVar: "--radius-comp-btn-md",
|
|
293
|
+
type: "radius",
|
|
294
|
+
defaultValue: "0.5rem",
|
|
295
|
+
description: "\uBAA8\uC11C\uB9AC \uB465\uAE00\uAE30 (8px)"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
sm: {
|
|
299
|
+
"padding-x": {
|
|
300
|
+
cssVar: "--spacing-comp-btn-sm-px",
|
|
301
|
+
type: "spacing",
|
|
302
|
+
defaultValue: "0.5rem",
|
|
303
|
+
description: "\uC88C\uC6B0 \uD328\uB529 (8px)"
|
|
304
|
+
},
|
|
305
|
+
"padding-y": {
|
|
306
|
+
cssVar: "--spacing-comp-btn-sm-py",
|
|
307
|
+
type: "spacing",
|
|
308
|
+
defaultValue: "0.25rem",
|
|
309
|
+
description: "\uC0C1\uD558 \uD328\uB529 (4px)"
|
|
310
|
+
},
|
|
311
|
+
"font-size": {
|
|
312
|
+
cssVar: "--text-comp-btn-sm",
|
|
313
|
+
type: "font-size",
|
|
314
|
+
defaultValue: "0.75rem",
|
|
315
|
+
description: "\uAE00\uC790 \uD06C\uAE30 (12px)"
|
|
316
|
+
},
|
|
317
|
+
radius: {
|
|
318
|
+
cssVar: "--radius-comp-btn-sm",
|
|
319
|
+
type: "radius",
|
|
320
|
+
defaultValue: "0.25rem",
|
|
321
|
+
description: "\uBAA8\uC11C\uB9AC \uB465\uAE00\uAE30 (4px)"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
export { buttonTokenSchema };
|
|
@@ -0,0 +1,26 @@
|
|
|
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 };
|
|
@@ -0,0 +1,26 @@
|
|
|
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 };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk5JHJNN2K_js = require('./chunks/chunk-5JHJNN2K.js');
|
|
4
|
+
require('./chunks/chunk-CZC76ZD5.js');
|
|
5
|
+
require('./chunks/chunk-JNMCYWGY.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "InfiniteScroll", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunk5JHJNN2K_js.InfiniteScroll; }
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1,12 @@
|
|
|
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/marquee.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk2MC7XJSE_js = require('./chunks/chunk-2MC7XJSE.js');
|
|
4
|
+
require('./chunks/chunk-CZC76ZD5.js');
|
|
5
|
+
require('./chunks/chunk-JNMCYWGY.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "Marquee", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunk2MC7XJSE_js.Marquee; }
|
|
12
|
+
});
|
package/dist/marquee.mjs
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
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 };
|
|
@@ -0,0 +1,87 @@
|
|
|
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.js';
|
|
3
|
+
export { A as AnimationOptions, a as ModalPropsType, u as useModal } from '../useModal-BsGIcP8t.js';
|
|
4
|
+
import { BreakPoints } from '../hooks/useCheckDevice.js';
|
|
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 };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkU53UA76K_js = require('../chunks/chunk-U53UA76K.js');
|
|
4
|
+
require('../chunks/chunk-HHXDOKXY.js');
|
|
5
|
+
require('../chunks/chunk-NHDGKOAM.js');
|
|
6
|
+
require('../chunks/chunk-T2IY2TSR.js');
|
|
7
|
+
require('../chunks/chunk-XEHFB62A.js');
|
|
8
|
+
require('../chunks/chunk-INP2AH3B.js');
|
|
9
|
+
var chunkHUPAHDJ7_js = require('../chunks/chunk-HUPAHDJ7.js');
|
|
10
|
+
require('../chunks/chunk-CZC76ZD5.js');
|
|
11
|
+
require('../chunks/chunk-JNMCYWGY.js');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
Object.defineProperty(exports, "ModalContainer", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkU53UA76K_js.ModalContainer_default; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "ModalPortalTarget", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkU53UA76K_js.ModalPortalTarget_default; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "ModalTemplate", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkU53UA76K_js.ModalTemplate_default; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "checkModal", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkU53UA76K_js.checkModal; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "closeModal", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkU53UA76K_js.closeModal; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "getModalDefaultOption", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkU53UA76K_js.getModalDefaultOption; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "modal", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkU53UA76K_js.openModal; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "openModal", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkU53UA76K_js.openModal; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "resetModal", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkU53UA76K_js.resetModal; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "useModal", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkHUPAHDJ7_js.useModal; }
|
|
54
|
+
});
|