@hivcd-printshop/design-system 1.6.0 → 1.7.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.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -276,6 +276,23 @@ var IconClose = ({ className, stroke }) => {
|
|
|
276
276
|
}
|
|
277
277
|
);
|
|
278
278
|
};
|
|
279
|
+
var IconPlus = ({ className, stroke }) => {
|
|
280
|
+
return /* @__PURE__ */ jsxs(
|
|
281
|
+
"svg",
|
|
282
|
+
{
|
|
283
|
+
className,
|
|
284
|
+
width: "20",
|
|
285
|
+
height: "20",
|
|
286
|
+
viewBox: "0 0 20 20",
|
|
287
|
+
fill: "none",
|
|
288
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
289
|
+
children: [
|
|
290
|
+
/* @__PURE__ */ jsx("path", { d: "M16.6673 10.0013H3.33398", stroke: stroke || "currentColor" }),
|
|
291
|
+
/* @__PURE__ */ jsx("path", { d: "M9.99902 3.33203V16.6654", stroke: stroke || "currentColor" })
|
|
292
|
+
]
|
|
293
|
+
}
|
|
294
|
+
);
|
|
295
|
+
};
|
|
279
296
|
var IconMinus = ({ className, stroke }) => {
|
|
280
297
|
return /* @__PURE__ */ jsx(
|
|
281
298
|
"svg",
|
|
@@ -2313,6 +2330,29 @@ var SlotButton = ({
|
|
|
2313
2330
|
}
|
|
2314
2331
|
);
|
|
2315
2332
|
};
|
|
2333
|
+
|
|
2334
|
+
// src/components/SlotButton/SlotAddButton.tsx
|
|
2335
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
2336
|
+
var SlotAddButton = ({ onClick, className }) => {
|
|
2337
|
+
return /* @__PURE__ */ jsx45(
|
|
2338
|
+
"button",
|
|
2339
|
+
{
|
|
2340
|
+
onClick,
|
|
2341
|
+
className: cn(
|
|
2342
|
+
"group",
|
|
2343
|
+
// 1. 부모에 group 클래스 추가!
|
|
2344
|
+
"h-7 w-7 rounded-full flex items-center justify-center",
|
|
2345
|
+
"bg-white box-border border border-gray03",
|
|
2346
|
+
"hover:bg-gray08 hover:border-transparent",
|
|
2347
|
+
// border-none 대신 border-transparent가 레이아웃 덜 흔들려!
|
|
2348
|
+
"active:bg-gray09 active:border-transparent",
|
|
2349
|
+
"transition-colors cursor-pointer",
|
|
2350
|
+
className
|
|
2351
|
+
),
|
|
2352
|
+
children: /* @__PURE__ */ jsx45(IconPlus, { className: "text-gray04 group-hover:text-white w-5 h-5" })
|
|
2353
|
+
}
|
|
2354
|
+
);
|
|
2355
|
+
};
|
|
2316
2356
|
export {
|
|
2317
2357
|
Accordion,
|
|
2318
2358
|
BackButton,
|
|
@@ -2359,6 +2399,7 @@ export {
|
|
|
2359
2399
|
SearchBar,
|
|
2360
2400
|
SelectBoxOption,
|
|
2361
2401
|
SideRadioAccordion,
|
|
2402
|
+
SlotAddButton,
|
|
2362
2403
|
SlotButton,
|
|
2363
2404
|
TNB,
|
|
2364
2405
|
TabSwitch,
|