@tipp/ui 1.0.17 → 1.0.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/date-picker/index.cjs +24 -19
- package/dist/atoms/date-picker/index.cjs.map +1 -1
- package/dist/atoms/date-picker/index.d.cts +3 -2
- package/dist/atoms/date-picker/index.d.ts +3 -2
- package/dist/atoms/date-picker/index.js +2 -2
- package/dist/atoms/drawer.cjs +31 -7
- package/dist/atoms/drawer.cjs.map +1 -1
- package/dist/atoms/drawer.js +2 -1
- package/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/index.cjs +78 -72
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +57 -57
- package/dist/atoms/pagination.js +3 -3
- package/dist/{chunk-5IZLQXL4.js → chunk-7ANSPG2S.js} +7 -6
- package/dist/chunk-7ANSPG2S.js.map +1 -0
- package/dist/chunk-EFP5SC7R.js +49 -0
- package/dist/chunk-EFP5SC7R.js.map +1 -0
- package/dist/{chunk-L4L52UN2.js → chunk-HVUC4QCN.js} +11 -10
- package/dist/chunk-HVUC4QCN.js.map +1 -0
- package/dist/{chunk-32OZT4OK.js → chunk-PIVUWEYI.js} +6 -6
- package/dist/chunk-PIVUWEYI.js.map +1 -0
- package/dist/{chunk-7D36NQEO.js → chunk-RZZJY5ZF.js} +7 -6
- package/dist/chunk-RZZJY5ZF.js.map +1 -0
- package/dist/index.cjs +88 -82
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +61 -61
- package/dist/molecules/expand-table/index.cjs +48 -43
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +25 -25
- package/dist/molecules/expand-table/row.cjs +41 -36
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +24 -24
- package/dist/molecules/index.cjs +48 -43
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +28 -28
- package/dist/molecules/navigation.cjs +34 -29
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +25 -25
- package/package.json +1 -1
- package/src/atoms/date-picker/index.tsx +30 -40
- package/src/atoms/drawer.tsx +2 -0
- package/dist/.DS_Store +0 -0
- package/dist/chunk-2IUGEOUJ.js +0 -90
- package/dist/chunk-2IUGEOUJ.js.map +0 -1
- package/dist/chunk-32OZT4OK.js.map +0 -1
- package/dist/chunk-4ZFANZDW.js +0 -35
- package/dist/chunk-4ZFANZDW.js.map +0 -1
- package/dist/chunk-5IZLQXL4.js.map +0 -1
- package/dist/chunk-7BE66BFO.js +0 -104
- package/dist/chunk-7BE66BFO.js.map +0 -1
- package/dist/chunk-7D36NQEO.js.map +0 -1
- package/dist/chunk-7FQZ3OZO.js +0 -119
- package/dist/chunk-7FQZ3OZO.js.map +0 -1
- package/dist/chunk-ABEJI3S7.js +0 -36
- package/dist/chunk-ABEJI3S7.js.map +0 -1
- package/dist/chunk-AGMMAML3.js +0 -1
- package/dist/chunk-AGMMAML3.js.map +0 -1
- package/dist/chunk-AMXLPHAY.js +0 -47
- package/dist/chunk-AMXLPHAY.js.map +0 -1
- package/dist/chunk-ANLWB2QF.js +0 -119
- package/dist/chunk-ANLWB2QF.js.map +0 -1
- package/dist/chunk-CAJUJW32.js +0 -104
- package/dist/chunk-CAJUJW32.js.map +0 -1
- package/dist/chunk-DJC4JM23.js +0 -175
- package/dist/chunk-DJC4JM23.js.map +0 -1
- package/dist/chunk-E73BVMP5.js +0 -11
- package/dist/chunk-E73BVMP5.js.map +0 -1
- package/dist/chunk-FNESQT4Z.js +0 -119
- package/dist/chunk-FNESQT4Z.js.map +0 -1
- package/dist/chunk-FXW6IDLO.js +0 -67
- package/dist/chunk-FXW6IDLO.js.map +0 -1
- package/dist/chunk-IHQVLRFK.js +0 -43
- package/dist/chunk-IHQVLRFK.js.map +0 -1
- package/dist/chunk-IIBITN2G.js +0 -27
- package/dist/chunk-IIBITN2G.js.map +0 -1
- package/dist/chunk-JGV5KQM5.js +0 -104
- package/dist/chunk-JGV5KQM5.js.map +0 -1
- package/dist/chunk-JHBYBQ7L.js +0 -95
- package/dist/chunk-JHBYBQ7L.js.map +0 -1
- package/dist/chunk-JJ5IIAB2.js +0 -119
- package/dist/chunk-JJ5IIAB2.js.map +0 -1
- package/dist/chunk-KD2BVMEX.js +0 -119
- package/dist/chunk-KD2BVMEX.js.map +0 -1
- package/dist/chunk-L4L52UN2.js.map +0 -1
- package/dist/chunk-LKRALOEW.js +0 -45
- package/dist/chunk-LKRALOEW.js.map +0 -1
- package/dist/chunk-M65KRCQ2.js +0 -104
- package/dist/chunk-M65KRCQ2.js.map +0 -1
- package/dist/chunk-PBPRWY2V.js +0 -70
- package/dist/chunk-PBPRWY2V.js.map +0 -1
- package/dist/chunk-PF27W53W.js +0 -104
- package/dist/chunk-PF27W53W.js.map +0 -1
- package/dist/chunk-PQJ2I6L3.js +0 -67
- package/dist/chunk-PQJ2I6L3.js.map +0 -1
- package/dist/chunk-QEASTIX4.js +0 -10
- package/dist/chunk-QEASTIX4.js.map +0 -1
- package/dist/chunk-QGJ4SOE6.js +0 -86
- package/dist/chunk-QGJ4SOE6.js.map +0 -1
- package/dist/chunk-RC4WJLQA.js +0 -119
- package/dist/chunk-RC4WJLQA.js.map +0 -1
- package/dist/chunk-RN7U56ND.js +0 -90
- package/dist/chunk-RN7U56ND.js.map +0 -1
- package/dist/chunk-TW4EKVGY.js +0 -90
- package/dist/chunk-TW4EKVGY.js.map +0 -1
- package/dist/chunk-UCNZ7CO7.js +0 -90
- package/dist/chunk-UCNZ7CO7.js.map +0 -1
- package/dist/chunk-VY43KT3C.js +0 -90
- package/dist/chunk-VY43KT3C.js.map +0 -1
- package/dist/chunk-XZN2SS2K.js +0 -119
- package/dist/chunk-XZN2SS2K.js.map +0 -1
- package/dist/chunk-ZWTCGCM4.js +0 -95
- package/dist/chunk-ZWTCGCM4.js.map +0 -1
|
@@ -62,7 +62,8 @@ __export(date_picker_exports, {
|
|
|
62
62
|
DatePicker: () => DatePicker
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(date_picker_exports);
|
|
65
|
-
var
|
|
65
|
+
var import_react2 = require("react");
|
|
66
|
+
var RDP = __toESM(require("react-datepicker"), 1);
|
|
66
67
|
|
|
67
68
|
// src/atoms/icon-button.tsx
|
|
68
69
|
var import_themes = require("@radix-ui/themes");
|
|
@@ -99,23 +100,28 @@ function Heading2(props) {
|
|
|
99
100
|
|
|
100
101
|
// src/atoms/date-picker/index.tsx
|
|
101
102
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
103
|
+
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
104
|
+
var DatePicker = (0, import_react2.forwardRef)(
|
|
105
|
+
(props, ref) => {
|
|
106
|
+
const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
|
|
107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
108
|
+
ReactDatePicker,
|
|
109
|
+
__spreadProps(__spreadValues({
|
|
110
|
+
dateFormat: "yyyy/MM/dd",
|
|
111
|
+
nextMonthButtonLabel: "\uB2E4\uC74C \uB2EC",
|
|
112
|
+
placeholderText: "yyyy/mm/dd",
|
|
113
|
+
previousMonthButtonLabel: "\uC774\uC804 \uB2EC",
|
|
114
|
+
ref,
|
|
115
|
+
renderCustomHeader,
|
|
116
|
+
showPopperArrow: false
|
|
117
|
+
}, rest), {
|
|
118
|
+
calendarClassName: `tipp_datePicker_calendar ${rest.calendarClassName || ""}`,
|
|
119
|
+
wrapperClassName: `tipp_datePicker ${size} ${rest.wrapperClassName || ""}`
|
|
120
|
+
})
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
DatePicker.displayName = "DatePicker";
|
|
119
125
|
var renderCustomHeader = (props) => {
|
|
120
126
|
const {
|
|
121
127
|
date,
|
|
@@ -157,7 +163,6 @@ var renderCustomHeader = (props) => {
|
|
|
157
163
|
)
|
|
158
164
|
] });
|
|
159
165
|
};
|
|
160
|
-
DatePicker.displayName = "DatePicker";
|
|
161
166
|
// Annotate the CommonJS export names for ESM import in node:
|
|
162
167
|
0 && (module.exports = {
|
|
163
168
|
DatePicker
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/atoms/date-picker/index.tsx","../../../src/atoms/icon-button.tsx","../../../src/atoms/flex.tsx","../../../src/icon.ts","../../../src/atoms/heading.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../src/atoms/date-picker/index.tsx","../../../src/atoms/icon-button.tsx","../../../src/atoms/flex.tsx","../../../src/icon.ts","../../../src/atoms/heading.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 '../icon-button';\nimport { Flex } from '../flex';\nimport { ChevronLeftIcon, ChevronRightIcon } from '../../icon';\nimport { Heading } from '../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","export { IconButton, type IconButtonProps } from '@radix-ui/themes';\n","export { Flex, type FlexProps } from '@radix-ui/themes';\n","export {\n BookmarkIcon,\n ExitIcon,\n InfoCircledIcon,\n ExclamationTriangleIcon,\n MagnifyingGlassIcon,\n DotsHorizontalIcon,\n ChatBubbleIcon,\n PlusIcon,\n BookmarkFilledIcon,\n MixerHorizontalIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ClipboardIcon,\n BarChartIcon,\n PersonIcon,\n GearIcon,\n DotsVerticalIcon,\n Pencil1Icon,\n Cross1Icon\n} from '@radix-ui/react-icons';\n","import {\n Heading as RadixHeading,\n type HeadingProps as RadixHeadingProps,\n} from '@radix-ui/themes';\nimport { useMemo } from 'react';\n\nexport { Heading as RadixHeading } from '@radix-ui/themes';\n\nexport type HeadingProps = RadixHeadingProps & {\n variant?: 'subtitle1' | 'heading1' | 'heading2' | 'heading3';\n};\n\nexport function Heading(props: HeadingProps): React.ReactNode {\n const { size, children, variant, ...rest } = props;\n const radixSize = useMemo<RadixHeadingProps['size']>(() => {\n switch (variant) {\n case 'subtitle1':\n return '4';\n case 'heading1':\n return '7';\n case 'heading2':\n return '6';\n case 'heading3':\n return '5';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixHeading {...rest} size={radixSize}>\n {children}\n </RadixHeading>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,IAAAA,gBAAkC;AAElC,UAAqB;;;ACLrB,oBAAiD;;;ACAjD,IAAAC,iBAAqC;;;ACArC,yBAoBO;;;ACpBP,IAAAC,iBAGO;AACP,mBAAwB;AAExB,IAAAA,iBAAwC;AAwBpC;AAlBG,SAASC,SAAQ,OAAsC;AAC5D,QAA6C,YAArC,QAAM,UAAU,QAb1B,IAa+C,IAAT,iBAAS,IAAT,CAA5B,QAAM,YAAU;AACxB,QAAM,gBAAY,sBAAmC,MAAM;AACzD,YAAQ,SAAS;AAAA,MACf,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT;AACE,eAAO;AAAA,IACX;AAAA,EACF,GAAG,CAAC,MAAM,OAAO,CAAC;AAElB,SACE,4CAAC,eAAAC,SAAA,iCAAiB,OAAjB,EAAuB,MAAM,WAC3B,WACH;AAEJ;;;AJVM,IAAAC,sBAAA;AARN,IAAM,kBAAwB,YAAgB,WACvC,eACJ;AAEI,IAAM,iBAAa;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,8CAAC,uBAAK,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,uDAAC,sCAAgB;AAAA;AAAA,IACnB;AAAA,IACA,8CAAC,uBAAK,KAAI,KACR;AAAA,oDAACC,UAAA,EAAQ,SAAQ,aAAY,QAAO,WACjC;AAAA;AAAA,QAAK;AAAA,SACR;AAAA,MACA,8CAACA,UAAA,EAAQ,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,uDAAC,uCAAiB;AAAA;AAAA,IACpB;AAAA,KACF;AAEJ;","names":["import_react","import_themes","import_themes","Heading","RadixHeading","import_jsx_runtime","Heading"]}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import
|
|
2
|
+
import * as RDP from 'react-datepicker';
|
|
3
|
+
import { DatePickerProps as DatePickerProps$1 } from 'react-datepicker';
|
|
3
4
|
|
|
4
5
|
type DatePickerProps = DatePickerProps$1 & {
|
|
5
6
|
size?: 'small' | 'medium' | 'large';
|
|
6
7
|
};
|
|
7
|
-
declare const DatePicker: React__default.ForwardRefExoticComponent<DatePickerProps & React__default.RefAttributes<
|
|
8
|
+
declare const DatePicker: React__default.ForwardRefExoticComponent<DatePickerProps & React__default.RefAttributes<RDP.default>>;
|
|
8
9
|
|
|
9
10
|
export { DatePicker, type DatePickerProps };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import
|
|
2
|
+
import * as RDP from 'react-datepicker';
|
|
3
|
+
import { DatePickerProps as DatePickerProps$1 } from 'react-datepicker';
|
|
3
4
|
|
|
4
5
|
type DatePickerProps = DatePickerProps$1 & {
|
|
5
6
|
size?: 'small' | 'medium' | 'large';
|
|
6
7
|
};
|
|
7
|
-
declare const DatePicker: React__default.ForwardRefExoticComponent<DatePickerProps & React__default.RefAttributes<
|
|
8
|
+
declare const DatePicker: React__default.ForwardRefExoticComponent<DatePickerProps & React__default.RefAttributes<RDP.default>>;
|
|
8
9
|
|
|
9
10
|
export { DatePicker, type DatePickerProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DatePicker
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-25HMMI7R.js";
|
|
3
|
+
} from "../../chunk-HVUC4QCN.js";
|
|
5
4
|
import "../../chunk-HLOY6BIP.js";
|
|
6
5
|
import "../../chunk-O3DNDMV3.js";
|
|
6
|
+
import "../../chunk-25HMMI7R.js";
|
|
7
7
|
import "../../chunk-HUBPQ7ZR.js";
|
|
8
8
|
import "../../chunk-N552FDTV.js";
|
|
9
9
|
export {
|
package/dist/atoms/drawer.cjs
CHANGED
|
@@ -71,25 +71,49 @@ function ThemeProvider(props) {
|
|
|
71
71
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes.Theme, __spreadValues({ accentColor: "iris", radius: "large" }, props));
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
// src/atoms/
|
|
74
|
+
// src/atoms/toast.tsx
|
|
75
|
+
var import_react_icons = require("@radix-ui/react-icons");
|
|
76
|
+
var import_react_toastify = require("react-toastify");
|
|
77
|
+
var import_react_toastify2 = require("react-toastify");
|
|
75
78
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
79
|
+
function ToastContainer(props) {
|
|
80
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
81
|
+
import_react_toastify.ToastContainer,
|
|
82
|
+
__spreadValues({
|
|
83
|
+
autoClose: 5e3,
|
|
84
|
+
closeButton: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_icons.Cross1Icon, {}),
|
|
85
|
+
closeOnClick: true,
|
|
86
|
+
draggable: true,
|
|
87
|
+
hideProgressBar: true,
|
|
88
|
+
newestOnTop: true,
|
|
89
|
+
pauseOnFocusLoss: true,
|
|
90
|
+
pauseOnHover: true,
|
|
91
|
+
position: "bottom-right",
|
|
92
|
+
rtl: false
|
|
93
|
+
}, props)
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// src/atoms/drawer.tsx
|
|
98
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
76
99
|
function Root2(props) {
|
|
77
|
-
return /* @__PURE__ */ (0,
|
|
100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Dialog.Root, __spreadValues({}, props));
|
|
78
101
|
}
|
|
79
102
|
function Content2(props) {
|
|
80
103
|
const _a = props, { position = "right", className } = _a, rest = __objRest(_a, ["position", "className"]);
|
|
81
|
-
return /* @__PURE__ */ (0,
|
|
82
|
-
/* @__PURE__ */ (0,
|
|
83
|
-
/* @__PURE__ */ (0,
|
|
104
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Dialog.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(ThemeProvider, { children: [
|
|
105
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Dialog.Overlay, { className: "DrawerOverlay" }),
|
|
106
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
84
107
|
Dialog.Content,
|
|
85
108
|
__spreadValues({
|
|
86
109
|
className: `DrawerContent ${position} ${className || ""}`
|
|
87
110
|
}, rest)
|
|
88
|
-
)
|
|
111
|
+
),
|
|
112
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ToastContainer, {})
|
|
89
113
|
] }) });
|
|
90
114
|
}
|
|
91
115
|
function Trigger2(props) {
|
|
92
|
-
return /* @__PURE__ */ (0,
|
|
116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Dialog.Trigger, __spreadValues({ asChild: true }, props));
|
|
93
117
|
}
|
|
94
118
|
var Drawer = {
|
|
95
119
|
Root: Dialog.Root,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/atoms/drawer.tsx","../../src/theme/theme-provider.tsx"],"sourcesContent":["import React from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { ThemeProvider } from '../theme/theme-provider';\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 return (\n <Dialog.Portal>\n <ThemeProvider>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n {...rest}\n />\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","import React from 'react';\nimport { Theme } from '@radix-ui/themes';\n\ntype ThemeProps = React.ComponentProps<typeof Theme>;\n\ninterface ThemeProviderProps extends ThemeProps {\n children: React.ReactNode;\n}\n\nexport function ThemeProvider(props: ThemeProviderProps): React.ReactNode {\n return <Theme accentColor=\"iris\" radius=\"large\" {...props} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA,cAAAC;AAAA,EAAA,eAAAC;AAAA;AAAA;AACA,aAAwB;;;ACAxB,oBAAsB;AASb;AADF,SAAS,cAAc,OAA4C;AACxE,SAAO,4CAAC,sCAAM,aAAY,QAAO,QAAO,WAAY,MAAO;AAC7D;;;
|
|
1
|
+
{"version":3,"sources":["../../src/atoms/drawer.tsx","../../src/theme/theme-provider.tsx","../../src/atoms/toast.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 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 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","import React from 'react';\nimport { Theme } from '@radix-ui/themes';\n\ntype ThemeProps = React.ComponentProps<typeof Theme>;\n\ninterface ThemeProviderProps extends ThemeProps {\n children: React.ReactNode;\n}\n\nexport function ThemeProvider(props: ThemeProviderProps): React.ReactNode {\n return <Theme accentColor=\"iris\" radius=\"large\" {...props} />;\n}\n","import { Cross1Icon } from '@radix-ui/react-icons';\nimport type { ToastContainerProps } from 'react-toastify';\nimport { ToastContainer as ToastifyToastContainer } from 'react-toastify';\n\nexport { toast } from 'react-toastify';\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactNode {\n return (\n <ToastifyToastContainer\n autoClose={5000}\n closeButton={<Cross1Icon />}\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;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA,cAAAC;AAAA,EAAA,eAAAC;AAAA;AAAA;AACA,aAAwB;;;ACAxB,oBAAsB;AASb;AADF,SAAS,cAAc,OAA4C;AACxE,SAAO,4CAAC,sCAAM,aAAY,QAAO,QAAO,WAAY,MAAO;AAC7D;;;ACXA,yBAA2B;AAE3B,4BAAyD;AAEzD,IAAAC,yBAAsB;AAMH,IAAAC,sBAAA;AAJZ,SAAS,eAAe,OAA6C;AAC1E,SACE;AAAA,IAAC,sBAAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,MACX,aAAa,6CAAC,iCAAW;AAAA,MACzB,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;;;AFhBS,IAAAC,sBAAA;AADF,SAASC,MAAK,OAA4C;AAC/D,SAAO,6CAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOO,SAASC,SAAQ,OAAsC;AAC5D,QAAmD,YAA3C,aAAW,SAAS,UAf9B,IAeqD,IAAT,iBAAS,IAAT,CAAlC,YAAoB;AAC5B,SACE,6CAAQ,eAAP,EACC,wDAAC,iBACC;AAAA,iDAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,SACnD;AAAA,IACN;AAAA,IACA,6CAAC,kBAAe;AAAA,KAClB,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,6CAAQ,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":["Content","Root","Trigger","import_react_toastify","import_jsx_runtime","ToastifyToastContainer","import_jsx_runtime","Root","Content","Trigger"]}
|
package/dist/atoms/drawer.js
CHANGED
package/dist/atoms/index.cjs
CHANGED
|
@@ -283,7 +283,8 @@ var import_themes14 = require("@radix-ui/themes");
|
|
|
283
283
|
var import_themes15 = require("@radix-ui/themes");
|
|
284
284
|
|
|
285
285
|
// src/atoms/date-picker/index.tsx
|
|
286
|
-
var
|
|
286
|
+
var import_react7 = require("react");
|
|
287
|
+
var RDP = __toESM(require("react-datepicker"), 1);
|
|
287
288
|
|
|
288
289
|
// src/atoms/icon-button.tsx
|
|
289
290
|
var import_themes16 = require("@radix-ui/themes");
|
|
@@ -320,23 +321,28 @@ function Heading2(props) {
|
|
|
320
321
|
|
|
321
322
|
// src/atoms/date-picker/index.tsx
|
|
322
323
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
324
|
+
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
325
|
+
var DatePicker = (0, import_react7.forwardRef)(
|
|
326
|
+
(props, ref) => {
|
|
327
|
+
const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
|
|
328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
329
|
+
ReactDatePicker,
|
|
330
|
+
__spreadProps(__spreadValues({
|
|
331
|
+
dateFormat: "yyyy/MM/dd",
|
|
332
|
+
nextMonthButtonLabel: "\uB2E4\uC74C \uB2EC",
|
|
333
|
+
placeholderText: "yyyy/mm/dd",
|
|
334
|
+
previousMonthButtonLabel: "\uC774\uC804 \uB2EC",
|
|
335
|
+
ref,
|
|
336
|
+
renderCustomHeader,
|
|
337
|
+
showPopperArrow: false
|
|
338
|
+
}, rest), {
|
|
339
|
+
calendarClassName: `tipp_datePicker_calendar ${rest.calendarClassName || ""}`,
|
|
340
|
+
wrapperClassName: `tipp_datePicker ${size} ${rest.wrapperClassName || ""}`
|
|
341
|
+
})
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
);
|
|
345
|
+
DatePicker.displayName = "DatePicker";
|
|
340
346
|
var renderCustomHeader = (props) => {
|
|
341
347
|
const {
|
|
342
348
|
date,
|
|
@@ -378,7 +384,6 @@ var renderCustomHeader = (props) => {
|
|
|
378
384
|
)
|
|
379
385
|
] });
|
|
380
386
|
};
|
|
381
|
-
DatePicker.displayName = "DatePicker";
|
|
382
387
|
|
|
383
388
|
// src/atoms/dialog.tsx
|
|
384
389
|
var import_themes20 = require("@radix-ui/themes");
|
|
@@ -403,12 +408,12 @@ var import_themes26 = require("@radix-ui/themes");
|
|
|
403
408
|
|
|
404
409
|
// src/atoms/link.tsx
|
|
405
410
|
var import_themes27 = require("@radix-ui/themes");
|
|
406
|
-
var
|
|
411
|
+
var import_react8 = require("react");
|
|
407
412
|
var import_themes28 = require("@radix-ui/themes");
|
|
408
413
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
409
414
|
function Link(props) {
|
|
410
415
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
411
|
-
const radixSize = (0,
|
|
416
|
+
const radixSize = (0, import_react8.useMemo)(() => {
|
|
412
417
|
switch (variant) {
|
|
413
418
|
case "caption":
|
|
414
419
|
return "1";
|
|
@@ -476,12 +481,12 @@ var import_themes45 = require("@radix-ui/themes");
|
|
|
476
481
|
|
|
477
482
|
// src/atoms/typo.tsx
|
|
478
483
|
var import_themes46 = require("@radix-ui/themes");
|
|
479
|
-
var
|
|
484
|
+
var import_react9 = require("react");
|
|
480
485
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
481
|
-
var Typo = (0,
|
|
486
|
+
var Typo = (0, import_react9.forwardRef)(
|
|
482
487
|
(props, ref) => {
|
|
483
488
|
const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
|
|
484
|
-
const radixSize = (0,
|
|
489
|
+
const radixSize = (0, import_react9.useMemo)(() => {
|
|
485
490
|
if (size !== void 0)
|
|
486
491
|
return size;
|
|
487
492
|
switch (variant) {
|
|
@@ -506,20 +511,20 @@ var import_themes47 = require("@radix-ui/themes");
|
|
|
506
511
|
var import_themes48 = require("@radix-ui/themes");
|
|
507
512
|
|
|
508
513
|
// src/atoms/collapse.tsx
|
|
509
|
-
var
|
|
514
|
+
var import_react10 = require("react");
|
|
510
515
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
511
516
|
function Collapse(props) {
|
|
512
517
|
const { children } = props;
|
|
513
|
-
const [open, setOpen] = (0,
|
|
518
|
+
const [open, setOpen] = (0, import_react10.useState)(() => {
|
|
514
519
|
return props.open || props.defaultOpen || false;
|
|
515
520
|
});
|
|
516
|
-
(0,
|
|
521
|
+
(0, import_react10.useEffect)(() => {
|
|
517
522
|
if (props.open === void 0)
|
|
518
523
|
return;
|
|
519
524
|
setOpen(props.open);
|
|
520
525
|
}, [props.open]);
|
|
521
|
-
const ref = (0,
|
|
522
|
-
(0,
|
|
526
|
+
const ref = (0, import_react10.useRef)(null);
|
|
527
|
+
(0, import_react10.useEffect)(() => {
|
|
523
528
|
if (!ref.current)
|
|
524
529
|
return;
|
|
525
530
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : "0";
|
|
@@ -531,13 +536,13 @@ function Collapse(props) {
|
|
|
531
536
|
var import_themes49 = require("@radix-ui/themes");
|
|
532
537
|
|
|
533
538
|
// src/atoms/pagination.tsx
|
|
534
|
-
var
|
|
539
|
+
var import_react11 = require("react");
|
|
535
540
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
536
541
|
function Pagination(props) {
|
|
537
542
|
const { onChange, count = 0 } = props;
|
|
538
543
|
const siblingCount = 2;
|
|
539
|
-
const [page, setPage] = (0,
|
|
540
|
-
const visibleItems = (0,
|
|
544
|
+
const [page, setPage] = (0, import_react11.useState)(() => props.page || props.defaultPage || 1);
|
|
545
|
+
const visibleItems = (0, import_react11.useMemo)(() => {
|
|
541
546
|
let start = Math.max(1, page - siblingCount);
|
|
542
547
|
let end = Math.min(count, page + siblingCount);
|
|
543
548
|
if (page - siblingCount <= 0 && end < count) {
|
|
@@ -547,18 +552,18 @@ function Pagination(props) {
|
|
|
547
552
|
}
|
|
548
553
|
return Array.from({ length: end - start + 1 }, (_, i) => i + start);
|
|
549
554
|
}, [count, page]);
|
|
550
|
-
(0,
|
|
555
|
+
(0, import_react11.useEffect)(() => {
|
|
551
556
|
onChange == null ? void 0 : onChange(page);
|
|
552
557
|
}, [onChange, page]);
|
|
553
|
-
(0,
|
|
558
|
+
(0, import_react11.useEffect)(() => {
|
|
554
559
|
if (props.page) {
|
|
555
560
|
setPage(props.page);
|
|
556
561
|
}
|
|
557
562
|
}, [props.page]);
|
|
558
|
-
const onClickPrev = (0,
|
|
563
|
+
const onClickPrev = (0, import_react11.useCallback)(() => {
|
|
559
564
|
setPage((prev) => Math.max(1, prev - 1));
|
|
560
565
|
}, []);
|
|
561
|
-
const onClickNext = (0,
|
|
566
|
+
const onClickNext = (0, import_react11.useCallback)(() => {
|
|
562
567
|
setPage((prev) => Math.min(count, prev + 1));
|
|
563
568
|
}, [count]);
|
|
564
569
|
const moveButtonProps = {
|
|
@@ -570,10 +575,10 @@ function Pagination(props) {
|
|
|
570
575
|
height: 24,
|
|
571
576
|
width: 24
|
|
572
577
|
};
|
|
573
|
-
const prevDisabled = (0,
|
|
578
|
+
const prevDisabled = (0, import_react11.useMemo)(() => {
|
|
574
579
|
return page - siblingCount <= 1;
|
|
575
580
|
}, [page]);
|
|
576
|
-
const nextDisabled = (0,
|
|
581
|
+
const nextDisabled = (0, import_react11.useMemo)(() => {
|
|
577
582
|
return page + siblingCount >= count;
|
|
578
583
|
}, [count, page]);
|
|
579
584
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_themes17.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
|
|
@@ -625,15 +630,15 @@ function FieldErrorWrapper({
|
|
|
625
630
|
}
|
|
626
631
|
|
|
627
632
|
// src/atoms/ellipsis-tooltip.tsx
|
|
628
|
-
var
|
|
633
|
+
var import_react12 = require("react");
|
|
629
634
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
630
635
|
function EllipsisTooltip(props) {
|
|
631
636
|
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
632
|
-
const ref = (0,
|
|
633
|
-
const [tooltipDisplay, setTooltipDisplay] = (0,
|
|
637
|
+
const ref = (0, import_react12.useRef)(null);
|
|
638
|
+
const [tooltipDisplay, setTooltipDisplay] = (0, import_react12.useState)(
|
|
634
639
|
"none"
|
|
635
640
|
);
|
|
636
|
-
(0,
|
|
641
|
+
(0, import_react12.useEffect)(() => {
|
|
637
642
|
if (ref.current) {
|
|
638
643
|
const typo = ref.current;
|
|
639
644
|
const mouseOver = () => {
|
|
@@ -676,25 +681,49 @@ function ThemeProvider(props) {
|
|
|
676
681
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes50.Theme, __spreadValues({ accentColor: "iris", radius: "large" }, props));
|
|
677
682
|
}
|
|
678
683
|
|
|
679
|
-
// src/atoms/
|
|
684
|
+
// src/atoms/toast.tsx
|
|
685
|
+
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
686
|
+
var import_react_toastify = require("react-toastify");
|
|
687
|
+
var import_react_toastify2 = require("react-toastify");
|
|
680
688
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
689
|
+
function ToastContainer(props) {
|
|
690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
691
|
+
import_react_toastify.ToastContainer,
|
|
692
|
+
__spreadValues({
|
|
693
|
+
autoClose: 5e3,
|
|
694
|
+
closeButton: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react_icons2.Cross1Icon, {}),
|
|
695
|
+
closeOnClick: true,
|
|
696
|
+
draggable: true,
|
|
697
|
+
hideProgressBar: true,
|
|
698
|
+
newestOnTop: true,
|
|
699
|
+
pauseOnFocusLoss: true,
|
|
700
|
+
pauseOnHover: true,
|
|
701
|
+
position: "bottom-right",
|
|
702
|
+
rtl: false
|
|
703
|
+
}, props)
|
|
704
|
+
);
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
// src/atoms/drawer.tsx
|
|
708
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
681
709
|
function Root3(props) {
|
|
682
|
-
return /* @__PURE__ */ (0,
|
|
710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog2.Root, __spreadValues({}, props));
|
|
683
711
|
}
|
|
684
712
|
function Content2(props) {
|
|
685
713
|
const _a = props, { position = "right", className } = _a, rest = __objRest(_a, ["position", "className"]);
|
|
686
|
-
return /* @__PURE__ */ (0,
|
|
687
|
-
/* @__PURE__ */ (0,
|
|
688
|
-
/* @__PURE__ */ (0,
|
|
714
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(ThemeProvider, { children: [
|
|
715
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog2.Overlay, { className: "DrawerOverlay" }),
|
|
716
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
689
717
|
Dialog2.Content,
|
|
690
718
|
__spreadValues({
|
|
691
719
|
className: `DrawerContent ${position} ${className || ""}`
|
|
692
720
|
}, rest)
|
|
693
|
-
)
|
|
721
|
+
),
|
|
722
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ToastContainer, {})
|
|
694
723
|
] }) });
|
|
695
724
|
}
|
|
696
725
|
function Trigger2(props) {
|
|
697
|
-
return /* @__PURE__ */ (0,
|
|
726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog2.Trigger, __spreadValues({ asChild: true }, props));
|
|
698
727
|
}
|
|
699
728
|
var Drawer = {
|
|
700
729
|
Root: Dialog2.Root,
|
|
@@ -704,29 +733,6 @@ var Drawer = {
|
|
|
704
733
|
Title: Dialog2.Title,
|
|
705
734
|
Description: Dialog2.Description
|
|
706
735
|
};
|
|
707
|
-
|
|
708
|
-
// src/atoms/toast.tsx
|
|
709
|
-
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
710
|
-
var import_react_toastify = require("react-toastify");
|
|
711
|
-
var import_react_toastify2 = require("react-toastify");
|
|
712
|
-
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
713
|
-
function ToastContainer(props) {
|
|
714
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
715
|
-
import_react_toastify.ToastContainer,
|
|
716
|
-
__spreadValues({
|
|
717
|
-
autoClose: 5e3,
|
|
718
|
-
closeButton: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_icons2.Cross1Icon, {}),
|
|
719
|
-
closeOnClick: true,
|
|
720
|
-
draggable: true,
|
|
721
|
-
hideProgressBar: true,
|
|
722
|
-
newestOnTop: true,
|
|
723
|
-
pauseOnFocusLoss: true,
|
|
724
|
-
pauseOnHover: true,
|
|
725
|
-
position: "bottom-right",
|
|
726
|
-
rtl: false
|
|
727
|
-
}, props)
|
|
728
|
-
);
|
|
729
|
-
}
|
|
730
736
|
// Annotate the CommonJS export names for ESM import in node:
|
|
731
737
|
0 && (module.exports = {
|
|
732
738
|
AlertDialog,
|