@tipp/ui 1.4.24 → 1.4.25
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/drawer.js +2 -2
- package/dist/atoms/index.js +17 -17
- package/dist/chunk-VLEI6EVQ.js +97 -0
- package/dist/chunk-VLEI6EVQ.js.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +53 -53
- package/dist/molecules/date-picker/index.cjs +3 -3
- 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 +12 -12
- package/dist/molecules/expand-table/row.js +9 -9
- package/dist/molecules/index.cjs +3 -3
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +20 -20
- package/dist/molecules/learning-post.js +2 -2
- package/dist/molecules/navigation.js +9 -9
- package/dist/molecules/stepper.js +2 -2
- package/dist/molecules/tag-selector.js +10 -10
- package/package.json +1 -1
- package/src/molecules/date-picker/index.tsx +5 -3
package/dist/atoms/drawer.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
Drawer,
|
|
4
4
|
Root,
|
|
5
5
|
Trigger
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-UC627KGO.js";
|
|
7
|
+
import "../chunk-4Y5BEXVN.js";
|
|
7
8
|
import "../chunk-U7JPP7WJ.js";
|
|
8
9
|
import "../chunk-LQY4RKWI.js";
|
|
9
|
-
import "../chunk-4Y5BEXVN.js";
|
|
10
10
|
import "../chunk-N552FDTV.js";
|
|
11
11
|
export {
|
|
12
12
|
Content,
|
package/dist/atoms/index.js
CHANGED
|
@@ -2,6 +2,9 @@ import "../chunk-KTVZ4KLX.js";
|
|
|
2
2
|
import {
|
|
3
3
|
Form
|
|
4
4
|
} from "../chunk-OHBL3CTQ.js";
|
|
5
|
+
import {
|
|
6
|
+
Spinner
|
|
7
|
+
} from "../chunk-FR2GDOU2.js";
|
|
5
8
|
import {
|
|
6
9
|
Strong
|
|
7
10
|
} from "../chunk-74DX4CU7.js";
|
|
@@ -24,6 +27,9 @@ import {
|
|
|
24
27
|
ToastContainer,
|
|
25
28
|
toast
|
|
26
29
|
} from "../chunk-CYYWMYE7.js";
|
|
30
|
+
import {
|
|
31
|
+
RadioGroup
|
|
32
|
+
} from "../chunk-6DJOIRMF.js";
|
|
27
33
|
import {
|
|
28
34
|
Radio
|
|
29
35
|
} from "../chunk-FPD73OHW.js";
|
|
@@ -46,8 +52,8 @@ import {
|
|
|
46
52
|
Skeleton
|
|
47
53
|
} from "../chunk-5H3YPCZK.js";
|
|
48
54
|
import {
|
|
49
|
-
|
|
50
|
-
} from "../chunk-
|
|
55
|
+
Inset
|
|
56
|
+
} from "../chunk-XQOL7UBI.js";
|
|
51
57
|
import {
|
|
52
58
|
Kbd
|
|
53
59
|
} from "../chunk-TULWX7D6.js";
|
|
@@ -70,8 +76,8 @@ import {
|
|
|
70
76
|
RadioCards
|
|
71
77
|
} from "../chunk-6IVCARWS.js";
|
|
72
78
|
import {
|
|
73
|
-
|
|
74
|
-
} from "../chunk-
|
|
79
|
+
Em
|
|
80
|
+
} from "../chunk-2DZ2Y3JI.js";
|
|
75
81
|
import {
|
|
76
82
|
FieldErrorWrapper
|
|
77
83
|
} from "../chunk-DJN2IEY6.js";
|
|
@@ -91,8 +97,8 @@ import {
|
|
|
91
97
|
IconButton
|
|
92
98
|
} from "../chunk-O3DNDMV3.js";
|
|
93
99
|
import {
|
|
94
|
-
|
|
95
|
-
} from "../chunk-
|
|
100
|
+
Code
|
|
101
|
+
} from "../chunk-OHMOP5PV.js";
|
|
96
102
|
import {
|
|
97
103
|
Collapse
|
|
98
104
|
} from "../chunk-LZJR77Q2.js";
|
|
@@ -110,7 +116,7 @@ import {
|
|
|
110
116
|
Drawer,
|
|
111
117
|
Root,
|
|
112
118
|
Trigger
|
|
113
|
-
} from "../chunk-
|
|
119
|
+
} from "../chunk-UC627KGO.js";
|
|
114
120
|
import {
|
|
115
121
|
DropdownMenu
|
|
116
122
|
} from "../chunk-4WFMOFN2.js";
|
|
@@ -124,11 +130,12 @@ import {
|
|
|
124
130
|
Typo
|
|
125
131
|
} from "../chunk-52MVZ6AN.js";
|
|
126
132
|
import {
|
|
127
|
-
|
|
128
|
-
} from "../chunk-
|
|
133
|
+
Box
|
|
134
|
+
} from "../chunk-4Y5BEXVN.js";
|
|
129
135
|
import {
|
|
130
136
|
Button
|
|
131
137
|
} from "../chunk-U7JPP7WJ.js";
|
|
138
|
+
import "../chunk-LQY4RKWI.js";
|
|
132
139
|
import "../chunk-ZD7MNMED.js";
|
|
133
140
|
import {
|
|
134
141
|
Callout
|
|
@@ -145,10 +152,7 @@ import {
|
|
|
145
152
|
import {
|
|
146
153
|
Checkbox
|
|
147
154
|
} from "../chunk-LHCDPZ5E.js";
|
|
148
|
-
import
|
|
149
|
-
Code
|
|
150
|
-
} from "../chunk-OHMOP5PV.js";
|
|
151
|
-
import "../chunk-LQY4RKWI.js";
|
|
155
|
+
import "../chunk-F77ES5Y3.js";
|
|
152
156
|
import {
|
|
153
157
|
AlertDialog
|
|
154
158
|
} from "../chunk-J242TTFH.js";
|
|
@@ -167,10 +171,6 @@ import {
|
|
|
167
171
|
import {
|
|
168
172
|
Blockquote
|
|
169
173
|
} from "../chunk-YGL6SWKN.js";
|
|
170
|
-
import {
|
|
171
|
-
Box
|
|
172
|
-
} from "../chunk-4Y5BEXVN.js";
|
|
173
|
-
import "../chunk-F77ES5Y3.js";
|
|
174
174
|
import "../chunk-N552FDTV.js";
|
|
175
175
|
export {
|
|
176
176
|
AlertDialog,
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Heading
|
|
6
|
+
} from "./chunk-HK224ADT.js";
|
|
7
|
+
import {
|
|
8
|
+
IconButton
|
|
9
|
+
} from "./chunk-O3DNDMV3.js";
|
|
10
|
+
import {
|
|
11
|
+
ChevronLeftIcon,
|
|
12
|
+
ChevronRightIcon
|
|
13
|
+
} from "./chunk-F77ES5Y3.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 ? date.getFullYear() : "-";
|
|
61
|
+
const month = date ? date.getMonth() + 1 : "-";
|
|
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: "heading4", weight: "regular", children: [
|
|
74
|
+
year,
|
|
75
|
+
"\uB144"
|
|
76
|
+
] }),
|
|
77
|
+
/* @__PURE__ */ jsxs(Heading, { variant: "heading4", weight: "regular", children: [
|
|
78
|
+
month,
|
|
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-VLEI6EVQ.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.ReactElement => {\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 // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- date가 undefined일 수 있음\n const year = date ? date.getFullYear() : '-';\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- date가 undefined일 수 있음\n const month = date ? date.getMonth() + 1 : '-';\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=\"heading4\" weight=\"regular\">\n {year}년\n </Heading>\n <Heading variant=\"heading4\" weight=\"regular\">\n {month}월\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,cA8CE,YA9CF;AAhBN,eAAe,MAAM,IAAI;AACzB,iBAAiB,IAAI;AAOrB,IAAM,kBAAwB,YAAgB,WACvC,eACJ;AAEI,IAAM,aAAa;AAAA,EACxB,CAAC,OAAO,QAA4B;AAClC,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;AAGJ,QAAM,OAAO,OAAO,KAAK,YAAY,IAAI;AAEzC,QAAM,QAAQ,OAAO,KAAK,SAAS,IAAI,IAAI;AAE3C,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,YAAW,QAAO,WAChC;AAAA;AAAA,QAAK;AAAA,SACR;AAAA,MACA,qBAAC,WAAQ,SAAQ,YAAW,QAAO,WAChC;AAAA;AAAA,QAAM;AAAA,SACT;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
|
@@ -1494,8 +1494,8 @@ var renderCustomHeader = (props) => {
|
|
|
1494
1494
|
prevMonthButtonDisabled,
|
|
1495
1495
|
nextMonthButtonDisabled
|
|
1496
1496
|
} = props;
|
|
1497
|
-
const year = date.getFullYear();
|
|
1498
|
-
const month = date.getMonth();
|
|
1497
|
+
const year = date ? date.getFullYear() : "-";
|
|
1498
|
+
const month = date ? date.getMonth() + 1 : "-";
|
|
1499
1499
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_themes19.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
|
|
1500
1500
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1501
1501
|
import_themes24.IconButton,
|
|
@@ -1512,7 +1512,7 @@ var renderCustomHeader = (props) => {
|
|
|
1512
1512
|
"\uB144"
|
|
1513
1513
|
] }),
|
|
1514
1514
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1515
|
-
month
|
|
1515
|
+
month,
|
|
1516
1516
|
"\uC6D4"
|
|
1517
1517
|
] })
|
|
1518
1518
|
] }),
|