@hivcd-printshop/design-system 1.7.0 → 1.8.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.js +30 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -17
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -1
package/dist/index.mjs
CHANGED
|
@@ -1576,6 +1576,7 @@ var Badge2 = ({ label, className }) => {
|
|
|
1576
1576
|
};
|
|
1577
1577
|
|
|
1578
1578
|
// src/components/Tag/Tag.tsx
|
|
1579
|
+
import chroma from "chroma-js";
|
|
1579
1580
|
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1580
1581
|
var Tag = ({
|
|
1581
1582
|
className,
|
|
@@ -1586,6 +1587,11 @@ var Tag = ({
|
|
|
1586
1587
|
onClick,
|
|
1587
1588
|
...props
|
|
1588
1589
|
}) => {
|
|
1590
|
+
const customStyles = bgColor ? {
|
|
1591
|
+
"--tag-bg": bgColor,
|
|
1592
|
+
"--tag-bg-hover": chroma(bgColor).set("hsl.l", "-0.07").css(),
|
|
1593
|
+
"--tag-bg-active": chroma(bgColor).set("hsl.l", "-0.12").css()
|
|
1594
|
+
} : void 0;
|
|
1589
1595
|
return /* @__PURE__ */ jsx36(
|
|
1590
1596
|
"button",
|
|
1591
1597
|
{
|
|
@@ -1593,17 +1599,19 @@ var Tag = ({
|
|
|
1593
1599
|
"tag",
|
|
1594
1600
|
"w-fit h-8 px-2.5",
|
|
1595
1601
|
"text-primary text-body2-regular transition-colors",
|
|
1596
|
-
"box-border
|
|
1597
|
-
"bg-white",
|
|
1598
|
-
|
|
1599
|
-
|
|
1602
|
+
"box-border",
|
|
1603
|
+
bgColor ? "bg-[var(--tag-bg)] border-none" : "bg-white border border-gray02",
|
|
1604
|
+
onClick && [
|
|
1605
|
+
"cursor-pointer has-clickable",
|
|
1606
|
+
bgColor ? "hover:bg-[var(--tag-bg-hover)] active:bg-[var(--tag-bg-active)]" : "hover:bg-gray00 active:bg-gray01"
|
|
1607
|
+
],
|
|
1600
1608
|
selected && "text-white bg-black border-black hover:bg-black active:bg-black",
|
|
1601
1609
|
"disabled:text-gray04 disabled:bg-gray02 disabled:border-gray02 disabled:cursor-not-allowed",
|
|
1602
1610
|
className
|
|
1603
1611
|
),
|
|
1604
1612
|
onClick,
|
|
1605
1613
|
disabled,
|
|
1606
|
-
style:
|
|
1614
|
+
style: customStyles,
|
|
1607
1615
|
...props,
|
|
1608
1616
|
children: /* @__PURE__ */ jsx36("span", { children })
|
|
1609
1617
|
}
|
|
@@ -2296,23 +2304,18 @@ var SlotButton = ({
|
|
|
2296
2304
|
className: cn(
|
|
2297
2305
|
// 자식 요소들을 겹치기 위해 relative 추가
|
|
2298
2306
|
"relative h-7 w-7 rounded-full flex items-center justify-center transition-colors",
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
blocked && "bg-white box-border border border-gray03",
|
|
2302
|
-
className
|
|
2303
|
-
)
|
|
2307
|
+
reserved && "box-border border border-gray08",
|
|
2308
|
+
showMinusIcon ? "border-transparent bg-gray08 active:bg-gray09 cursor-pointer" : cn(!color && "bg-black", className)
|
|
2304
2309
|
),
|
|
2305
2310
|
children: [
|
|
2306
|
-
|
|
2307
|
-
"
|
|
2311
|
+
blocked && /* @__PURE__ */ jsx44(
|
|
2312
|
+
"span",
|
|
2308
2313
|
{
|
|
2309
2314
|
className: cn(
|
|
2310
|
-
|
|
2311
|
-
"absolute h-3.5 w-3.5 rounded-full bg-white transition-opacity",
|
|
2312
|
-
blocked && "box-border border border-gray03",
|
|
2315
|
+
"absolute text-head4-regular text-gray08 transition-opacity",
|
|
2313
2316
|
showMinusIcon ? "opacity-0" : "opacity-100"
|
|
2314
|
-
|
|
2315
|
-
|
|
2317
|
+
),
|
|
2318
|
+
children: "!"
|
|
2316
2319
|
}
|
|
2317
2320
|
),
|
|
2318
2321
|
isEditing && /* @__PURE__ */ jsx44(
|