@likelion-design/ui 0.1.0

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/index.mjs ADDED
@@ -0,0 +1,301 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+
33
+ // src/stories/Button.tsx
34
+ import { jsx, jsxs } from "react/jsx-runtime";
35
+ var ActionButton = (_a) => {
36
+ var _b = _a, {
37
+ size = "medium",
38
+ variant = "primary",
39
+ shape = "solid",
40
+ state = "enabled",
41
+ children,
42
+ prefixIcon,
43
+ suffixIcon,
44
+ loading = false,
45
+ className = "",
46
+ disabled
47
+ } = _b, props = __objRest(_b, [
48
+ "size",
49
+ "variant",
50
+ "shape",
51
+ "state",
52
+ "children",
53
+ "prefixIcon",
54
+ "suffixIcon",
55
+ "loading",
56
+ "className",
57
+ "disabled"
58
+ ]);
59
+ const isDisabled = disabled || state === "disabled" || loading;
60
+ const actualState = loading ? "loading" : state;
61
+ const baseClasses = [
62
+ "action-button",
63
+ `action-button--${size}`,
64
+ `action-button--${variant}`,
65
+ `action-button--${shape}`,
66
+ `action-button--${actualState}`,
67
+ className
68
+ ].filter(Boolean).join(" ");
69
+ return /* @__PURE__ */ jsxs(
70
+ "button",
71
+ __spreadProps(__spreadValues({
72
+ type: "button",
73
+ className: baseClasses,
74
+ disabled: isDisabled
75
+ }, props), {
76
+ children: [
77
+ /* @__PURE__ */ jsxs("span", { className: "action-button__content", children: [
78
+ prefixIcon && /* @__PURE__ */ jsx("span", { className: "action-button__prefix-icon", children: prefixIcon }),
79
+ /* @__PURE__ */ jsx("span", { className: "action-button__label", children }),
80
+ suffixIcon && /* @__PURE__ */ jsx("span", { className: "action-button__suffix-icon", children: suffixIcon })
81
+ ] }),
82
+ loading && /* @__PURE__ */ jsx("span", { className: "action-button__spinner", "aria-hidden": "true", children: /* @__PURE__ */ jsx(
83
+ "svg",
84
+ {
85
+ className: "action-button__spinner-svg",
86
+ viewBox: "0 0 24 24",
87
+ fill: "none",
88
+ xmlns: "http://www.w3.org/2000/svg",
89
+ children: /* @__PURE__ */ jsxs(
90
+ "circle",
91
+ {
92
+ className: "action-button__spinner-circle",
93
+ cx: "12",
94
+ cy: "12",
95
+ r: "10",
96
+ stroke: "currentColor",
97
+ strokeWidth: "4",
98
+ strokeLinecap: "round",
99
+ strokeDasharray: "32",
100
+ strokeDashoffset: "32",
101
+ children: [
102
+ /* @__PURE__ */ jsx(
103
+ "animate",
104
+ {
105
+ attributeName: "stroke-dasharray",
106
+ dur: "2s",
107
+ values: "0 40;40 40;0 40",
108
+ repeatCount: "indefinite"
109
+ }
110
+ ),
111
+ /* @__PURE__ */ jsx(
112
+ "animate",
113
+ {
114
+ attributeName: "stroke-dashoffset",
115
+ dur: "2s",
116
+ values: "0;-40;-80",
117
+ repeatCount: "indefinite"
118
+ }
119
+ )
120
+ ]
121
+ }
122
+ )
123
+ }
124
+ ) })
125
+ ]
126
+ })
127
+ );
128
+ };
129
+ var Button = (_a) => {
130
+ var _b = _a, {
131
+ primary = false,
132
+ size = "medium",
133
+ backgroundColor,
134
+ label
135
+ } = _b, props = __objRest(_b, [
136
+ "primary",
137
+ "size",
138
+ "backgroundColor",
139
+ "label"
140
+ ]);
141
+ const mode = primary ? "storybook-button--primary" : "storybook-button--secondary";
142
+ return /* @__PURE__ */ jsx(
143
+ "button",
144
+ __spreadProps(__spreadValues({
145
+ type: "button",
146
+ className: ["storybook-button", `storybook-button--${size}`, mode].join(
147
+ " "
148
+ ),
149
+ style: { backgroundColor }
150
+ }, props), {
151
+ children: label
152
+ })
153
+ );
154
+ };
155
+ var IconButton = (_a) => {
156
+ var _b = _a, {
157
+ size = "large",
158
+ variant = "primary",
159
+ iconType = "solid",
160
+ state = "enabled",
161
+ icon,
162
+ className = "",
163
+ disabled,
164
+ type = "button"
165
+ } = _b, props = __objRest(_b, [
166
+ "size",
167
+ "variant",
168
+ "iconType",
169
+ "state",
170
+ "icon",
171
+ "className",
172
+ "disabled",
173
+ "type"
174
+ ]);
175
+ const isDisabled = disabled || state === "disabled";
176
+ const actualState = iconType === "weak" && isDisabled ? "enabled" : state;
177
+ const baseClasses = [
178
+ "icon-button",
179
+ `icon-button--${size}`,
180
+ `icon-button--${variant}`,
181
+ `icon-button--${iconType}`,
182
+ `icon-button--${actualState}`,
183
+ className
184
+ ].filter(Boolean).join(" ");
185
+ return /* @__PURE__ */ jsx(
186
+ "button",
187
+ __spreadProps(__spreadValues({
188
+ type,
189
+ className: baseClasses,
190
+ disabled: isDisabled
191
+ }, props), {
192
+ children: /* @__PURE__ */ jsx("span", { className: "icon-button__icon", children: icon })
193
+ })
194
+ );
195
+ };
196
+
197
+ // src/stories/Header.tsx
198
+ import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
199
+ var Header = ({ user, onLogin, onLogout, onCreateAccount }) => /* @__PURE__ */ jsx2("header", { children: /* @__PURE__ */ jsxs2("div", { className: "storybook-header", children: [
200
+ /* @__PURE__ */ jsxs2("div", { children: [
201
+ /* @__PURE__ */ jsx2("svg", { width: "32", height: "32", viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxs2("g", { fill: "none", fillRule: "evenodd", children: [
202
+ /* @__PURE__ */ jsx2(
203
+ "path",
204
+ {
205
+ d: "M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z",
206
+ fill: "#FFF"
207
+ }
208
+ ),
209
+ /* @__PURE__ */ jsx2(
210
+ "path",
211
+ {
212
+ d: "M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z",
213
+ fill: "#555AB9"
214
+ }
215
+ ),
216
+ /* @__PURE__ */ jsx2(
217
+ "path",
218
+ {
219
+ d: "M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z",
220
+ fill: "#91BAF8"
221
+ }
222
+ )
223
+ ] }) }),
224
+ /* @__PURE__ */ jsx2("h1", { children: "Acme" })
225
+ ] }),
226
+ /* @__PURE__ */ jsx2("div", { children: user ? /* @__PURE__ */ jsxs2(Fragment, { children: [
227
+ /* @__PURE__ */ jsxs2("span", { className: "welcome", children: [
228
+ "Welcome, ",
229
+ /* @__PURE__ */ jsx2("b", { children: user.name }),
230
+ "!"
231
+ ] }),
232
+ /* @__PURE__ */ jsx2(Button, { size: "small", onClick: onLogout, label: "Log out" })
233
+ ] }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
234
+ /* @__PURE__ */ jsx2(Button, { size: "small", onClick: onLogin, label: "Log in" }),
235
+ /* @__PURE__ */ jsx2(Button, { primary: true, size: "small", onClick: onCreateAccount, label: "Sign up" })
236
+ ] }) })
237
+ ] }) });
238
+
239
+ // src/stories/Page.tsx
240
+ import React from "react";
241
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
242
+ var Page = () => {
243
+ const [user, setUser] = React.useState();
244
+ return /* @__PURE__ */ jsxs3("article", { children: [
245
+ /* @__PURE__ */ jsx3(
246
+ Header,
247
+ {
248
+ user,
249
+ onLogin: () => setUser({ name: "Jane Doe" }),
250
+ onLogout: () => setUser(void 0),
251
+ onCreateAccount: () => setUser({ name: "Jane Doe" })
252
+ }
253
+ ),
254
+ /* @__PURE__ */ jsxs3("section", { className: "storybook-page", children: [
255
+ /* @__PURE__ */ jsx3("h2", { children: "Pages in Storybook" }),
256
+ /* @__PURE__ */ jsxs3("p", { children: [
257
+ "We recommend building UIs with a",
258
+ " ",
259
+ /* @__PURE__ */ jsx3("a", { href: "https://componentdriven.org", target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ jsx3("strong", { children: "component-driven" }) }),
260
+ " ",
261
+ "process starting with atomic components and ending with pages."
262
+ ] }),
263
+ /* @__PURE__ */ jsx3("p", { children: "Render pages with mock data. This makes it easy to build and review page states without needing to navigate to them in your app. Here are some handy patterns for managing page data in Storybook:" }),
264
+ /* @__PURE__ */ jsxs3("ul", { children: [
265
+ /* @__PURE__ */ jsx3("li", { children: 'Use a higher-level connected component. Storybook helps you compose such data from the "args" of child component stories' }),
266
+ /* @__PURE__ */ jsx3("li", { children: "Assemble data in the page component from your services. You can mock these services out using Storybook." })
267
+ ] }),
268
+ /* @__PURE__ */ jsxs3("p", { children: [
269
+ "Get a guided tutorial on component-driven development at",
270
+ " ",
271
+ /* @__PURE__ */ jsx3("a", { href: "https://storybook.js.org/tutorials/", target: "_blank", rel: "noopener noreferrer", children: "Storybook tutorials" }),
272
+ ". Read more in the",
273
+ " ",
274
+ /* @__PURE__ */ jsx3("a", { href: "https://storybook.js.org/docs", target: "_blank", rel: "noopener noreferrer", children: "docs" }),
275
+ "."
276
+ ] }),
277
+ /* @__PURE__ */ jsxs3("div", { className: "tip-wrapper", children: [
278
+ /* @__PURE__ */ jsx3("span", { className: "tip", children: "Tip" }),
279
+ " Adjust the width of the canvas with the",
280
+ " ",
281
+ /* @__PURE__ */ jsx3("svg", { width: "10", height: "10", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx3("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsx3(
282
+ "path",
283
+ {
284
+ d: "M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z",
285
+ id: "a",
286
+ fill: "#999"
287
+ }
288
+ ) }) }),
289
+ "Viewports addon in the toolbar"
290
+ ] })
291
+ ] })
292
+ ] });
293
+ };
294
+ export {
295
+ ActionButton,
296
+ Button,
297
+ Header,
298
+ IconButton,
299
+ Page
300
+ };
301
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/stories/Button.tsx","../src/stories/Header.tsx","../src/stories/Page.tsx"],"sourcesContent":["import React from \"react\";\nimport \"./button.css\";\n\nexport type ButtonSize = \"xlarge\" | \"large\" | \"medium\" | \"small\";\nexport type ButtonVariant = \"primary\" | \"neutral\" | \"secondary\";\nexport type ButtonShape = \"solid\" | \"outline\" | \"ghost\";\nexport type ButtonState = \"enabled\" | \"hovered\" | \"loading\" | \"disabled\";\n\nexport type IconButtonSize = \"xlarge\" | \"large\" | \"medium\" | \"small\";\nexport type IconButtonVariant = \"primary\" | \"neutral\";\nexport type IconButtonType = \"solid\" | \"outline\" | \"weak\";\nexport type IconButtonState = \"enabled\" | \"hovered\" | \"disabled\";\n\nexport interface ActionButtonProps\n extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, \"type\"> {\n /** 버튼 크기 */\n size?: ButtonSize;\n /** 버튼 타입 (primary, neutral, secondary) */\n variant?: ButtonVariant;\n /** 버튼 모양 (solid, outline, ghost) */\n shape?: ButtonShape;\n /** 버튼 상태 */\n state?: ButtonState;\n /** 버튼 텍스트 */\n children: React.ReactNode;\n /** Prefix 아이콘 */\n prefixIcon?: React.ReactNode;\n /** Suffix 아이콘 */\n suffixIcon?: React.ReactNode;\n /** 로딩 상태일 때 표시할 스피너 */\n loading?: boolean;\n}\n\n/** ActionButton 컴포넌트는 사용자가 어떠한 액션을 트리거하거나 이벤트를 실행할 때 사용한다. */\nexport const ActionButton = ({\n size = \"medium\",\n variant = \"primary\",\n shape = \"solid\",\n state = \"enabled\",\n children,\n prefixIcon,\n suffixIcon,\n loading = false,\n className = \"\",\n disabled,\n ...props\n}: ActionButtonProps) => {\n const isDisabled = disabled || state === \"disabled\" || loading;\n const actualState = loading ? \"loading\" : state;\n\n const baseClasses = [\n \"action-button\",\n `action-button--${size}`,\n `action-button--${variant}`,\n `action-button--${shape}`,\n `action-button--${actualState}`,\n className,\n ]\n .filter(Boolean)\n .join(\" \");\n\n return (\n <button\n type=\"button\"\n className={baseClasses}\n disabled={isDisabled}\n {...props}\n >\n <span className=\"action-button__content\">\n {prefixIcon && (\n <span className=\"action-button__prefix-icon\">{prefixIcon}</span>\n )}\n <span className=\"action-button__label\">{children}</span>\n {suffixIcon && (\n <span className=\"action-button__suffix-icon\">{suffixIcon}</span>\n )}\n </span>\n {loading && (\n <span className=\"action-button__spinner\" aria-hidden=\"true\">\n <svg\n className=\"action-button__spinner-svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n className=\"action-button__spinner-circle\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n strokeWidth=\"4\"\n strokeLinecap=\"round\"\n strokeDasharray=\"32\"\n strokeDashoffset=\"32\"\n >\n <animate\n attributeName=\"stroke-dasharray\"\n dur=\"2s\"\n values=\"0 40;40 40;0 40\"\n repeatCount=\"indefinite\"\n />\n <animate\n attributeName=\"stroke-dashoffset\"\n dur=\"2s\"\n values=\"0;-40;-80\"\n repeatCount=\"indefinite\"\n />\n </circle>\n </svg>\n </span>\n )}\n </button>\n );\n};\n\n// 기존 Button 컴포넌트는 하위 호환성을 위해 유지\nexport interface ButtonProps {\n /** Is this the principal call to action on the page? */\n primary?: boolean;\n /** What background color to use */\n backgroundColor?: string;\n /** How large should the button be? */\n size?: \"small\" | \"medium\" | \"large\";\n /** Button contents */\n label: string;\n /** Optional click handler */\n onClick?: () => void;\n}\n\n/** Primary UI component for user interaction */\nexport const Button = ({\n primary = false,\n size = \"medium\",\n backgroundColor,\n label,\n ...props\n}: ButtonProps) => {\n const mode = primary\n ? \"storybook-button--primary\"\n : \"storybook-button--secondary\";\n return (\n <button\n type=\"button\"\n className={[\"storybook-button\", `storybook-button--${size}`, mode].join(\n \" \"\n )}\n style={{ backgroundColor }}\n {...props}\n >\n {label}\n </button>\n );\n};\n\nexport interface IconButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n /** 버튼 크기 */\n size?: IconButtonSize;\n /** 버튼 타입 (primary 또는 neutral) */\n variant?: IconButtonVariant;\n /** 버튼 모양 (solid, outline, weak) */\n iconType?: IconButtonType;\n /** 버튼 상태 */\n state?: IconButtonState;\n /** 아이콘 (Heroicons 또는 React 컴포넌트) */\n icon: React.ReactNode;\n /** 아이콘에 대한 접근성 라벨 */\n \"aria-label\": string;\n}\n\n/** IconButton 컴포넌트는 텍스트 레이블 없이 아이콘만으로 액션을 전달하는 버튼 컴포넌트이다. */\nexport const IconButton = ({\n size = \"large\",\n variant = \"primary\",\n iconType = \"solid\",\n state = \"enabled\",\n icon,\n className = \"\",\n disabled,\n type = \"button\",\n ...props\n}: IconButtonProps) => {\n const isDisabled = disabled || state === \"disabled\";\n // weak 타입은 disabled 상태를 가지지 않음\n const actualState = iconType === \"weak\" && isDisabled ? \"enabled\" : state;\n\n const baseClasses = [\n \"icon-button\",\n `icon-button--${size}`,\n `icon-button--${variant}`,\n `icon-button--${iconType}`,\n `icon-button--${actualState}`,\n className,\n ]\n .filter(Boolean)\n .join(\" \");\n\n return (\n <button\n type={type}\n className={baseClasses}\n disabled={isDisabled}\n {...props}\n >\n <span className=\"icon-button__icon\">{icon}</span>\n </button>\n );\n};\n","import { Button } from './Button';\nimport './header.css';\n\ntype User = {\n name: string;\n};\n\nexport interface HeaderProps {\n user?: User;\n onLogin?: () => void;\n onLogout?: () => void;\n onCreateAccount?: () => void;\n}\n\nexport const Header = ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => (\n <header>\n <div className=\"storybook-header\">\n <div>\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n <g fill=\"none\" fillRule=\"evenodd\">\n <path\n d=\"M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z\"\n fill=\"#FFF\"\n />\n <path\n d=\"M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z\"\n fill=\"#555AB9\"\n />\n <path\n d=\"M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z\"\n fill=\"#91BAF8\"\n />\n </g>\n </svg>\n <h1>Acme</h1>\n </div>\n <div>\n {user ? (\n <>\n <span className=\"welcome\">\n Welcome, <b>{user.name}</b>!\n </span>\n <Button size=\"small\" onClick={onLogout} label=\"Log out\" />\n </>\n ) : (\n <>\n <Button size=\"small\" onClick={onLogin} label=\"Log in\" />\n <Button primary size=\"small\" onClick={onCreateAccount} label=\"Sign up\" />\n </>\n )}\n </div>\n </div>\n </header>\n);\n","import React from 'react';\n\nimport { Header } from './Header';\nimport './page.css';\n\ntype User = {\n name: string;\n};\n\nexport const Page: React.FC = () => {\n const [user, setUser] = React.useState<User>();\n\n return (\n <article>\n <Header\n user={user}\n onLogin={() => setUser({ name: 'Jane Doe' })}\n onLogout={() => setUser(undefined)}\n onCreateAccount={() => setUser({ name: 'Jane Doe' })}\n />\n\n <section className=\"storybook-page\">\n <h2>Pages in Storybook</h2>\n <p>\n We recommend building UIs with a{' '}\n <a href=\"https://componentdriven.org\" target=\"_blank\" rel=\"noopener noreferrer\">\n <strong>component-driven</strong>\n </a>{' '}\n process starting with atomic components and ending with pages.\n </p>\n <p>\n Render pages with mock data. This makes it easy to build and review page states without\n needing to navigate to them in your app. Here are some handy patterns for managing page\n data in Storybook:\n </p>\n <ul>\n <li>\n Use a higher-level connected component. Storybook helps you compose such data from the\n \"args\" of child component stories\n </li>\n <li>\n Assemble data in the page component from your services. You can mock these services out\n using Storybook.\n </li>\n </ul>\n <p>\n Get a guided tutorial on component-driven development at{' '}\n <a href=\"https://storybook.js.org/tutorials/\" target=\"_blank\" rel=\"noopener noreferrer\">\n Storybook tutorials\n </a>\n . Read more in the{' '}\n <a href=\"https://storybook.js.org/docs\" target=\"_blank\" rel=\"noopener noreferrer\">\n docs\n </a>\n .\n </p>\n <div className=\"tip-wrapper\">\n <span className=\"tip\">Tip</span> Adjust the width of the canvas with the{' '}\n <svg width=\"10\" height=\"10\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg\">\n <g fill=\"none\" fillRule=\"evenodd\">\n <path\n d=\"M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5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B,iCAExF;AAAA,QAAI;AAAA,QACe;AAAA,QACnB,gBAAAA,KAAC,OAAE,MAAK,iCAAgC,QAAO,UAAS,KAAI,uBAAsB,kBAElF;AAAA,QAAI;AAAA,SAEN;AAAA,MACA,gBAAAC,MAAC,SAAI,WAAU,eACb;AAAA,wBAAAD,KAAC,UAAK,WAAU,OAAM,iBAAG;AAAA,QAAO;AAAA,QAAyC;AAAA,QACzE,gBAAAA,KAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,OAAM,8BACpD,0BAAAA,KAAC,OAAE,MAAK,QAAO,UAAS,WACtB,0BAAAA;AAAA,UAAC;AAAA;AAAA,YACC,GAAE;AAAA,YACF,IAAG;AAAA,YACH,MAAK;AAAA;AAAA,QACP,GACF,GACF;AAAA,QAAM;AAAA,SAER;AAAA,OACF;AAAA,KACF;AAEJ;","names":["jsx","jsxs","jsx","jsxs"]}
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@likelion-design/ui",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "README.md"
11
+ ],
12
+ "scripts": {
13
+ "build": "tsup",
14
+ "lint": "eslint",
15
+ "storybook": "storybook dev -p 6006",
16
+ "build-storybook": "storybook build",
17
+ "chromatic": "npx chromatic --project-token=chpt_932abeb0a46416b"
18
+ },
19
+ "peerDependencies": {
20
+ "react": "^18.0.0 || ^19.0.0",
21
+ "react-dom": "^18.0.0 || ^19.0.0"
22
+ },
23
+ "devDependencies": {
24
+ "next": "16.1.0",
25
+ "react": "19.2.3",
26
+ "react-dom": "19.2.3",
27
+ "@chromatic-com/storybook": "^4.1.3",
28
+ "@storybook/addon-a11y": "^10.1.10",
29
+ "@storybook/addon-docs": "^10.1.10",
30
+ "@storybook/addon-onboarding": "^10.1.10",
31
+ "@storybook/addon-vitest": "^10.1.10",
32
+ "@storybook/nextjs-vite": "^10.1.10",
33
+ "@tailwindcss/postcss": "^4",
34
+ "@types/node": "^20",
35
+ "@types/react": "^19",
36
+ "@types/react-dom": "^19",
37
+ "@vitest/browser-playwright": "^4.0.16",
38
+ "@vitest/coverage-v8": "^4.0.16",
39
+ "chromatic": "^13.3.4",
40
+ "eslint": "^9",
41
+ "eslint-config-next": "16.1.0",
42
+ "eslint-plugin-storybook": "^10.1.10",
43
+ "playwright": "^1.57.0",
44
+ "storybook": "^10.1.10",
45
+ "tailwindcss": "^4",
46
+ "tsup": "^8.5.1",
47
+ "typescript": "^5",
48
+ "vite": "^7.3.0",
49
+ "vitest": "^4.0.16"
50
+ }
51
+ }