@tipp/ui 1.1.19 → 1.1.20

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.
@@ -1,13 +1,4 @@
1
1
  import "../chunk-2ANGYYEV.js";
2
- import {
3
- TextField
4
- } from "../chunk-JPIZP2PZ.js";
5
- import {
6
- Separator
7
- } from "../chunk-HYITAA4J.js";
8
- import {
9
- Skeleton
10
- } from "../chunk-5H3YPCZK.js";
11
2
  import {
12
3
  Spinner
13
4
  } from "../chunk-FR2GDOU2.js";
@@ -27,11 +18,8 @@ import {
27
18
  TextArea
28
19
  } from "../chunk-ILRUXI2E.js";
29
20
  import {
30
- Quote
31
- } from "../chunk-YO3BQW6S.js";
32
- import {
33
- RadioCards
34
- } from "../chunk-6IVCARWS.js";
21
+ TextField
22
+ } from "../chunk-JPIZP2PZ.js";
35
23
  import {
36
24
  RadioGroup
37
25
  } from "../chunk-6DJOIRMF.js";
@@ -50,6 +38,12 @@ import {
50
38
  import {
51
39
  Select
52
40
  } from "../chunk-3JRNKBMN.js";
41
+ import {
42
+ Separator
43
+ } from "../chunk-HYITAA4J.js";
44
+ import {
45
+ Skeleton
46
+ } from "../chunk-5H3YPCZK.js";
53
47
  import {
54
48
  Inset
55
49
  } from "../chunk-XQOL7UBI.js";
@@ -61,7 +55,7 @@ import {
61
55
  } from "../chunk-XQOZWYUA.js";
62
56
  import {
63
57
  Pagination
64
- } from "../chunk-PETYVU4R.js";
58
+ } from "../chunk-IIU2TK3X.js";
65
59
  import {
66
60
  Popover
67
61
  } from "../chunk-5AVBYDPB.js";
@@ -69,23 +63,14 @@ import {
69
63
  Progress
70
64
  } from "../chunk-365QMK4D.js";
71
65
  import {
72
- EllipsisTooltip
73
- } from "../chunk-4IKPNQV5.js";
74
- import {
75
- Tooltip
76
- } from "../chunk-ACVANQJ4.js";
66
+ Quote
67
+ } from "../chunk-YO3BQW6S.js";
77
68
  import {
78
- Em
79
- } from "../chunk-2DZ2Y3JI.js";
69
+ RadioCards
70
+ } from "../chunk-6IVCARWS.js";
80
71
  import {
81
72
  FieldErrorWrapper
82
73
  } from "../chunk-CNQ7RNNY.js";
83
- import {
84
- Typo
85
- } from "../chunk-O3XTRD7R.js";
86
- import {
87
- Flex
88
- } from "../chunk-25HMMI7R.js";
89
74
  import {
90
75
  Form
91
76
  } from "../chunk-2CVXGGI5.js";
@@ -98,12 +83,6 @@ import {
98
83
  import {
99
84
  HoverCard
100
85
  } from "../chunk-O3T3TM3V.js";
101
- import {
102
- Checkbox
103
- } from "../chunk-JEHDCZQU.js";
104
- import {
105
- Code
106
- } from "../chunk-OHMOP5PV.js";
107
86
  import {
108
87
  Collapse
109
88
  } from "../chunk-KGLIAFTI.js";
@@ -134,11 +113,17 @@ import {
134
113
  DropdownMenu
135
114
  } from "../chunk-4WFMOFN2.js";
136
115
  import {
137
- Badge
138
- } from "../chunk-5JJ3GWKF.js";
116
+ EllipsisTooltip
117
+ } from "../chunk-4IKPNQV5.js";
139
118
  import {
140
- Blockquote
141
- } from "../chunk-YGL6SWKN.js";
119
+ Tooltip
120
+ } from "../chunk-ACVANQJ4.js";
121
+ import {
122
+ Typo
123
+ } from "../chunk-O3XTRD7R.js";
124
+ import {
125
+ Em
126
+ } from "../chunk-2DZ2Y3JI.js";
142
127
  import {
143
128
  Box
144
129
  } from "../chunk-4Y5BEXVN.js";
@@ -157,7 +142,15 @@ import {
157
142
  import {
158
143
  CheckboxGroup
159
144
  } from "../chunk-IQEEPHOY.js";
160
- import "../chunk-THNKD5G7.js";
145
+ import {
146
+ Checkbox
147
+ } from "../chunk-JEHDCZQU.js";
148
+ import {
149
+ Code
150
+ } from "../chunk-OHMOP5PV.js";
151
+ import {
152
+ Flex
153
+ } from "../chunk-25HMMI7R.js";
161
154
  import {
162
155
  AlertDialog
163
156
  } from "../chunk-J242TTFH.js";
@@ -167,6 +160,13 @@ import {
167
160
  import {
168
161
  Avatar
169
162
  } from "../chunk-CZEGRZBK.js";
163
+ import {
164
+ Badge
165
+ } from "../chunk-5JJ3GWKF.js";
166
+ import {
167
+ Blockquote
168
+ } from "../chunk-YGL6SWKN.js";
169
+ import "../chunk-THNKD5G7.js";
170
170
  import "../chunk-N552FDTV.js";
171
171
  export {
172
172
  AlertDialog,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Pagination
3
- } from "../chunk-PETYVU4R.js";
3
+ } from "../chunk-IIU2TK3X.js";
4
+ import "../chunk-O3DNDMV3.js";
4
5
  import "../chunk-O3XTRD7R.js";
5
6
  import "../chunk-25HMMI7R.js";
6
- import "../chunk-O3DNDMV3.js";
7
7
  import "../chunk-THNKD5G7.js";
8
8
  import "../chunk-N552FDTV.js";
9
9
  export {
@@ -0,0 +1,59 @@
1
+ import {
2
+ ToastContainer
3
+ } from "./chunk-NJ2U2TVS.js";
4
+ import {
5
+ ThemeProvider
6
+ } from "./chunk-BVBX6IJ3.js";
7
+ import {
8
+ __objRest,
9
+ __spreadProps,
10
+ __spreadValues
11
+ } from "./chunk-N552FDTV.js";
12
+
13
+ // src/atoms/drawer.tsx
14
+ import { useEffect, useRef } from "react";
15
+ import * as Dialog from "@radix-ui/react-dialog";
16
+ import { jsx, jsxs } from "react/jsx-runtime";
17
+ function Root2(props) {
18
+ return /* @__PURE__ */ jsx(Dialog.Root, __spreadValues({}, props));
19
+ }
20
+ function Content2(props) {
21
+ const _a = props, { position = "right", className, children } = _a, rest = __objRest(_a, ["position", "className", "children"]);
22
+ const containerRef = useRef(null);
23
+ useEffect(() => {
24
+ containerRef.current = document.getElementsByClassName("radix-themes")[0];
25
+ }, []);
26
+ return /* @__PURE__ */ jsx(Dialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ jsxs(ThemeProvider, { children: [
27
+ /* @__PURE__ */ jsx(Dialog.Overlay, { className: "DrawerOverlay" }),
28
+ /* @__PURE__ */ jsxs(
29
+ Dialog.Content,
30
+ __spreadProps(__spreadValues({
31
+ className: `DrawerContent ${position} ${className || ""}`
32
+ }, rest), {
33
+ children: [
34
+ /* @__PURE__ */ jsx(ToastContainer, {}),
35
+ children
36
+ ]
37
+ })
38
+ )
39
+ ] }) });
40
+ }
41
+ function Trigger2(props) {
42
+ return /* @__PURE__ */ jsx(Dialog.Trigger, __spreadValues({ asChild: true }, props));
43
+ }
44
+ var Drawer = {
45
+ Root: Dialog.Root,
46
+ Trigger: Trigger2,
47
+ Content: Content2,
48
+ Close: Dialog.Close,
49
+ Title: Dialog.Title,
50
+ Description: Dialog.Description
51
+ };
52
+
53
+ export {
54
+ Root2 as Root,
55
+ Content2 as Content,
56
+ Trigger2 as Trigger,
57
+ Drawer
58
+ };
59
+ //# sourceMappingURL=chunk-HMP3DMRR.js.map
@@ -0,0 +1 @@
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, children, ...rest } = props;\n\n const containerRef = useRef<Element | null>(null);\n\n useEffect(() => {\n containerRef.current = document.getElementsByClassName('radix-themes')[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 {children}\n </Dialog.Content>\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,cAqBD,YArBC;AADF,SAASA,MAAK,OAA4C;AAC/D,SAAO,oBAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOO,SAASC,SAAQ,OAAsC;AAC5D,QAA6D,YAArD,aAAW,SAAS,WAAW,SAfzC,IAe+D,IAAT,iBAAS,IAAT,CAA5C,YAAoB,aAAW;AAEvC,QAAM,eAAe,OAAuB,IAAI;AAEhD,YAAU,MAAM;AACd,iBAAa,UAAU,SAAS,uBAAuB,cAAc,EAAE,CAAC;AAAA,EAC1E,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,OAFL;AAAA,QAIC;AAAA,8BAAC,kBAAe;AAAA,UACf;AAAA;AAAA;AAAA,IACH;AAAA,KACF,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"]}
@@ -0,0 +1,63 @@
1
+ import {
2
+ Typo
3
+ } from "./chunk-O3XTRD7R.js";
4
+ import {
5
+ Button
6
+ } from "./chunk-RCWGUTYK.js";
7
+ import {
8
+ Flex
9
+ } from "./chunk-25HMMI7R.js";
10
+
11
+ // src/molecules/navigation.tsx
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ function Navigation({
14
+ items,
15
+ fontColor,
16
+ backgroundColor,
17
+ activeKey
18
+ }) {
19
+ return /* @__PURE__ */ jsx(
20
+ Flex,
21
+ {
22
+ direction: "column",
23
+ gap: "4",
24
+ pr: "3",
25
+ style: {
26
+ color: fontColor || "var(--white-a12)",
27
+ backgroundColor: backgroundColor || "var(--black-a12)"
28
+ },
29
+ children: items == null ? void 0 : items.map((item) => {
30
+ const { key, title, icon, itemRender, onClick, children } = item;
31
+ return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
32
+ itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
33
+ icon,
34
+ /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
35
+ ] }),
36
+ children == null ? void 0 : children.map((menu) => {
37
+ return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ jsx(
38
+ Button,
39
+ {
40
+ className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
41
+ ml: "37px",
42
+ onClick: menu.onClick,
43
+ size: "large",
44
+ style: {
45
+ color: "var(--white-a12)",
46
+ height: "32px",
47
+ paddingLeft: "var(--space-2)"
48
+ },
49
+ children: menu.title
50
+ },
51
+ menu.key
52
+ );
53
+ })
54
+ ] }, key);
55
+ })
56
+ }
57
+ );
58
+ }
59
+
60
+ export {
61
+ Navigation
62
+ };
63
+ //# sourceMappingURL=chunk-NUOU5BAA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Button, Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n backgroundColor?: string;\n activeKey?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n backgroundColor,\n activeKey,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n pr=\"3\"\n style={{\n color: fontColor || 'var(--white-a12)',\n backgroundColor: backgroundColor || 'var(--black-a12)',\n }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex align=\"center\" gap=\"3\" height=\"36px\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((menu) => {\n return menu.itemRender ? (\n menu.itemRender(menu)\n ) : (\n <Button\n className={`tipp-navigation-button ${activeKey === menu.key ? 'active' : ''}`}\n key={menu.key}\n ml=\"37px\"\n onClick={menu.onClick}\n size=\"large\"\n style={{\n color: 'var(--white-a12)',\n height: '32px',\n paddingLeft: 'var(--space-2)',\n }}\n >\n {menu.title}\n </Button>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;;;;AA0Cc,SAEE,KAFF;AAvBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,IAAG;AAAA,MACH,OAAO;AAAA,QACL,OAAO,aAAa;AAAA,QACpB,iBAAiB,mBAAmB;AAAA,MACtC;AAAA,MAEC,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,QAAO,QAAO,IAAG,KAAI,IAAG,KAClD;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,SAAS;AACvB,mBAAO,KAAK,aACV,KAAK,WAAW,IAAI,IAEpB;AAAA,cAAC;AAAA;AAAA,gBACC,WAAW,0BAA0B,cAAc,KAAK,MAAM,WAAW,EAAE;AAAA,gBAE3E,IAAG;AAAA,gBACH,SAAS,KAAK;AAAA,gBACd,MAAK;AAAA,gBACL,OAAO;AAAA,kBACL,OAAO;AAAA,kBACP,QAAQ;AAAA,kBACR,aAAa;AAAA,gBACf;AAAA,gBAEC,eAAK;AAAA;AAAA,cAVD,KAAK;AAAA,YAWZ;AAAA,UAEJ;AAAA,aA5B4B,GA6B9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -0,0 +1,97 @@
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-THNKD5G7.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 { registerLocale, setDefaultLocale } from "react-datepicker";
24
+ import { ko as fnKo } from "date-fns/locale";
25
+ import { jsx, jsxs } from "react/jsx-runtime";
26
+ registerLocale("ko", fnKo);
27
+ setDefaultLocale("ko");
28
+ var ReactDatePicker = RDP.default.default || RDP.default || RDP;
29
+ var DatePicker = forwardRef(
30
+ (props, ref) => {
31
+ const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
32
+ return /* @__PURE__ */ jsx(
33
+ ReactDatePicker,
34
+ __spreadProps(__spreadValues({
35
+ dateFormat: "yyyy/MM/dd",
36
+ nextMonthButtonLabel: "\uB2E4\uC74C \uB2EC",
37
+ placeholderText: "yyyy/mm/dd",
38
+ previousMonthButtonLabel: "\uC774\uC804 \uB2EC",
39
+ ref,
40
+ renderCustomHeader,
41
+ showPopperArrow: false,
42
+ timeIntervals: 10
43
+ }, rest), {
44
+ calendarClassName: `tipp_datePicker_calendar ${rest.calendarClassName || ""}`,
45
+ timeCaption: "\uC2DC\uAC04",
46
+ wrapperClassName: `tipp_datePicker ${size} ${rest.wrapperClassName || ""}`
47
+ })
48
+ );
49
+ }
50
+ );
51
+ DatePicker.displayName = "DatePicker";
52
+ var renderCustomHeader = (props) => {
53
+ const {
54
+ date,
55
+ decreaseMonth,
56
+ increaseMonth,
57
+ prevMonthButtonDisabled,
58
+ nextMonthButtonDisabled
59
+ } = props;
60
+ const year = date.getFullYear();
61
+ const month = date.getMonth();
62
+ return /* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
63
+ /* @__PURE__ */ jsx(
64
+ IconButton,
65
+ {
66
+ disabled: prevMonthButtonDisabled,
67
+ onClick: decreaseMonth,
68
+ variant: "ghost",
69
+ children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
70
+ }
71
+ ),
72
+ /* @__PURE__ */ jsxs(Flex, { gap: "3", children: [
73
+ /* @__PURE__ */ jsxs(Heading, { variant: "subtitle1", weight: "regular", children: [
74
+ year,
75
+ "\uB144"
76
+ ] }),
77
+ /* @__PURE__ */ jsxs(Heading, { variant: "subtitle1", weight: "regular", children: [
78
+ month + 1,
79
+ "\uC6D4"
80
+ ] })
81
+ ] }),
82
+ /* @__PURE__ */ jsx(
83
+ IconButton,
84
+ {
85
+ disabled: nextMonthButtonDisabled,
86
+ onClick: increaseMonth,
87
+ variant: "ghost",
88
+ children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
89
+ }
90
+ )
91
+ ] });
92
+ };
93
+
94
+ export {
95
+ DatePicker
96
+ };
97
+ //# sourceMappingURL=chunk-R2BNO6TR.js.map
@@ -0,0 +1 @@
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 { registerLocale, setDefaultLocale } from 'react-datepicker';\nimport { ko as fnKo } from 'date-fns/locale';\nimport { IconButton } from '../../atoms/icon-button';\nimport { Flex } from '../../atoms/flex';\nimport { ChevronLeftIcon, ChevronRightIcon } from '../../icon';\nimport { Heading } from '../../atoms/heading';\n\nregisterLocale('ko', fnKo);\nsetDefaultLocale('ko');\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 timeIntervals={10}\n {...rest}\n calendarClassName={`tipp_datePicker_calendar ${rest.calendarClassName || ''}`}\n timeCaption=\"시간\"\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;AACrB,SAAS,gBAAgB,wBAAwB;AACjD,SAAS,MAAM,YAAY;AAsBrB,cA4CE,YA5CF;AAhBN,eAAe,MAAM,IAAI;AACzB,iBAAiB,IAAI;AAOrB,IAAM,kBAAwB,YAAgB,WACvC,eACJ;AAEI,IAAM,aAAa;AAAA,EACxB,CAAC,OAAO,QAAyB;AAC/B,UAAqC,YAA7B,SAAO,SA3BnB,IA2ByC,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,QACjB,eAAe;AAAA,SACX,OATL;AAAA,QAUC,mBAAmB,4BAA4B,KAAK,qBAAqB,EAAE;AAAA,QAC3E,aAAY;AAAA,QACZ,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/index.cjs CHANGED
@@ -154,7 +154,6 @@ __export(src_exports, {
154
154
  Typo: () => Typo,
155
155
  createColumnHelper: () => import_react_table2.createColumnHelper,
156
156
  getCellAlign: () => getCellAlign,
157
- registerLocale: () => import_react_datepicker.registerLocale,
158
157
  scrollTo: () => scrollTo,
159
158
  toast: () => import_react_toastify2.toast,
160
159
  uiProps: () => uiProps,
@@ -1249,7 +1248,10 @@ function Navigation({
1249
1248
  var import_react20 = require("react");
1250
1249
  var RDP = __toESM(require("react-datepicker"), 1);
1251
1250
  var import_react_datepicker = require("react-datepicker");
1251
+ var import_locale = require("date-fns/locale");
1252
1252
  var import_jsx_runtime26 = require("react/jsx-runtime");
1253
+ (0, import_react_datepicker.registerLocale)("ko", import_locale.ko);
1254
+ (0, import_react_datepicker.setDefaultLocale)("ko");
1253
1255
  var ReactDatePicker = RDP.default.default || RDP.default || RDP;
1254
1256
  var DatePicker = (0, import_react20.forwardRef)(
1255
1257
  (props, ref) => {
@@ -1258,7 +1260,6 @@ var DatePicker = (0, import_react20.forwardRef)(
1258
1260
  ReactDatePicker,
1259
1261
  __spreadProps(__spreadValues({
1260
1262
  dateFormat: "yyyy/MM/dd",
1261
- locale: "ko",
1262
1263
  nextMonthButtonLabel: "\uB2E4\uC74C \uB2EC",
1263
1264
  placeholderText: "yyyy/mm/dd",
1264
1265
  previousMonthButtonLabel: "\uC774\uC804 \uB2EC",
@@ -1681,7 +1682,6 @@ function scrollTo(element, targetPosition, duration) {
1681
1682
  Typo,
1682
1683
  createColumnHelper,
1683
1684
  getCellAlign,
1684
- registerLocale,
1685
1685
  scrollTo,
1686
1686
  toast,
1687
1687
  uiProps,