@tipp/ui 1.1.16 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/dialog.cjs +112 -1
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.d.cts +24 -1
- package/dist/atoms/dialog.d.ts +24 -1
- package/dist/atoms/dialog.js +1 -1
- package/dist/atoms/drawer.cjs +1 -1
- package/dist/atoms/drawer.cjs.map +1 -1
- package/dist/atoms/drawer.js +1 -1
- package/dist/atoms/index.cjs +178 -106
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.d.cts +2 -1
- package/dist/atoms/index.d.ts +2 -1
- package/dist/atoms/index.js +2 -2
- package/dist/{chunk-GS6W7RPX.js → chunk-7V33VXQT.js} +5 -2
- package/dist/chunk-7V33VXQT.js.map +1 -0
- package/dist/{chunk-HVAZICMI.js → chunk-GC4NVM4I.js} +5 -5
- package/dist/chunk-GC4NVM4I.js.map +1 -0
- package/dist/{chunk-FUSEDVWI.js → chunk-J36GXXB6.js} +5 -5
- package/dist/chunk-RTJS3BWZ.js +85 -0
- package/dist/chunk-RTJS3BWZ.js.map +1 -0
- package/dist/chunk-RV55FYAI.js +18 -0
- package/dist/chunk-RV55FYAI.js.map +1 -0
- package/dist/{chunk-TFJPLDJW.js → chunk-YL6JBDN5.js} +9 -6
- package/dist/chunk-YL6JBDN5.js.map +1 -0
- package/dist/{chunk-WV7FE4LE.js → chunk-ZZXCFJOT.js} +2 -2
- package/dist/chunk-ZZXCFJOT.js.map +1 -0
- package/dist/index.cjs +273 -198
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +84 -13
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +15 -15
- package/dist/molecules/date-picker/index.cjs +4 -1
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +1 -1
- package/dist/molecules/expand-table/index.js +4 -4
- package/dist/molecules/expand-table/row.js +2 -2
- package/dist/molecules/index.cjs +4 -1
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +8 -8
- package/dist/molecules/navigation.js +2 -2
- package/package.json +3 -3
- package/src/atoms/dialog.tsx +92 -1
- package/src/atoms/drawer.tsx +2 -2
- package/src/molecules/date-picker/index.tsx +3 -0
- package/dist/chunk-27PAO6CQ.js +0 -81
- package/dist/chunk-27PAO6CQ.js.map +0 -1
- package/dist/chunk-2DF7YI2O.js +0 -123
- package/dist/chunk-2DF7YI2O.js.map +0 -1
- package/dist/chunk-2DKHDTCD.js +0 -50
- package/dist/chunk-2DKHDTCD.js.map +0 -1
- package/dist/chunk-2G4OYCA5.js +0 -123
- package/dist/chunk-2G4OYCA5.js.map +0 -1
- package/dist/chunk-2L4KWP7B.js +0 -53
- package/dist/chunk-2L4KWP7B.js.map +0 -1
- package/dist/chunk-3ML54TPS.js +0 -130
- package/dist/chunk-43UXXKFO.js +0 -31
- package/dist/chunk-43UXXKFO.js.map +0 -1
- package/dist/chunk-47OKVUBW.js +0 -49
- package/dist/chunk-47OKVUBW.js.map +0 -1
- package/dist/chunk-4MOKG756.js +0 -49
- package/dist/chunk-4MOKG756.js.map +0 -1
- package/dist/chunk-5O5NOQQI.js +0 -91
- package/dist/chunk-5O5NOQQI.js.map +0 -1
- package/dist/chunk-6DNZAAB2.js +0 -54
- package/dist/chunk-6DNZAAB2.js.map +0 -1
- package/dist/chunk-6QAY57B6.js +0 -54
- package/dist/chunk-6QAY57B6.js.map +0 -1
- package/dist/chunk-6T66J7SC.js +0 -31
- package/dist/chunk-6T66J7SC.js.map +0 -1
- package/dist/chunk-6XDM5UCM.js +0 -63
- package/dist/chunk-6XDM5UCM.js.map +0 -1
- package/dist/chunk-6YXNYTWG.js +0 -60
- package/dist/chunk-6YXNYTWG.js.map +0 -1
- package/dist/chunk-74WGHMXE.js +0 -38
- package/dist/chunk-74WGHMXE.js.map +0 -1
- package/dist/chunk-76NU6HMD.js +0 -54
- package/dist/chunk-76NU6HMD.js.map +0 -1
- package/dist/chunk-7A7J457W.js +0 -63
- package/dist/chunk-7A7J457W.js.map +0 -1
- package/dist/chunk-7EIQPAVZ.js +0 -123
- package/dist/chunk-7EIQPAVZ.js.map +0 -1
- package/dist/chunk-7JBA4THV.js +0 -49
- package/dist/chunk-7JBA4THV.js.map +0 -1
- package/dist/chunk-7ORFESPJ.js +0 -54
- package/dist/chunk-7ORFESPJ.js.map +0 -1
- package/dist/chunk-AEXDX2VS.js +0 -53
- package/dist/chunk-AEXDX2VS.js.map +0 -1
- package/dist/chunk-AQX7DQLI.js +0 -36
- package/dist/chunk-AQX7DQLI.js.map +0 -1
- package/dist/chunk-AX6DRGYF.js +0 -50
- package/dist/chunk-AX6DRGYF.js.map +0 -1
- package/dist/chunk-BHFREV7Y.js +0 -63
- package/dist/chunk-BHFREV7Y.js.map +0 -1
- package/dist/chunk-BJM4OYNH.js +0 -76
- package/dist/chunk-BJM4OYNH.js.map +0 -1
- package/dist/chunk-BUWFX67O.js +0 -54
- package/dist/chunk-BUWFX67O.js.map +0 -1
- package/dist/chunk-CJDOKOQE.js +0 -57
- package/dist/chunk-CJDOKOQE.js.map +0 -1
- package/dist/chunk-CMOA2ZAE.js +0 -54
- package/dist/chunk-CMOA2ZAE.js.map +0 -1
- package/dist/chunk-D2XQUEVI.js +0 -59
- package/dist/chunk-D2XQUEVI.js.map +0 -1
- package/dist/chunk-DMU7IYOM.js +0 -130
- package/dist/chunk-DMU7IYOM.js.map +0 -1
- package/dist/chunk-DZMZGZZO.js +0 -54
- package/dist/chunk-DZMZGZZO.js.map +0 -1
- package/dist/chunk-EAU6DKDJ.js +0 -123
- package/dist/chunk-EAU6DKDJ.js.map +0 -1
- package/dist/chunk-EVFFFVFM.js +0 -123
- package/dist/chunk-EVFFFVFM.js.map +0 -1
- package/dist/chunk-F74SCBB2.js +0 -63
- package/dist/chunk-F74SCBB2.js.map +0 -1
- package/dist/chunk-FFXK3WHX.js +0 -51
- package/dist/chunk-FFXK3WHX.js.map +0 -1
- package/dist/chunk-FQYPUIFX.js +0 -130
- package/dist/chunk-FQYPUIFX.js.map +0 -1
- package/dist/chunk-FUSEDVWI.js.map +0 -1
- package/dist/chunk-G2PLUOSM.js +0 -123
- package/dist/chunk-G2PLUOSM.js.map +0 -1
- package/dist/chunk-G4CFKBVC.js +0 -123
- package/dist/chunk-G4CFKBVC.js.map +0 -1
- package/dist/chunk-G4FN6FJG.js +0 -91
- package/dist/chunk-G4FN6FJG.js.map +0 -1
- package/dist/chunk-GAAYHQB7.js +0 -56
- package/dist/chunk-GAAYHQB7.js.map +0 -1
- package/dist/chunk-GLRJ6U7D.js +0 -48
- package/dist/chunk-GLRJ6U7D.js.map +0 -1
- package/dist/chunk-GNQIRD5R.js +0 -46
- package/dist/chunk-GNQIRD5R.js.map +0 -1
- package/dist/chunk-GS6W7RPX.js.map +0 -1
- package/dist/chunk-HLOY6BIP.js +0 -37
- package/dist/chunk-HLOY6BIP.js.map +0 -1
- package/dist/chunk-HM2WYL3T.js +0 -54
- package/dist/chunk-HM2WYL3T.js.map +0 -1
- package/dist/chunk-HVAZICMI.js.map +0 -1
- package/dist/chunk-HXJPG3ZO.js +0 -130
- package/dist/chunk-HXJPG3ZO.js.map +0 -1
- package/dist/chunk-I4JHOCV3.js +0 -34
- package/dist/chunk-I4JHOCV3.js.map +0 -1
- package/dist/chunk-IGPQT4AE.js +0 -81
- package/dist/chunk-IGPQT4AE.js.map +0 -1
- package/dist/chunk-IHVDDP4G.js +0 -76
- package/dist/chunk-IHVDDP4G.js.map +0 -1
- package/dist/chunk-IUT2HS6J.js +0 -130
- package/dist/chunk-IUT2HS6J.js.map +0 -1
- package/dist/chunk-J6GN3YIC.js +0 -54
- package/dist/chunk-J6GN3YIC.js.map +0 -1
- package/dist/chunk-JUUMUW3T.js +0 -63
- package/dist/chunk-JUUMUW3T.js.map +0 -1
- package/dist/chunk-JWTX4UP4.js +0 -57
- package/dist/chunk-JWTX4UP4.js.map +0 -1
- package/dist/chunk-K25LQHOZ.js +0 -130
- package/dist/chunk-K25LQHOZ.js.map +0 -1
- package/dist/chunk-KE36QOV3.js +0 -130
- package/dist/chunk-KE36QOV3.js.map +0 -1
- package/dist/chunk-KHHXN3CH.js +0 -1
- package/dist/chunk-KHHXN3CH.js.map +0 -1
- package/dist/chunk-KKYI4MTP.js +0 -54
- package/dist/chunk-KKYI4MTP.js.map +0 -1
- package/dist/chunk-L5M2J73V.js +0 -123
- package/dist/chunk-L5M2J73V.js.map +0 -1
- package/dist/chunk-LLDWXALX.js +0 -34
- package/dist/chunk-LLDWXALX.js.map +0 -1
- package/dist/chunk-LVWHSYJM.js +0 -16
- package/dist/chunk-LVWHSYJM.js.map +0 -1
- package/dist/chunk-M4ZV2IGG.js +0 -16
- package/dist/chunk-M4ZV2IGG.js.map +0 -1
- package/dist/chunk-MDBFTLD7.js +0 -72
- package/dist/chunk-MDBFTLD7.js.map +0 -1
- package/dist/chunk-MY4C7VHR.js +0 -34
- package/dist/chunk-MY4C7VHR.js.map +0 -1
- package/dist/chunk-N7IBRSSR.js +0 -63
- package/dist/chunk-N7IBRSSR.js.map +0 -1
- package/dist/chunk-NBJOYJAF.js +0 -49
- package/dist/chunk-NBJOYJAF.js.map +0 -1
- package/dist/chunk-NFVB56JS.js +0 -60
- package/dist/chunk-NFVB56JS.js.map +0 -1
- package/dist/chunk-NSSO2QWC.js +0 -63
- package/dist/chunk-NSSO2QWC.js.map +0 -1
- package/dist/chunk-OCSX2YAS.js +0 -130
- package/dist/chunk-OCSX2YAS.js.map +0 -1
- package/dist/chunk-OI2YZXJT.js +0 -63
- package/dist/chunk-OI2YZXJT.js.map +0 -1
- package/dist/chunk-ONYSO7Y2.js +0 -49
- package/dist/chunk-ONYSO7Y2.js.map +0 -1
- package/dist/chunk-OP2U4LJB.js +0 -63
- package/dist/chunk-OP2U4LJB.js.map +0 -1
- package/dist/chunk-P6B2PNYI.js +0 -7
- package/dist/chunk-P6B2PNYI.js.map +0 -1
- package/dist/chunk-PL37KFRJ.js +0 -1
- package/dist/chunk-PL37KFRJ.js.map +0 -1
- package/dist/chunk-PV2PTVNR.js +0 -54
- package/dist/chunk-PV2PTVNR.js.map +0 -1
- package/dist/chunk-Q55OUI52.js +0 -54
- package/dist/chunk-Q55OUI52.js.map +0 -1
- package/dist/chunk-QH2XKKYB.js +0 -50
- package/dist/chunk-QH2XKKYB.js.map +0 -1
- package/dist/chunk-RC25EWE2.js +0 -63
- package/dist/chunk-RC25EWE2.js.map +0 -1
- package/dist/chunk-RKLEKAON.js +0 -63
- package/dist/chunk-RKLEKAON.js.map +0 -1
- package/dist/chunk-RSZMFZ6O.js +0 -54
- package/dist/chunk-RSZMFZ6O.js.map +0 -1
- package/dist/chunk-S4RYTDHA.js +0 -123
- package/dist/chunk-S4RYTDHA.js.map +0 -1
- package/dist/chunk-SUGQXRH7.js +0 -51
- package/dist/chunk-SUGQXRH7.js.map +0 -1
- package/dist/chunk-T5XKRD6Q.js +0 -54
- package/dist/chunk-T5XKRD6Q.js.map +0 -1
- package/dist/chunk-T75M6HQZ.js +0 -91
- package/dist/chunk-T75M6HQZ.js.map +0 -1
- package/dist/chunk-TFJPLDJW.js.map +0 -1
- package/dist/chunk-TGKZ3GXL.js +0 -49
- package/dist/chunk-TGKZ3GXL.js.map +0 -1
- package/dist/chunk-TJMV6UG4.js +0 -63
- package/dist/chunk-TJMV6UG4.js.map +0 -1
- package/dist/chunk-TJTNRHBA.js +0 -57
- package/dist/chunk-TJTNRHBA.js.map +0 -1
- package/dist/chunk-TQGM4VHP.js +0 -54
- package/dist/chunk-TQGM4VHP.js.map +0 -1
- package/dist/chunk-TSVWEPRP.js +0 -59
- package/dist/chunk-TSVWEPRP.js.map +0 -1
- package/dist/chunk-TULD3666.js +0 -123
- package/dist/chunk-TULD3666.js.map +0 -1
- package/dist/chunk-UATXA5UQ.js +0 -63
- package/dist/chunk-UATXA5UQ.js.map +0 -1
- package/dist/chunk-UEX53IDO.js +0 -63
- package/dist/chunk-UEX53IDO.js.map +0 -1
- package/dist/chunk-UOEZ5KJL.js +0 -123
- package/dist/chunk-UOEZ5KJL.js.map +0 -1
- package/dist/chunk-UZBH7VSW.js +0 -123
- package/dist/chunk-UZBH7VSW.js.map +0 -1
- package/dist/chunk-V64U3F6R.js +0 -74
- package/dist/chunk-V64U3F6R.js.map +0 -1
- package/dist/chunk-VDHB7BMC.js +0 -63
- package/dist/chunk-VDHB7BMC.js.map +0 -1
- package/dist/chunk-VS2M6MCO.js +0 -28
- package/dist/chunk-VS2M6MCO.js.map +0 -1
- package/dist/chunk-W32CVWDO.js +0 -53
- package/dist/chunk-W32CVWDO.js.map +0 -1
- package/dist/chunk-W5VTZW3O.js +0 -54
- package/dist/chunk-W5VTZW3O.js.map +0 -1
- package/dist/chunk-WLHGYNLP.js +0 -57
- package/dist/chunk-WLHGYNLP.js.map +0 -1
- package/dist/chunk-WS4YTN73.js +0 -37
- package/dist/chunk-WS4YTN73.js.map +0 -1
- package/dist/chunk-WTESLLG7.js +0 -55
- package/dist/chunk-WTESLLG7.js.map +0 -1
- package/dist/chunk-WV7FE4LE.js.map +0 -1
- package/dist/chunk-X3OPBSBB.js +0 -91
- package/dist/chunk-X3OPBSBB.js.map +0 -1
- package/dist/chunk-X73G236I.js +0 -50
- package/dist/chunk-X73G236I.js.map +0 -1
- package/dist/chunk-XIQSSPSX.js +0 -91
- package/dist/chunk-XIQSSPSX.js.map +0 -1
- package/dist/chunk-XKFMSFSF.js +0 -123
- package/dist/chunk-XKFMSFSF.js.map +0 -1
- package/dist/chunk-XRVSCJYE.js +0 -56
- package/dist/chunk-XRVSCJYE.js.map +0 -1
- package/dist/chunk-XXTSXGYB.js +0 -54
- package/dist/chunk-XXTSXGYB.js.map +0 -1
- package/dist/chunk-Y3ADBCSG.js +0 -58
- package/dist/chunk-Y3ADBCSG.js.map +0 -1
- package/dist/chunk-Y7LIV2SG.js +0 -60
- package/dist/chunk-Y7LIV2SG.js.map +0 -1
- package/dist/chunk-YKJPZGZD.js +0 -54
- package/dist/chunk-YKJPZGZD.js.map +0 -1
- package/dist/chunk-YYQEUHIE.js +0 -123
- package/dist/chunk-YYQEUHIE.js.map +0 -1
- package/dist/chunk-YZZS2HN7.js +0 -123
- package/dist/chunk-YZZS2HN7.js.map +0 -1
- package/dist/chunk-Z2ME4RO4.js +0 -57
- package/dist/chunk-Z2ME4RO4.js.map +0 -1
- package/dist/chunk-Z2PA5PMV.js +0 -91
- package/dist/chunk-Z2PA5PMV.js.map +0 -1
- package/dist/chunk-Z7UW7DSA.js +0 -49
- package/dist/chunk-Z7UW7DSA.js.map +0 -1
- /package/dist/{chunk-3ML54TPS.js.map → chunk-J36GXXB6.js.map} +0 -0
package/dist/chunk-47OKVUBW.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ThemeProvider
|
|
3
|
-
} from "./chunk-BVBX6IJ3.js";
|
|
4
|
-
import {
|
|
5
|
-
ToastContainer
|
|
6
|
-
} from "./chunk-NJ2U2TVS.js";
|
|
7
|
-
import {
|
|
8
|
-
__objRest,
|
|
9
|
-
__spreadValues
|
|
10
|
-
} from "./chunk-N552FDTV.js";
|
|
11
|
-
|
|
12
|
-
// src/atoms/drawer.tsx
|
|
13
|
-
import * as Dialog from "@radix-ui/react-dialog";
|
|
14
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
function Root2(props) {
|
|
16
|
-
return /* @__PURE__ */ jsx(Dialog.Root, __spreadValues({}, props));
|
|
17
|
-
}
|
|
18
|
-
function Content2(props) {
|
|
19
|
-
const _a = props, { position = "right", className } = _a, rest = __objRest(_a, ["position", "className"]);
|
|
20
|
-
return /* @__PURE__ */ jsx(Dialog.Portal, { container: document.getElementsByTagName("main")[0], children: /* @__PURE__ */ jsxs(ThemeProvider, { children: [
|
|
21
|
-
/* @__PURE__ */ jsx(Dialog.Overlay, { className: "DrawerOverlay" }),
|
|
22
|
-
/* @__PURE__ */ jsx(
|
|
23
|
-
Dialog.Content,
|
|
24
|
-
__spreadValues({
|
|
25
|
-
className: `DrawerContent ${position} ${className || ""}`
|
|
26
|
-
}, rest)
|
|
27
|
-
),
|
|
28
|
-
/* @__PURE__ */ jsx(ToastContainer, {})
|
|
29
|
-
] }) });
|
|
30
|
-
}
|
|
31
|
-
function Trigger2(props) {
|
|
32
|
-
return /* @__PURE__ */ jsx(Dialog.Trigger, __spreadValues({ asChild: true }, props));
|
|
33
|
-
}
|
|
34
|
-
var Drawer = {
|
|
35
|
-
Root: Dialog.Root,
|
|
36
|
-
Trigger: Trigger2,
|
|
37
|
-
Content: Content2,
|
|
38
|
-
Close: Dialog.Close,
|
|
39
|
-
Title: Dialog.Title,
|
|
40
|
-
Description: Dialog.Description
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export {
|
|
44
|
-
Root2 as Root,
|
|
45
|
-
Content2 as Content,
|
|
46
|
-
Trigger2 as Trigger,
|
|
47
|
-
Drawer
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=chunk-47OKVUBW.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/drawer.tsx"],"sourcesContent":["import React from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { ToastContainer } from './toast';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n};\n\nexport function Content(props: ContentProps): React.ReactNode {\n const { position = 'right', className, ...rest } = props;\n\n return (\n <Dialog.Portal container={document.getElementsByTagName('main')[0]}>\n <ThemeProvider>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n {...rest}\n />\n <ToastContainer />\n </ThemeProvider>\n </Dialog.Portal>\n );\n}\n\nexport function Trigger(props: Dialog.DialogTriggerProps): React.ReactNode {\n return <Dialog.Trigger asChild {...props} />;\n}\n\nexport const Drawer = {\n Root: Dialog.Root,\n Trigger,\n Content,\n Close: Dialog.Close,\n Title: Dialog.Title,\n Description: Dialog.Description,\n};\n"],"mappings":";;;;;;;;;;;;AACA,YAAY,YAAY;AAKf,cAaH,YAbG;AADF,SAASA,MAAK,OAA4C;AAC/D,SAAO,oBAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOO,SAASC,SAAQ,OAAsC;AAC5D,QAAmD,YAA3C,aAAW,SAAS,UAf9B,IAeqD,IAAT,iBAAS,IAAT,CAAlC,YAAoB;AAE5B,SACE,oBAAQ,eAAP,EAAc,WAAW,SAAS,qBAAqB,MAAM,EAAE,CAAC,GAC/D,+BAAC,iBACC;AAAA,wBAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,SACnD;AAAA,IACN;AAAA,IACA,oBAAC,kBAAe;AAAA,KAClB,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,oBAAQ,gBAAP,iBAAe,SAAO,QAAK,MAAO;AAC5C;AAEO,IAAM,SAAS;AAAA,EACpB,MAAa;AAAA,EACb,SAAAA;AAAA,EACA,SAAAD;AAAA,EACA,OAAc;AAAA,EACd,OAAc;AAAA,EACd,aAAoB;AACtB;","names":["Root","Content","Trigger"]}
|
package/dist/chunk-4MOKG756.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ToastContainer
|
|
3
|
-
} from "./chunk-NJ2U2TVS.js";
|
|
4
|
-
import {
|
|
5
|
-
ThemeProvider
|
|
6
|
-
} from "./chunk-BVBX6IJ3.js";
|
|
7
|
-
import {
|
|
8
|
-
__objRest,
|
|
9
|
-
__spreadValues
|
|
10
|
-
} from "./chunk-N552FDTV.js";
|
|
11
|
-
|
|
12
|
-
// src/atoms/drawer.tsx
|
|
13
|
-
import * as Dialog from "@radix-ui/react-dialog";
|
|
14
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
function Root2(props) {
|
|
16
|
-
return /* @__PURE__ */ jsx(Dialog.Root, __spreadValues({}, props));
|
|
17
|
-
}
|
|
18
|
-
function Content2(props) {
|
|
19
|
-
const _a = props, { position = "right", className } = _a, rest = __objRest(_a, ["position", "className"]);
|
|
20
|
-
return /* @__PURE__ */ jsx(Dialog.Portal, { container: document.getElementsByTagName("main")[0], children: /* @__PURE__ */ jsxs(ThemeProvider, { children: [
|
|
21
|
-
/* @__PURE__ */ jsx(Dialog.Overlay, { className: "DrawerOverlay" }),
|
|
22
|
-
/* @__PURE__ */ jsx(
|
|
23
|
-
Dialog.Content,
|
|
24
|
-
__spreadValues({
|
|
25
|
-
className: `DrawerContent ${position} ${className || ""}`
|
|
26
|
-
}, rest)
|
|
27
|
-
),
|
|
28
|
-
/* @__PURE__ */ jsx(ToastContainer, {})
|
|
29
|
-
] }) });
|
|
30
|
-
}
|
|
31
|
-
function Trigger2(props) {
|
|
32
|
-
return /* @__PURE__ */ jsx(Dialog.Trigger, __spreadValues({ asChild: true }, props));
|
|
33
|
-
}
|
|
34
|
-
var Drawer = {
|
|
35
|
-
Root: Dialog.Root,
|
|
36
|
-
Trigger: Trigger2,
|
|
37
|
-
Content: Content2,
|
|
38
|
-
Close: Dialog.Close,
|
|
39
|
-
Title: Dialog.Title,
|
|
40
|
-
Description: Dialog.Description
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export {
|
|
44
|
-
Root2 as Root,
|
|
45
|
-
Content2 as Content,
|
|
46
|
-
Trigger2 as Trigger,
|
|
47
|
-
Drawer
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=chunk-4MOKG756.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/drawer.tsx"],"sourcesContent":["import React from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { ToastContainer } from './toast';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n};\n\nexport function Content(props: ContentProps): React.ReactNode {\n const { position = 'right', className, ...rest } = props;\n\n return (\n <Dialog.Portal container={document.getElementsByTagName('main')[0]}>\n <ThemeProvider>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n {...rest}\n />\n <ToastContainer />\n </ThemeProvider>\n </Dialog.Portal>\n );\n}\n\nexport function Trigger(props: Dialog.DialogTriggerProps): React.ReactNode {\n return <Dialog.Trigger asChild {...props} />;\n}\n\nexport const Drawer = {\n Root: Dialog.Root,\n Trigger,\n Content,\n Close: Dialog.Close,\n Title: Dialog.Title,\n Description: Dialog.Description,\n};\n"],"mappings":";;;;;;;;;;;;AACA,YAAY,YAAY;AAKf,cAaH,YAbG;AADF,SAASA,MAAK,OAA4C;AAC/D,SAAO,oBAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOO,SAASC,SAAQ,OAAsC;AAC5D,QAAmD,YAA3C,aAAW,SAAS,UAf9B,IAeqD,IAAT,iBAAS,IAAT,CAAlC,YAAoB;AAE5B,SACE,oBAAQ,eAAP,EAAc,WAAW,SAAS,qBAAqB,MAAM,EAAE,CAAC,GAC/D,+BAAC,iBACC;AAAA,wBAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,SACnD;AAAA,IACN;AAAA,IACA,oBAAC,kBAAe;AAAA,KAClB,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,oBAAQ,gBAAP,iBAAe,SAAO,QAAK,MAAO;AAC5C;AAEO,IAAM,SAAS;AAAA,EACpB,MAAa;AAAA,EACb,SAAAA;AAAA,EACA,SAAAD;AAAA,EACA,OAAc;AAAA,EACd,OAAc;AAAA,EACd,aAAoB;AACtB;","names":["Root","Content","Trigger"]}
|
package/dist/chunk-5O5NOQQI.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Heading
|
|
3
|
-
} from "./chunk-WMZAV6PQ.js";
|
|
4
|
-
import {
|
|
5
|
-
IconButton
|
|
6
|
-
} from "./chunk-O3DNDMV3.js";
|
|
7
|
-
import {
|
|
8
|
-
Flex
|
|
9
|
-
} from "./chunk-25HMMI7R.js";
|
|
10
|
-
import {
|
|
11
|
-
ChevronLeftIcon,
|
|
12
|
-
ChevronRightIcon
|
|
13
|
-
} from "./chunk-TSVWEPRP.js";
|
|
14
|
-
import {
|
|
15
|
-
__objRest,
|
|
16
|
-
__spreadProps,
|
|
17
|
-
__spreadValues
|
|
18
|
-
} from "./chunk-N552FDTV.js";
|
|
19
|
-
|
|
20
|
-
// src/molecules/date-picker/index.tsx
|
|
21
|
-
import { forwardRef } from "react";
|
|
22
|
-
import * as RDP from "react-datepicker";
|
|
23
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
24
|
-
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
25
|
-
var DatePicker = forwardRef(
|
|
26
|
-
(props, ref) => {
|
|
27
|
-
const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
|
|
28
|
-
return /* @__PURE__ */ jsx(
|
|
29
|
-
ReactDatePicker,
|
|
30
|
-
__spreadProps(__spreadValues({
|
|
31
|
-
dateFormat: "yyyy/MM/dd",
|
|
32
|
-
nextMonthButtonLabel: "\uB2E4\uC74C \uB2EC",
|
|
33
|
-
placeholderText: "yyyy/mm/dd",
|
|
34
|
-
previousMonthButtonLabel: "\uC774\uC804 \uB2EC",
|
|
35
|
-
ref,
|
|
36
|
-
renderCustomHeader,
|
|
37
|
-
showPopperArrow: false
|
|
38
|
-
}, rest), {
|
|
39
|
-
calendarClassName: `tipp_datePicker_calendar ${rest.calendarClassName || ""}`,
|
|
40
|
-
wrapperClassName: `tipp_datePicker ${size} ${rest.wrapperClassName || ""}`
|
|
41
|
-
})
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
DatePicker.displayName = "DatePicker";
|
|
46
|
-
var renderCustomHeader = (props) => {
|
|
47
|
-
const {
|
|
48
|
-
date,
|
|
49
|
-
decreaseMonth,
|
|
50
|
-
increaseMonth,
|
|
51
|
-
prevMonthButtonDisabled,
|
|
52
|
-
nextMonthButtonDisabled
|
|
53
|
-
} = props;
|
|
54
|
-
const year = date.getFullYear();
|
|
55
|
-
const month = date.getMonth();
|
|
56
|
-
return /* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
|
|
57
|
-
/* @__PURE__ */ jsx(
|
|
58
|
-
IconButton,
|
|
59
|
-
{
|
|
60
|
-
disabled: prevMonthButtonDisabled,
|
|
61
|
-
onClick: decreaseMonth,
|
|
62
|
-
variant: "ghost",
|
|
63
|
-
children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
/* @__PURE__ */ jsxs(Flex, { gap: "3", children: [
|
|
67
|
-
/* @__PURE__ */ jsxs(Heading, { variant: "subtitle1", weight: "regular", children: [
|
|
68
|
-
year,
|
|
69
|
-
"\uB144"
|
|
70
|
-
] }),
|
|
71
|
-
/* @__PURE__ */ jsxs(Heading, { variant: "subtitle1", weight: "regular", children: [
|
|
72
|
-
month + 1,
|
|
73
|
-
"\uC6D4"
|
|
74
|
-
] })
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ jsx(
|
|
77
|
-
IconButton,
|
|
78
|
-
{
|
|
79
|
-
disabled: nextMonthButtonDisabled,
|
|
80
|
-
onClick: increaseMonth,
|
|
81
|
-
variant: "ghost",
|
|
82
|
-
children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
] });
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export {
|
|
89
|
-
DatePicker
|
|
90
|
-
};
|
|
91
|
-
//# sourceMappingURL=chunk-5O5NOQQI.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/molecules/date-picker/index.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any -- ReactPicker의 렌더러가 object를 return함 버그를 해결하기 위해 강제 assertion 사용 */\n/* eslint-disable @typescript-eslint/no-unsafe-member-access -- ReactPicker의 렌더러가 object를 return함 버그를 해결하기 위해 강제 assertion 사용 */\nimport type { ElementRef } from 'react';\nimport React, { forwardRef } from 'react';\nimport type { DatePickerProps as ReactDatePickerProps } from 'react-datepicker';\nimport * as RDP from 'react-datepicker';\nimport { IconButton } from '../../atoms/icon-button';\nimport { Flex } from '../../atoms/flex';\nimport { ChevronLeftIcon, ChevronRightIcon } from '../../icon';\nimport { Heading } from '../../atoms/heading';\n\nexport type DatePickerProps = ReactDatePickerProps & {\n size?: 'small' | 'medium' | 'large';\n};\ntype DatePickerRef = ElementRef<typeof ReactDatePicker>;\n\nconst ReactDatePicker = ((RDP.default as any).default ||\n (RDP.default as any) ||\n (RDP as any)) as typeof RDP.default;\n\nexport const DatePicker = forwardRef<DatePickerRef, DatePickerProps>(\n (props, ref): React.ReactNode => {\n const { size = 'medium', ...rest } = props;\n return (\n <ReactDatePicker\n dateFormat=\"yyyy/MM/dd\"\n nextMonthButtonLabel=\"다음 달\"\n placeholderText=\"yyyy/mm/dd\"\n previousMonthButtonLabel=\"이전 달\"\n ref={ref}\n renderCustomHeader={renderCustomHeader}\n showPopperArrow={false}\n {...rest}\n calendarClassName={`tipp_datePicker_calendar ${rest.calendarClassName || ''}`}\n wrapperClassName={`tipp_datePicker ${size} ${rest.wrapperClassName || ''}`}\n />\n );\n }\n);\n\nDatePicker.displayName = 'DatePicker';\n\nconst renderCustomHeader: ReactDatePickerProps['renderCustomHeader'] = (\n props\n) => {\n const {\n date,\n decreaseMonth,\n increaseMonth,\n prevMonthButtonDisabled,\n nextMonthButtonDisabled,\n } = props;\n\n const year = date.getFullYear();\n const month = date.getMonth();\n\n return (\n <Flex align=\"center\" justify=\"between\" pb=\"2\" pl=\"2\" pr=\"2\">\n <IconButton\n disabled={prevMonthButtonDisabled}\n onClick={decreaseMonth}\n variant=\"ghost\"\n >\n <ChevronLeftIcon />\n </IconButton>\n <Flex gap=\"3\">\n <Heading variant=\"subtitle1\" weight=\"regular\">\n {year}년\n </Heading>\n <Heading variant=\"subtitle1\" weight=\"regular\">\n {month + 1}월\n </Heading>\n </Flex>\n\n <IconButton\n disabled={nextMonthButtonDisabled}\n onClick={increaseMonth}\n variant=\"ghost\"\n >\n <ChevronRightIcon />\n </IconButton>\n </Flex>\n );\n};\n\n// DatePicker.displayName = 'DatePicker';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,SAAgB,kBAAkB;AAElC,YAAY,SAAS;AAmBf,cA0CE,YA1CF;AARN,IAAM,kBAAwB,YAAgB,WACvC,eACJ;AAEI,IAAM,aAAa;AAAA,EACxB,CAAC,OAAO,QAAyB;AAC/B,UAAqC,YAA7B,SAAO,SAtBnB,IAsByC,IAAT,iBAAS,IAAT,CAApB;AACR,WACE;AAAA,MAAC;AAAA;AAAA,QACC,YAAW;AAAA,QACX,sBAAqB;AAAA,QACrB,iBAAgB;AAAA,QAChB,0BAAyB;AAAA,QACzB;AAAA,QACA;AAAA,QACA,iBAAiB;AAAA,SACb,OARL;AAAA,QASC,mBAAmB,4BAA4B,KAAK,qBAAqB,EAAE;AAAA,QAC3E,kBAAkB,mBAAmB,IAAI,IAAI,KAAK,oBAAoB,EAAE;AAAA;AAAA,IAC1E;AAAA,EAEJ;AACF;AAEA,WAAW,cAAc;AAEzB,IAAM,qBAAiE,CACrE,UACG;AACH,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,QAAM,OAAO,KAAK,YAAY;AAC9B,QAAM,QAAQ,KAAK,SAAS;AAE5B,SACE,qBAAC,QAAK,OAAM,UAAS,SAAQ,WAAU,IAAG,KAAI,IAAG,KAAI,IAAG,KACtD;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,UAAU;AAAA,QACV,SAAS;AAAA,QACT,SAAQ;AAAA,QAER,8BAAC,mBAAgB;AAAA;AAAA,IACnB;AAAA,IACA,qBAAC,QAAK,KAAI,KACR;AAAA,2BAAC,WAAQ,SAAQ,aAAY,QAAO,WACjC;AAAA;AAAA,QAAK;AAAA,SACR;AAAA,MACA,qBAAC,WAAQ,SAAQ,aAAY,QAAO,WACjC;AAAA,gBAAQ;AAAA,QAAE;AAAA,SACb;AAAA,OACF;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,UAAU;AAAA,QACV,SAAS;AAAA,QACT,SAAQ;AAAA,QAER,8BAAC,oBAAiB;AAAA;AAAA,IACpB;AAAA,KACF;AAEJ;","names":[]}
|
package/dist/chunk-6DNZAAB2.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__objRest,
|
|
3
|
-
__spreadProps,
|
|
4
|
-
__spreadValues
|
|
5
|
-
} from "./chunk-N552FDTV.js";
|
|
6
|
-
|
|
7
|
-
// src/atoms/button.tsx
|
|
8
|
-
import {
|
|
9
|
-
Button as RadixButton
|
|
10
|
-
} from "@radix-ui/themes";
|
|
11
|
-
import { forwardRef, useMemo } from "react";
|
|
12
|
-
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
var Button = forwardRef(
|
|
14
|
-
(props, ref) => {
|
|
15
|
-
const _a = props, { size } = _a, restProps = __objRest(_a, ["size"]);
|
|
16
|
-
const radixSize = useMemo(() => {
|
|
17
|
-
switch (size) {
|
|
18
|
-
case "small":
|
|
19
|
-
return "1";
|
|
20
|
-
case "medium":
|
|
21
|
-
return "2";
|
|
22
|
-
case "large":
|
|
23
|
-
case "largest":
|
|
24
|
-
return "3";
|
|
25
|
-
default:
|
|
26
|
-
return "2";
|
|
27
|
-
}
|
|
28
|
-
}, [size]);
|
|
29
|
-
const largestStyle = useMemo(() => {
|
|
30
|
-
if (size !== "largest")
|
|
31
|
-
return {};
|
|
32
|
-
console.log({ size });
|
|
33
|
-
return {
|
|
34
|
-
style: {
|
|
35
|
-
borderRadius: "var(--radius-4)",
|
|
36
|
-
padding: "0 var(--space-5)"
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}, [size]);
|
|
40
|
-
return /* @__PURE__ */ jsx(
|
|
41
|
-
RadixButton,
|
|
42
|
-
__spreadProps(__spreadValues(__spreadValues({}, largestStyle), restProps), {
|
|
43
|
-
ref,
|
|
44
|
-
size: radixSize
|
|
45
|
-
})
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
Button.displayName = "Button";
|
|
50
|
-
|
|
51
|
-
export {
|
|
52
|
-
Button
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=chunk-6DNZAAB2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/button.tsx"],"sourcesContent":["import {\n Button as RadixButton,\n type ButtonProps as RadixButtonProps,\n} from '@radix-ui/themes';\nimport React, { forwardRef, useMemo } from 'react';\n\nexport type ButtonProps = Omit<RadixButtonProps, 'size'> & {\n size?: 'small' | 'medium' | 'large' | 'largest';\n};\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref): React.ReactNode => {\n const { size, ...restProps } = props;\n\n const radixSize = useMemo(() => {\n switch (size) {\n case 'small':\n return '1';\n case 'medium':\n return '2';\n case 'large':\n case 'largest':\n return '3';\n default:\n return '2';\n }\n }, [size]);\n\n const largestStyle = useMemo<ButtonProps>(() => {\n if (size !== 'largest') return {};\n console.log({ size });\n return {\n style: {\n borderRadius: 'var(--radius-4)',\n padding: '0 var(--space-5)',\n },\n };\n }, [size]);\n\n return (\n <RadixButton\n {...largestStyle}\n {...restProps}\n ref={ref}\n size={radixSize}\n />\n );\n }\n);\n\nButton.displayName = 'Button';\n"],"mappings":";;;;;;;AAAA;AAAA,EACE,UAAU;AAAA,OAEL;AACP,SAAgB,YAAY,eAAe;AAoCrC;AA9BC,IAAM,SAAS;AAAA,EACpB,CAAC,OAAO,QAAyB;AAC/B,UAA+B,YAAvB,OAZZ,IAYmC,IAAd,sBAAc,IAAd,CAAT;AAER,UAAM,YAAY,QAAQ,MAAM;AAC9B,cAAQ,MAAM;AAAA,QACZ,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AAAA,QACL,KAAK;AACH,iBAAO;AAAA,QACT;AACE,iBAAO;AAAA,MACX;AAAA,IACF,GAAG,CAAC,IAAI,CAAC;AAET,UAAM,eAAe,QAAqB,MAAM;AAC9C,UAAI,SAAS;AAAW,eAAO,CAAC;AAChC,cAAQ,IAAI,EAAE,KAAK,CAAC;AACpB,aAAO;AAAA,QACL,OAAO;AAAA,UACL,cAAc;AAAA,UACd,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF,GAAG,CAAC,IAAI,CAAC;AAET,WACE;AAAA,MAAC;AAAA,sDACK,eACA,YAFL;AAAA,QAGC;AAAA,QACA,MAAM;AAAA;AAAA,IACR;AAAA,EAEJ;AACF;AAEA,OAAO,cAAc;","names":[]}
|
package/dist/chunk-6QAY57B6.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Flex
|
|
3
|
-
} from "./chunk-25HMMI7R.js";
|
|
4
|
-
|
|
5
|
-
// src/molecules/dot-navigation.tsx
|
|
6
|
-
import { useCallback, useEffect, useState } from "react";
|
|
7
|
-
import { DotFilledIcon } from "@radix-ui/react-icons";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
function DotNavigation(props) {
|
|
10
|
-
const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
|
|
11
|
-
const [currentDot, setCurrentDot] = useState(
|
|
12
|
-
() => {
|
|
13
|
-
var _a;
|
|
14
|
-
return (_a = defaultDotIndex != null ? defaultDotIndex : dotIndex) != null ? _a : 0;
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
const onClickDot = useCallback(
|
|
18
|
-
(i) => {
|
|
19
|
-
if (onClick) {
|
|
20
|
-
onClick(i);
|
|
21
|
-
} else {
|
|
22
|
-
setCurrentDot(i);
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
[onClick]
|
|
26
|
-
);
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
onChangeDotIndex == null ? void 0 : onChangeDotIndex(currentDot);
|
|
29
|
-
}, [currentDot, onChangeDotIndex]);
|
|
30
|
-
return /* @__PURE__ */ jsx(Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
31
|
-
const isSelected = currentDot === index;
|
|
32
|
-
return /* @__PURE__ */ jsx(
|
|
33
|
-
DotFilledIcon,
|
|
34
|
-
{
|
|
35
|
-
color: isSelected ? void 0 : "gray",
|
|
36
|
-
height: "24px",
|
|
37
|
-
fill: "var(--gray-5)",
|
|
38
|
-
onClick: () => {
|
|
39
|
-
onClickDot(index);
|
|
40
|
-
},
|
|
41
|
-
style: {
|
|
42
|
-
cursor: "pointer"
|
|
43
|
-
},
|
|
44
|
-
width: "24px"
|
|
45
|
-
},
|
|
46
|
-
index
|
|
47
|
-
);
|
|
48
|
-
}) : null });
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export {
|
|
52
|
-
DotNavigation
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=chunk-6QAY57B6.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/molecules/dot-navigation.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useState } from 'react';\nimport { DotFilledIcon } from '@radix-ui/react-icons';\nimport { Flex } from '../atoms/flex';\n\nexport interface DotNavigationProps {\n /** 전체 점 갯수 */\n dotCount?: number;\n /** 점 클릭 시 */\n onClick?: (index: number) => void;\n /** 현재 선택된 점 */\n dotIndex?: number;\n /** 기본 점 위치 */\n defaultDotIndex?: number;\n /** 선택된 점 변경 시 실행 */\n onChangeDotIndex?: (index: number) => void;\n}\n\nexport function DotNavigation(props: DotNavigationProps): React.ReactElement {\n const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } =\n props;\n\n const [currentDot, setCurrentDot] = useState<number>(\n () => defaultDotIndex ?? dotIndex ?? 0\n );\n\n const onClickDot = useCallback(\n (i: number) => {\n if (onClick) {\n onClick(i);\n } else {\n setCurrentDot(i);\n }\n },\n [onClick]\n );\n\n useEffect(() => {\n onChangeDotIndex?.(currentDot);\n }, [currentDot, onChangeDotIndex]);\n\n return (\n <Flex>\n {dotCount\n ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {\n const isSelected = currentDot === index;\n return (\n <DotFilledIcon\n color={isSelected ? undefined : 'gray'}\n height=\"24px\"\n fill=\"var(--gray-5)\"\n // eslint-disable-next-line react/no-array-index-key -- index외의 키가 없음\n key={index}\n onClick={() => {\n onClickDot(index);\n }}\n style={{\n cursor: 'pointer',\n }}\n width=\"24px\"\n />\n );\n })\n : null}\n </Flex>\n );\n}\n"],"mappings":";;;;;AAAA,SAAgB,aAAa,WAAW,gBAAgB;AACxD,SAAS,qBAAqB;AA6ChB;AA7BP,SAAS,cAAc,OAA+C;AAC3E,QAAM,EAAE,UAAU,SAAS,UAAU,iBAAiB,iBAAiB,IACrE;AAEF,QAAM,CAAC,YAAY,aAAa,IAAI;AAAA,IAClC,MAAG;AAtBP;AAsBU,+DAAmB,aAAnB,YAA+B;AAAA;AAAA,EACvC;AAEA,QAAM,aAAa;AAAA,IACjB,CAAC,MAAc;AACb,UAAI,SAAS;AACX,gBAAQ,CAAC;AAAA,MACX,OAAO;AACL,sBAAc,CAAC;AAAA,MACjB;AAAA,IACF;AAAA,IACA,CAAC,OAAO;AAAA,EACV;AAEA,YAAU,MAAM;AACd,yDAAmB;AAAA,EACrB,GAAG,CAAC,YAAY,gBAAgB,CAAC;AAEjC,SACE,oBAAC,QACE,qBACG,MAAM,KAAK,EAAE,QAAQ,SAAS,GAAG,CAAC,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG,UAAU;AAC9D,UAAM,aAAa,eAAe;AAClC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,OAAO,aAAa,SAAY;AAAA,QAChC,QAAO;AAAA,QACP,MAAK;AAAA,QAGL,SAAS,MAAM;AACb,qBAAW,KAAK;AAAA,QAClB;AAAA,QACA,OAAO;AAAA,UACL,QAAQ;AAAA,QACV;AAAA,QACA,OAAM;AAAA;AAAA,MAPD;AAAA,IAQP;AAAA,EAEJ,CAAC,IACD,MACN;AAEJ;","names":[]}
|
package/dist/chunk-6T66J7SC.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__spreadValues
|
|
3
|
-
} from "./chunk-N552FDTV.js";
|
|
4
|
-
|
|
5
|
-
// src/atoms/toast.tsx
|
|
6
|
-
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
7
|
-
import { ToastContainer as ToastifyToastContainer } from "react-toastify";
|
|
8
|
-
import { toast } from "react-toastify";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
function ToastContainer(props) {
|
|
11
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
-
ToastifyToastContainer,
|
|
13
|
-
__spreadValues({
|
|
14
|
-
autoClose: 5e4,
|
|
15
|
-
closeOnClick: true,
|
|
16
|
-
draggable: true,
|
|
17
|
-
hideProgressBar: true,
|
|
18
|
-
newestOnTop: true,
|
|
19
|
-
pauseOnFocusLoss: true,
|
|
20
|
-
pauseOnHover: true,
|
|
21
|
-
position: "bottom-right",
|
|
22
|
-
rtl: false
|
|
23
|
-
}, props)
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
ToastContainer,
|
|
29
|
-
toast
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=chunk-6T66J7SC.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/toast.tsx"],"sourcesContent":["import { Cross1Icon } from '@radix-ui/react-icons';\nimport type { Theme, ToastContainerProps, TypeOptions } from 'react-toastify';\nimport { ToastContainer as ToastifyToastContainer } from 'react-toastify';\nimport { IconButton } from './icon-button';\n\nexport { toast } from 'react-toastify';\n\ninterface CloseButtonProps {\n closeToast: (e: React.MouseEvent<HTMLElement>) => void;\n type: TypeOptions;\n ariaLabel?: string;\n theme: Theme;\n}\nfunction CloseButton({ closeToast }: CloseButtonProps): React.ReactNode {\n return (\n <IconButton color=\"gray\" onClick={closeToast} variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n );\n}\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactElement {\n return (\n <ToastifyToastContainer\n autoClose={50000}\n // closeButton={CloseButton}\n closeOnClick\n draggable\n hideProgressBar\n newestOnTop\n pauseOnFocusLoss\n pauseOnHover\n position=\"bottom-right\"\n rtl={false}\n {...props}\n />\n );\n}\n"],"mappings":";;;;;AAAA,SAAS,kBAAkB;AAE3B,SAAS,kBAAkB,8BAA8B;AAGzD,SAAS,aAAa;AAWhB;AAKC,SAAS,eAAe,OAAgD;AAC7E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,MAEX,cAAY;AAAA,MACZ,WAAS;AAAA,MACT,iBAAe;AAAA,MACf,aAAW;AAAA,MACX,kBAAgB;AAAA,MAChB,cAAY;AAAA,MACZ,UAAS;AAAA,MACT,KAAK;AAAA,OACD;AAAA,EACN;AAEJ;","names":[]}
|
package/dist/chunk-6XDM5UCM.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ThemeProvider
|
|
3
|
-
} from "./chunk-BVBX6IJ3.js";
|
|
4
|
-
import {
|
|
5
|
-
ToastContainer
|
|
6
|
-
} from "./chunk-NJ2U2TVS.js";
|
|
7
|
-
import {
|
|
8
|
-
__objRest,
|
|
9
|
-
__spreadValues
|
|
10
|
-
} from "./chunk-N552FDTV.js";
|
|
11
|
-
|
|
12
|
-
// src/atoms/drawer.tsx
|
|
13
|
-
import { useEffect, useLayoutEffect, useRef } from "react";
|
|
14
|
-
import * as Dialog from "@radix-ui/react-dialog";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
function Root2(props) {
|
|
17
|
-
return /* @__PURE__ */ jsx(Dialog.Root, __spreadValues({}, props));
|
|
18
|
-
}
|
|
19
|
-
function Content2(props) {
|
|
20
|
-
const _a = props, { position = "right", className } = _a, rest = __objRest(_a, ["position", "className"]);
|
|
21
|
-
const container = useRef(null);
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
if (document.querySelector("main")) {
|
|
24
|
-
console.log("\uBB50\uC9C0...", document.querySelector("main"));
|
|
25
|
-
container.current = document.querySelector("main");
|
|
26
|
-
}
|
|
27
|
-
}, []);
|
|
28
|
-
useLayoutEffect(() => {
|
|
29
|
-
if (document.querySelector("main")) {
|
|
30
|
-
console.log("\uBB50\uC9C0...", document.querySelector("main"));
|
|
31
|
-
container.current = document.querySelector("main");
|
|
32
|
-
}
|
|
33
|
-
}, []);
|
|
34
|
-
return /* @__PURE__ */ jsx(Dialog.Portal, { container, children: /* @__PURE__ */ jsxs(ThemeProvider, { children: [
|
|
35
|
-
/* @__PURE__ */ jsx(Dialog.Overlay, { className: "DrawerOverlay" }),
|
|
36
|
-
/* @__PURE__ */ jsx(
|
|
37
|
-
Dialog.Content,
|
|
38
|
-
__spreadValues({
|
|
39
|
-
className: `DrawerContent ${position} ${className || ""}`
|
|
40
|
-
}, rest)
|
|
41
|
-
),
|
|
42
|
-
/* @__PURE__ */ jsx(ToastContainer, {})
|
|
43
|
-
] }) });
|
|
44
|
-
}
|
|
45
|
-
function Trigger2(props) {
|
|
46
|
-
return /* @__PURE__ */ jsx(Dialog.Trigger, __spreadValues({ asChild: true }, props));
|
|
47
|
-
}
|
|
48
|
-
var Drawer = {
|
|
49
|
-
Root: Dialog.Root,
|
|
50
|
-
Trigger: Trigger2,
|
|
51
|
-
Content: Content2,
|
|
52
|
-
Close: Dialog.Close,
|
|
53
|
-
Title: Dialog.Title,
|
|
54
|
-
Description: Dialog.Description
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
export {
|
|
58
|
-
Root2 as Root,
|
|
59
|
-
Content2 as Content,
|
|
60
|
-
Trigger2 as Trigger,
|
|
61
|
-
Drawer
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=chunk-6XDM5UCM.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/drawer.tsx"],"sourcesContent":["import React, { useEffect, useLayoutEffect, useRef } from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { ToastContainer } from './toast';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n};\n\nexport function Content(props: ContentProps): React.ReactNode {\n const { position = 'right', className, ...rest } = props;\n const container = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n if (document.querySelector('main')) {\n console.log('뭐지...', document.querySelector('main'));\n container.current = document.querySelector('main');\n }\n }, []);\n\n useLayoutEffect(() => {\n if (document.querySelector('main')) {\n console.log('뭐지...', document.querySelector('main'));\n container.current = document.querySelector('main');\n }\n }, []);\n\n return (\n <Dialog.Portal container={container}>\n <ThemeProvider>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n {...rest}\n />\n <ToastContainer />\n </ThemeProvider>\n </Dialog.Portal>\n );\n}\n\nexport function Trigger(props: Dialog.DialogTriggerProps): React.ReactNode {\n return <Dialog.Trigger asChild {...props} />;\n}\n\nexport const Drawer = {\n Root: Dialog.Root,\n Trigger,\n Content,\n Close: Dialog.Close,\n Title: Dialog.Title,\n Description: Dialog.Description,\n};\n"],"mappings":";;;;;;;;;;;;AAAA,SAAgB,WAAW,iBAAiB,cAAc;AAC1D,YAAY,YAAY;AAKf,cA4BH,YA5BG;AADF,SAASA,MAAK,OAA4C;AAC/D,SAAO,oBAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOO,SAASC,SAAQ,OAAsC;AAC5D,QAAmD,YAA3C,aAAW,SAAS,UAf9B,IAeqD,IAAT,iBAAS,IAAT,CAAlC,YAAoB;AAC5B,QAAM,YAAY,OAA8B,IAAI;AAEpD,YAAU,MAAM;AACd,QAAI,SAAS,cAAc,MAAM,GAAG;AAClC,cAAQ,IAAI,mBAAS,SAAS,cAAc,MAAM,CAAC;AACnD,gBAAU,UAAU,SAAS,cAAc,MAAM;AAAA,IACnD;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,kBAAgB,MAAM;AACpB,QAAI,SAAS,cAAc,MAAM,GAAG;AAClC,cAAQ,IAAI,mBAAS,SAAS,cAAc,MAAM,CAAC;AACnD,gBAAU,UAAU,SAAS,cAAc,MAAM;AAAA,IACnD;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,SACE,oBAAQ,eAAP,EAAc,WACb,+BAAC,iBACC;AAAA,wBAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,SACnD;AAAA,IACN;AAAA,IACA,oBAAC,kBAAe;AAAA,KAClB,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,oBAAQ,gBAAP,iBAAe,SAAO,QAAK,MAAO;AAC5C;AAEO,IAAM,SAAS;AAAA,EACpB,MAAa;AAAA,EACb,SAAAA;AAAA,EACA,SAAAD;AAAA,EACA,OAAc;AAAA,EACd,OAAc;AAAA,EACd,aAAoB;AACtB;","names":["Root","Content","Trigger"]}
|
package/dist/chunk-6YXNYTWG.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ThemeProvider
|
|
3
|
-
} from "./chunk-BVBX6IJ3.js";
|
|
4
|
-
import {
|
|
5
|
-
ToastContainer
|
|
6
|
-
} from "./chunk-NJ2U2TVS.js";
|
|
7
|
-
import {
|
|
8
|
-
__objRest,
|
|
9
|
-
__spreadValues
|
|
10
|
-
} from "./chunk-N552FDTV.js";
|
|
11
|
-
|
|
12
|
-
// src/atoms/drawer.tsx
|
|
13
|
-
import {
|
|
14
|
-
useEffect,
|
|
15
|
-
useRef
|
|
16
|
-
} from "react";
|
|
17
|
-
import * as Dialog from "@radix-ui/react-dialog";
|
|
18
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
function Root2(props) {
|
|
20
|
-
return /* @__PURE__ */ jsx(Dialog.Root, __spreadValues({}, props));
|
|
21
|
-
}
|
|
22
|
-
function Content2(props) {
|
|
23
|
-
const _a = props, { position = "right", className } = _a, rest = __objRest(_a, ["position", "className"]);
|
|
24
|
-
return /* @__PURE__ */ jsx(Dialog.Portal, { children: /* @__PURE__ */ jsxs(ThemeProvider, { children: [
|
|
25
|
-
/* @__PURE__ */ jsx(Dialog.Overlay, { className: "DrawerOverlay" }),
|
|
26
|
-
/* @__PURE__ */ jsx(
|
|
27
|
-
Dialog.Content,
|
|
28
|
-
__spreadValues({
|
|
29
|
-
className: `DrawerContent ${position} ${className || ""}`
|
|
30
|
-
}, rest)
|
|
31
|
-
),
|
|
32
|
-
/* @__PURE__ */ jsx(ToastContainer, {})
|
|
33
|
-
] }) });
|
|
34
|
-
}
|
|
35
|
-
function Trigger2(props) {
|
|
36
|
-
const container = useRef(null);
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
console.log("\uBB50\uC9C0...", document.querySelector("main"));
|
|
39
|
-
if (document.querySelector("main")) {
|
|
40
|
-
container.current = document.querySelector("main");
|
|
41
|
-
}
|
|
42
|
-
}, []);
|
|
43
|
-
return /* @__PURE__ */ jsx(Dialog.Trigger, __spreadValues({ asChild: true }, props));
|
|
44
|
-
}
|
|
45
|
-
var Drawer = {
|
|
46
|
-
Root: Dialog.Root,
|
|
47
|
-
Trigger: Trigger2,
|
|
48
|
-
Content: Content2,
|
|
49
|
-
Close: Dialog.Close,
|
|
50
|
-
Title: Dialog.Title,
|
|
51
|
-
Description: Dialog.Description
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export {
|
|
55
|
-
Root2 as Root,
|
|
56
|
-
Content2 as Content,
|
|
57
|
-
Trigger2 as Trigger,
|
|
58
|
-
Drawer
|
|
59
|
-
};
|
|
60
|
-
//# sourceMappingURL=chunk-6YXNYTWG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/drawer.tsx"],"sourcesContent":["import React, {\n useEffect,\n useInsertionEffect,\n useLayoutEffect,\n useRef,\n} from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { ToastContainer } from './toast';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n};\n\nexport function Content(props: ContentProps): React.ReactNode {\n const { position = 'right', className, ...rest } = props;\n\n return (\n <Dialog.Portal>\n <ThemeProvider>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n {...rest}\n />\n <ToastContainer />\n </ThemeProvider>\n </Dialog.Portal>\n );\n}\n\nexport function Trigger(props: Dialog.DialogTriggerProps): React.ReactNode {\n const container = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n console.log('뭐지...', document.querySelector('main'));\n if (document.querySelector('main')) {\n container.current = document.querySelector('main');\n }\n }, []);\n return <Dialog.Trigger asChild {...props} />;\n}\n\nexport const Drawer = {\n Root: Dialog.Root,\n Trigger,\n Content,\n Close: Dialog.Close,\n Title: Dialog.Title,\n Description: Dialog.Description,\n};\n"],"mappings":";;;;;;;;;;;;AAAA;AAAA,EACE;AAAA,EAGA;AAAA,OACK;AACP,YAAY,YAAY;AAKf,cAaH,YAbG;AADF,SAASA,MAAK,OAA4C;AAC/D,SAAO,oBAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOO,SAASC,SAAQ,OAAsC;AAC5D,QAAmD,YAA3C,aAAW,SAAS,UApB9B,IAoBqD,IAAT,iBAAS,IAAT,CAAlC,YAAoB;AAE5B,SACE,oBAAQ,eAAP,EACC,+BAAC,iBACC;AAAA,wBAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,SACnD;AAAA,IACN;AAAA,IACA,oBAAC,kBAAe;AAAA,KAClB,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,QAAM,YAAY,OAA8B,IAAI;AAEpD,YAAU,MAAM;AACd,YAAQ,IAAI,mBAAS,SAAS,cAAc,MAAM,CAAC;AACnD,QAAI,SAAS,cAAc,MAAM,GAAG;AAClC,gBAAU,UAAU,SAAS,cAAc,MAAM;AAAA,IACnD;AAAA,EACF,GAAG,CAAC,CAAC;AACL,SAAO,oBAAQ,gBAAP,iBAAe,SAAO,QAAK,MAAO;AAC5C;AAEO,IAAM,SAAS;AAAA,EACpB,MAAa;AAAA,EACb,SAAAA;AAAA,EACA,SAAAD;AAAA,EACA,OAAc;AAAA,EACd,OAAc;AAAA,EACd,aAAoB;AACtB;","names":["Root","Content","Trigger"]}
|
package/dist/chunk-74WGHMXE.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IconButton
|
|
3
|
-
} from "./chunk-O3DNDMV3.js";
|
|
4
|
-
import {
|
|
5
|
-
__spreadValues
|
|
6
|
-
} from "./chunk-N552FDTV.js";
|
|
7
|
-
|
|
8
|
-
// src/atoms/toast.tsx
|
|
9
|
-
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
10
|
-
import { ToastContainer as ToastifyToastContainer } from "react-toastify";
|
|
11
|
-
import { toast } from "react-toastify";
|
|
12
|
-
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
function CloseButton({ closeToast }) {
|
|
14
|
-
return /* @__PURE__ */ jsx(IconButton, { color: "gray", onClick: closeToast, variant: "ghost", children: /* @__PURE__ */ jsx(Cross1Icon, {}) });
|
|
15
|
-
}
|
|
16
|
-
function ToastContainer(props) {
|
|
17
|
-
return /* @__PURE__ */ jsx(
|
|
18
|
-
ToastifyToastContainer,
|
|
19
|
-
__spreadValues({
|
|
20
|
-
autoClose: 5e4,
|
|
21
|
-
closeButton: CloseButton,
|
|
22
|
-
closeOnClick: true,
|
|
23
|
-
draggable: true,
|
|
24
|
-
hideProgressBar: true,
|
|
25
|
-
newestOnTop: true,
|
|
26
|
-
pauseOnFocusLoss: true,
|
|
27
|
-
pauseOnHover: true,
|
|
28
|
-
position: "bottom-right",
|
|
29
|
-
rtl: false
|
|
30
|
-
}, props)
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export {
|
|
35
|
-
ToastContainer,
|
|
36
|
-
toast
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=chunk-74WGHMXE.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/toast.tsx"],"sourcesContent":["import { Cross1Icon } from '@radix-ui/react-icons';\nimport type { Theme, ToastContainerProps, TypeOptions } from 'react-toastify';\nimport { ToastContainer as ToastifyToastContainer } from 'react-toastify';\nimport { IconButton } from './icon-button';\n\nexport { toast } from 'react-toastify';\n\ninterface CloseButtonProps {\n closeToast: (e: React.MouseEvent<HTMLElement>) => void;\n type: TypeOptions;\n ariaLabel?: string;\n theme: Theme;\n}\nfunction CloseButton({ closeToast }: CloseButtonProps): React.ReactNode {\n return (\n <IconButton color=\"gray\" onClick={closeToast} variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n );\n}\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactElement {\n return (\n <ToastifyToastContainer\n autoClose={50000}\n closeButton={CloseButton}\n closeOnClick\n draggable\n hideProgressBar\n newestOnTop\n pauseOnFocusLoss\n pauseOnHover\n position=\"bottom-right\"\n rtl={false}\n {...props}\n />\n );\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,kBAAkB;AAE3B,SAAS,kBAAkB,8BAA8B;AAGzD,SAAS,aAAa;AAWhB;AAHN,SAAS,YAAY,EAAE,WAAW,GAAsC;AACtE,SACE,oBAAC,cAAW,OAAM,QAAO,SAAS,YAAY,SAAQ,SACpD,8BAAC,cAAW,GACd;AAEJ;AAEO,SAAS,eAAe,OAAgD;AAC7E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,MACX,aAAa;AAAA,MACb,cAAY;AAAA,MACZ,WAAS;AAAA,MACT,iBAAe;AAAA,MACf,aAAW;AAAA,MACX,kBAAgB;AAAA,MAChB,cAAY;AAAA,MACZ,UAAS;AAAA,MACT,KAAK;AAAA,OACD;AAAA,EACN;AAEJ;","names":[]}
|
package/dist/chunk-76NU6HMD.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ThemeProvider
|
|
3
|
-
} from "./chunk-BVBX6IJ3.js";
|
|
4
|
-
import {
|
|
5
|
-
ToastContainer
|
|
6
|
-
} from "./chunk-43UXXKFO.js";
|
|
7
|
-
import {
|
|
8
|
-
__objRest,
|
|
9
|
-
__spreadValues
|
|
10
|
-
} from "./chunk-N552FDTV.js";
|
|
11
|
-
|
|
12
|
-
// src/atoms/drawer.tsx
|
|
13
|
-
import { useEffect, useRef } from "react";
|
|
14
|
-
import * as Dialog from "@radix-ui/react-dialog";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
function Root2(props) {
|
|
17
|
-
return /* @__PURE__ */ jsx(Dialog.Root, __spreadValues({}, props));
|
|
18
|
-
}
|
|
19
|
-
function Content2(props) {
|
|
20
|
-
const _a = props, { position = "right", className } = _a, rest = __objRest(_a, ["position", "className"]);
|
|
21
|
-
const containerRef = useRef(null);
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
containerRef.current = document.getElementsByTagName("main")[0];
|
|
24
|
-
}, []);
|
|
25
|
-
return /* @__PURE__ */ jsx(Dialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ jsxs(ThemeProvider, { children: [
|
|
26
|
-
/* @__PURE__ */ jsx(Dialog.Overlay, { className: "DrawerOverlay" }),
|
|
27
|
-
/* @__PURE__ */ jsx(
|
|
28
|
-
Dialog.Content,
|
|
29
|
-
__spreadValues({
|
|
30
|
-
className: `DrawerContent ${position} ${className || ""}`
|
|
31
|
-
}, rest)
|
|
32
|
-
),
|
|
33
|
-
/* @__PURE__ */ jsx(ToastContainer, {})
|
|
34
|
-
] }) });
|
|
35
|
-
}
|
|
36
|
-
function Trigger2(props) {
|
|
37
|
-
return /* @__PURE__ */ jsx(Dialog.Trigger, __spreadValues({ asChild: true }, props));
|
|
38
|
-
}
|
|
39
|
-
var Drawer = {
|
|
40
|
-
Root: Dialog.Root,
|
|
41
|
-
Trigger: Trigger2,
|
|
42
|
-
Content: Content2,
|
|
43
|
-
Close: Dialog.Close,
|
|
44
|
-
Title: Dialog.Title,
|
|
45
|
-
Description: Dialog.Description
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export {
|
|
49
|
-
Root2 as Root,
|
|
50
|
-
Content2 as Content,
|
|
51
|
-
Trigger2 as Trigger,
|
|
52
|
-
Drawer
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=chunk-76NU6HMD.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/drawer.tsx"],"sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { ToastContainer } from './toast';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n};\n\nexport function Content(props: ContentProps): React.ReactNode {\n const { position = 'right', className, ...rest } = props;\n\n const containerRef = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n containerRef.current = document.getElementsByTagName('main')[0];\n }, []);\n\n return (\n <Dialog.Portal container={containerRef.current}>\n <ThemeProvider>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n {...rest}\n />\n <ToastContainer />\n </ThemeProvider>\n </Dialog.Portal>\n );\n}\n\nexport function Trigger(props: Dialog.DialogTriggerProps): React.ReactNode {\n return <Dialog.Trigger asChild {...props} />;\n}\n\nexport const Drawer = {\n Root: Dialog.Root,\n Trigger,\n Content,\n Close: Dialog.Close,\n Title: Dialog.Title,\n Description: Dialog.Description,\n};\n"],"mappings":";;;;;;;;;;;;AAAA,SAAgB,WAAW,cAAc;AACzC,YAAY,YAAY;AAKf,cAmBH,YAnBG;AADF,SAASA,MAAK,OAA4C;AAC/D,SAAO,oBAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOO,SAASC,SAAQ,OAAsC;AAC5D,QAAmD,YAA3C,aAAW,SAAS,UAf9B,IAeqD,IAAT,iBAAS,IAAT,CAAlC,YAAoB;AAE5B,QAAM,eAAe,OAA2B,IAAI;AAEpD,YAAU,MAAM;AACd,iBAAa,UAAU,SAAS,qBAAqB,MAAM,EAAE,CAAC;AAAA,EAChE,GAAG,CAAC,CAAC;AAEL,SACE,oBAAQ,eAAP,EAAc,WAAW,aAAa,SACrC,+BAAC,iBACC;AAAA,wBAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,SACnD;AAAA,IACN;AAAA,IACA,oBAAC,kBAAe;AAAA,KAClB,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,oBAAQ,gBAAP,iBAAe,SAAO,QAAK,MAAO;AAC5C;AAEO,IAAM,SAAS;AAAA,EACpB,MAAa;AAAA,EACb,SAAAA;AAAA,EACA,SAAAD;AAAA,EACA,OAAc;AAAA,EACd,OAAc;AAAA,EACd,aAAoB;AACtB;","names":["Root","Content","Trigger"]}
|