@tipp/ui 1.3.1 → 1.3.2

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,8 +1,8 @@
1
1
  import {
2
2
  FieldErrorWrapper
3
- } from "../chunk-DJN2IEY6.js";
4
- import "../chunk-25HMMI7R.js";
3
+ } from "../chunk-QDZS4B6A.js";
5
4
  import "../chunk-52MVZ6AN.js";
5
+ import "../chunk-25HMMI7R.js";
6
6
  import "../chunk-N552FDTV.js";
7
7
  export {
8
8
  FieldErrorWrapper
@@ -1,10 +1,4 @@
1
1
  import "../chunk-76JGDATZ.js";
2
- import {
3
- Spinner
4
- } from "../chunk-FR2GDOU2.js";
5
- import {
6
- Strong
7
- } from "../chunk-74DX4CU7.js";
8
2
  import {
9
3
  Switch
10
4
  } from "../chunk-OYM4XCHQ.js";
@@ -24,12 +18,6 @@ import {
24
18
  ToastContainer,
25
19
  toast
26
20
  } from "../chunk-CYYWMYE7.js";
27
- import {
28
- RadioGroup
29
- } from "../chunk-6DJOIRMF.js";
30
- import {
31
- Radio
32
- } from "../chunk-FPD73OHW.js";
33
21
  import {
34
22
  ScrollArea
35
23
  } from "../chunk-ZKZDVS7G.js";
@@ -49,17 +37,17 @@ import {
49
37
  Skeleton
50
38
  } from "../chunk-5H3YPCZK.js";
51
39
  import {
52
- Inset
53
- } from "../chunk-XQOL7UBI.js";
40
+ Spinner
41
+ } from "../chunk-FR2GDOU2.js";
54
42
  import {
55
- Kbd
56
- } from "../chunk-TULWX7D6.js";
43
+ Strong
44
+ } from "../chunk-74DX4CU7.js";
57
45
  import {
58
46
  Link
59
47
  } from "../chunk-SIM6HKVI.js";
60
48
  import {
61
49
  Pagination
62
- } from "../chunk-QVQCTPDU.js";
50
+ } from "../chunk-RJMSUTBQ.js";
63
51
  import {
64
52
  Popover
65
53
  } from "../chunk-5AVBYDPB.js";
@@ -73,11 +61,11 @@ import {
73
61
  RadioCards
74
62
  } from "../chunk-6IVCARWS.js";
75
63
  import {
76
- FieldErrorWrapper
77
- } from "../chunk-DJN2IEY6.js";
64
+ RadioGroup
65
+ } from "../chunk-6DJOIRMF.js";
78
66
  import {
79
- Flex
80
- } from "../chunk-25HMMI7R.js";
67
+ Radio
68
+ } from "../chunk-FPD73OHW.js";
81
69
  import {
82
70
  Form
83
71
  } from "../chunk-2CVXGGI5.js";
@@ -94,11 +82,11 @@ import {
94
82
  IconButton
95
83
  } from "../chunk-O3DNDMV3.js";
96
84
  import {
97
- Collapse
98
- } from "../chunk-LZJR77Q2.js";
85
+ Inset
86
+ } from "../chunk-XQOL7UBI.js";
99
87
  import {
100
- Container
101
- } from "../chunk-Q37G2GS6.js";
88
+ Kbd
89
+ } from "../chunk-TULWX7D6.js";
102
90
  import {
103
91
  DataList
104
92
  } from "../chunk-VTJZMOSP.js";
@@ -120,18 +108,18 @@ import {
120
108
  import {
121
109
  Tooltip
122
110
  } from "../chunk-ACVANQJ4.js";
123
- import {
124
- Typo
125
- } from "../chunk-52MVZ6AN.js";
126
111
  import {
127
112
  Em
128
113
  } from "../chunk-2DZ2Y3JI.js";
129
114
  import {
130
- Box
131
- } from "../chunk-4Y5BEXVN.js";
115
+ FieldErrorWrapper
116
+ } from "../chunk-QDZS4B6A.js";
132
117
  import {
133
- Button
134
- } from "../chunk-P3YCIJUP.js";
118
+ Typo
119
+ } from "../chunk-52MVZ6AN.js";
120
+ import {
121
+ Flex
122
+ } from "../chunk-25HMMI7R.js";
135
123
  import {
136
124
  Callout
137
125
  } from "../chunk-B6XJN6EC.js";
@@ -150,7 +138,12 @@ import {
150
138
  import {
151
139
  Code
152
140
  } from "../chunk-OHMOP5PV.js";
153
- import "../chunk-66C4U3BG.js";
141
+ import {
142
+ Collapse
143
+ } from "../chunk-LZJR77Q2.js";
144
+ import {
145
+ Container
146
+ } from "../chunk-Q37G2GS6.js";
154
147
  import {
155
148
  AlertDialog
156
149
  } from "../chunk-J242TTFH.js";
@@ -169,6 +162,13 @@ import {
169
162
  import {
170
163
  Blockquote
171
164
  } from "../chunk-YGL6SWKN.js";
165
+ import {
166
+ Box
167
+ } from "../chunk-4Y5BEXVN.js";
168
+ import {
169
+ Button
170
+ } from "../chunk-P3YCIJUP.js";
171
+ import "../chunk-66C4U3BG.js";
172
172
  import "../chunk-N552FDTV.js";
173
173
  export {
174
174
  AlertDialog,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Pagination
3
- } from "../chunk-QVQCTPDU.js";
4
- import "../chunk-25HMMI7R.js";
3
+ } from "../chunk-RJMSUTBQ.js";
5
4
  import "../chunk-O3DNDMV3.js";
6
5
  import "../chunk-52MVZ6AN.js";
6
+ import "../chunk-25HMMI7R.js";
7
7
  import "../chunk-66C4U3BG.js";
8
8
  import "../chunk-N552FDTV.js";
9
9
  export {
@@ -0,0 +1,164 @@
1
+ import {
2
+ ThemeProvider
3
+ } from "./chunk-BVNXAZ4W.js";
4
+ import {
5
+ Grid
6
+ } from "./chunk-EGEQY3KT.js";
7
+ import {
8
+ Heading
9
+ } from "./chunk-HK224ADT.js";
10
+ import {
11
+ Typo
12
+ } from "./chunk-52MVZ6AN.js";
13
+ import {
14
+ Flex
15
+ } from "./chunk-25HMMI7R.js";
16
+ import {
17
+ AspectRatio
18
+ } from "./chunk-EAXUQEO5.js";
19
+ import {
20
+ Badge
21
+ } from "./chunk-EWD4AO5N.js";
22
+ import {
23
+ Box
24
+ } from "./chunk-4Y5BEXVN.js";
25
+ import {
26
+ Button
27
+ } from "./chunk-P3YCIJUP.js";
28
+ import {
29
+ __spreadProps,
30
+ __spreadValues
31
+ } from "./chunk-N552FDTV.js";
32
+
33
+ // src/molecules/learning-post.tsx
34
+ import { jsx, jsxs } from "react/jsx-runtime";
35
+ function LearningPost(props) {
36
+ const {
37
+ defaultThemeProps,
38
+ html,
39
+ tags,
40
+ title,
41
+ metaDescription,
42
+ imageComp,
43
+ onPageBack,
44
+ children
45
+ } = props;
46
+ return /* @__PURE__ */ jsx(
47
+ ThemeProvider,
48
+ __spreadProps(__spreadValues({}, defaultThemeProps), {
49
+ accentColor: "iris",
50
+ scaling: "110%",
51
+ style: {},
52
+ children: html ? /* @__PURE__ */ jsxs(
53
+ Grid,
54
+ {
55
+ columns: { initial: "1", md: "130px 1fr 130px" },
56
+ gap: { initial: "2", md: "5" },
57
+ height: "100%",
58
+ justify: "center",
59
+ pb: "160px",
60
+ position: "relative",
61
+ px: "4",
62
+ width: "100%",
63
+ children: [
64
+ /* @__PURE__ */ jsx("div", {}),
65
+ /* @__PURE__ */ jsxs(
66
+ Flex,
67
+ {
68
+ align: "center",
69
+ direction: "column",
70
+ maxWidth: "880px",
71
+ mt: { initial: "3", md: "8" },
72
+ overflow: "hidden",
73
+ width: "100%",
74
+ children: [
75
+ /* @__PURE__ */ jsxs(Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
76
+ /* @__PURE__ */ jsxs(
77
+ Grid,
78
+ {
79
+ gap: "3",
80
+ mb: { initial: "4", sm: "0" },
81
+ style: { alignSelf: "flex-start" },
82
+ children: [
83
+ /* @__PURE__ */ jsx(
84
+ Heading,
85
+ {
86
+ style: {
87
+ fontSize: "2.4rem",
88
+ lineHeight: 1.25,
89
+ wordBreak: "keep-all"
90
+ },
91
+ variant: "heading1",
92
+ children: title
93
+ }
94
+ ),
95
+ /* @__PURE__ */ jsx(Typo, { children: metaDescription }),
96
+ /* @__PURE__ */ jsx(Flex, { gap: "1", wrap: "wrap", children: tags == null ? void 0 : tags.map((el) => {
97
+ var _a;
98
+ if ((_a = el.name) == null ? void 0 : _a.startsWith("filter"))
99
+ return;
100
+ return /* @__PURE__ */ jsx(Badge, { size: "large", variant: "solid", children: el.name }, el.id);
101
+ }) })
102
+ ]
103
+ }
104
+ ),
105
+ /* @__PURE__ */ jsx(
106
+ AspectRatio,
107
+ {
108
+ ratio: 5 / 3,
109
+ style: {
110
+ overflow: "hidden",
111
+ borderRadius: "var(--radius-4)",
112
+ objectFit: "cover"
113
+ },
114
+ children: imageComp
115
+ }
116
+ )
117
+ ] }),
118
+ /* @__PURE__ */ jsx(Box, { mt: "5", width: "100%", children: /* @__PURE__ */ jsx(
119
+ "div",
120
+ {
121
+ className: "gh-content",
122
+ dangerouslySetInnerHTML: { __html: html }
123
+ }
124
+ ) })
125
+ ]
126
+ }
127
+ ),
128
+ children
129
+ ]
130
+ }
131
+ ) : /* @__PURE__ */ jsxs(
132
+ Flex,
133
+ {
134
+ align: "center",
135
+ direction: "column",
136
+ gap: "6",
137
+ height: "100%",
138
+ justify: "center",
139
+ width: "100%",
140
+ children: [
141
+ /* @__PURE__ */ jsx(Heading, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
142
+ /* @__PURE__ */ jsx(
143
+ Heading,
144
+ {
145
+ align: "center",
146
+ color: "gray",
147
+ variant: "heading4",
148
+ weight: "regular",
149
+ children: `\uC694\uCCAD\uD558\uC2E0 \uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
150
+ \uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
151
+ }
152
+ ),
153
+ /* @__PURE__ */ jsx(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
154
+ ]
155
+ }
156
+ )
157
+ })
158
+ );
159
+ }
160
+
161
+ export {
162
+ LearningPost
163
+ };
164
+ //# sourceMappingURL=chunk-GTRSAGDQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/learning-post.tsx"],"sourcesContent":["import React from 'react';\nimport type { ThemeProviderProps } from '../theme/theme-provider';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { Grid } from '../atoms/grid';\nimport { Flex } from '../atoms/flex';\nimport { Heading } from '../atoms/heading';\nimport { Typo } from '../atoms/typo';\nimport { AspectRatio } from '../atoms/aspect-ratio';\nimport { Badge } from '../atoms/badge';\nimport { Box } from '../atoms/box';\nimport { Button } from '../atoms/button';\n\ninterface Tag {\n name?: string;\n id: string;\n}\nexport interface LearningPostProps {\n defaultThemeProps?: Partial<ThemeProviderProps>;\n html?: string;\n title?: string;\n metaDescription?: string;\n /** 섬네일에 해당하는 이미지 컴포넌트 */\n imageComp?: React.ReactElement;\n tags?: Tag[];\n children?: React.ReactElement;\n onPageBack?: () => void;\n}\n\nexport function LearningPost(props: LearningPostProps): React.ReactElement {\n const {\n defaultThemeProps,\n html,\n tags,\n title,\n metaDescription,\n imageComp,\n onPageBack,\n children,\n } = props;\n return (\n <ThemeProvider\n {...defaultThemeProps}\n accentColor=\"iris\"\n scaling=\"110%\"\n style={{}}\n >\n {html ? (\n <Grid\n columns={{ initial: '1', md: '130px 1fr 130px' }}\n gap={{ initial: '2', md: '5' }}\n height=\"100%\"\n justify=\"center\"\n pb=\"160px\"\n position=\"relative\"\n px=\"4\"\n width=\"100%\"\n >\n <div />\n <Flex\n align=\"center\"\n direction=\"column\"\n maxWidth=\"880px\"\n mt={{ initial: '3', md: '8' }}\n overflow=\"hidden\"\n width=\"100%\"\n >\n <Grid align=\"start\" columns={{ initial: '1', sm: '2' }} gap=\"2\">\n <Grid\n gap=\"3\"\n mb={{ initial: '4', sm: '0' }}\n style={{ alignSelf: 'flex-start' }}\n >\n <Heading\n style={{\n fontSize: '2.4rem',\n lineHeight: 1.25,\n wordBreak: 'keep-all',\n }}\n variant=\"heading1\"\n >\n {title}\n </Heading>\n <Typo>{metaDescription}</Typo>\n <Flex gap=\"1\" wrap=\"wrap\">\n {tags?.map((el) => {\n if (el.name?.startsWith('filter')) return;\n return (\n <Badge key={el.id} size=\"large\" variant=\"solid\">\n {el.name}\n </Badge>\n );\n })}\n </Flex>\n </Grid>\n\n <AspectRatio\n ratio={5 / 3}\n style={{\n overflow: 'hidden',\n borderRadius: 'var(--radius-4)',\n objectFit: 'cover',\n }}\n >\n {imageComp}\n </AspectRatio>\n </Grid>\n\n <Box mt=\"5\" width=\"100%\">\n <div\n className=\"gh-content\"\n dangerouslySetInnerHTML={{ __html: html }}\n />\n </Box>\n </Flex>\n {children}\n </Grid>\n ) : (\n <Flex\n align=\"center\"\n direction=\"column\"\n gap=\"6\"\n height=\"100%\"\n justify=\"center\"\n width=\"100%\"\n >\n <Heading variant=\"heading1\">콘텐츠를 찾을 수 없습니다.</Heading>\n <Heading\n align=\"center\"\n color=\"gray\"\n variant=\"heading4\"\n weight=\"regular\"\n >\n {`요청하신 콘텐츠를 찾을 수 없습니다.\n 잠시 후 다시 시도해주세요.`}\n </Heading>\n <Button onClick={onPageBack} size=\"large\">\n 뒤로가기\n </Button>\n </Flex>\n )}\n </ThemeProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDU,cAUI,YAVJ;AA7BH,SAAS,aAAa,OAA8C;AACzE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,SACE;AAAA,IAAC;AAAA,qCACK,oBADL;AAAA,MAEC,aAAY;AAAA,MACZ,SAAQ;AAAA,MACR,OAAO,CAAC;AAAA,MAEP,iBACC;AAAA,QAAC;AAAA;AAAA,UACC,SAAS,EAAE,SAAS,KAAK,IAAI,kBAAkB;AAAA,UAC/C,KAAK,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,UAC7B,QAAO;AAAA,UACP,SAAQ;AAAA,UACR,IAAG;AAAA,UACH,UAAS;AAAA,UACT,IAAG;AAAA,UACH,OAAM;AAAA,UAEN;AAAA,gCAAC,SAAI;AAAA,YACL;AAAA,cAAC;AAAA;AAAA,gBACC,OAAM;AAAA,gBACN,WAAU;AAAA,gBACV,UAAS;AAAA,gBACT,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,gBAC5B,UAAS;AAAA,gBACT,OAAM;AAAA,gBAEN;AAAA,uCAA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