@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.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
9
|
var __export = (target, all) => {
|
|
8
10
|
for (var name in all)
|
|
@@ -16,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
18
|
}
|
|
17
19
|
return to;
|
|
18
20
|
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
19
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
30
|
|
|
21
31
|
// src/index.ts
|
|
@@ -1656,6 +1666,7 @@ var Badge2 = ({ label, className }) => {
|
|
|
1656
1666
|
};
|
|
1657
1667
|
|
|
1658
1668
|
// src/components/Tag/Tag.tsx
|
|
1669
|
+
var import_chroma_js = __toESM(require("chroma-js"));
|
|
1659
1670
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1660
1671
|
var Tag = ({
|
|
1661
1672
|
className,
|
|
@@ -1666,6 +1677,11 @@ var Tag = ({
|
|
|
1666
1677
|
onClick,
|
|
1667
1678
|
...props
|
|
1668
1679
|
}) => {
|
|
1680
|
+
const customStyles = bgColor ? {
|
|
1681
|
+
"--tag-bg": bgColor,
|
|
1682
|
+
"--tag-bg-hover": (0, import_chroma_js.default)(bgColor).set("hsl.l", "-0.07").css(),
|
|
1683
|
+
"--tag-bg-active": (0, import_chroma_js.default)(bgColor).set("hsl.l", "-0.12").css()
|
|
1684
|
+
} : void 0;
|
|
1669
1685
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1670
1686
|
"button",
|
|
1671
1687
|
{
|
|
@@ -1673,17 +1689,19 @@ var Tag = ({
|
|
|
1673
1689
|
"tag",
|
|
1674
1690
|
"w-fit h-8 px-2.5",
|
|
1675
1691
|
"text-primary text-body2-regular transition-colors",
|
|
1676
|
-
"box-border
|
|
1677
|
-
"bg-white",
|
|
1678
|
-
|
|
1679
|
-
|
|
1692
|
+
"box-border",
|
|
1693
|
+
bgColor ? "bg-[var(--tag-bg)] border-none" : "bg-white border border-gray02",
|
|
1694
|
+
onClick && [
|
|
1695
|
+
"cursor-pointer has-clickable",
|
|
1696
|
+
bgColor ? "hover:bg-[var(--tag-bg-hover)] active:bg-[var(--tag-bg-active)]" : "hover:bg-gray00 active:bg-gray01"
|
|
1697
|
+
],
|
|
1680
1698
|
selected && "text-white bg-black border-black hover:bg-black active:bg-black",
|
|
1681
1699
|
"disabled:text-gray04 disabled:bg-gray02 disabled:border-gray02 disabled:cursor-not-allowed",
|
|
1682
1700
|
className
|
|
1683
1701
|
),
|
|
1684
1702
|
onClick,
|
|
1685
1703
|
disabled,
|
|
1686
|
-
style:
|
|
1704
|
+
style: customStyles,
|
|
1687
1705
|
...props,
|
|
1688
1706
|
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children })
|
|
1689
1707
|
}
|
|
@@ -2371,23 +2389,18 @@ var SlotButton = ({
|
|
|
2371
2389
|
className: cn(
|
|
2372
2390
|
// 자식 요소들을 겹치기 위해 relative 추가
|
|
2373
2391
|
"relative h-7 w-7 rounded-full flex items-center justify-center transition-colors",
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
blocked && "bg-white box-border border border-gray03",
|
|
2377
|
-
className
|
|
2378
|
-
)
|
|
2392
|
+
reserved && "box-border border border-gray08",
|
|
2393
|
+
showMinusIcon ? "border-transparent bg-gray08 active:bg-gray09 cursor-pointer" : cn(!color && "bg-black", className)
|
|
2379
2394
|
),
|
|
2380
2395
|
children: [
|
|
2381
|
-
|
|
2382
|
-
"
|
|
2396
|
+
blocked && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2397
|
+
"span",
|
|
2383
2398
|
{
|
|
2384
2399
|
className: cn(
|
|
2385
|
-
|
|
2386
|
-
"absolute h-3.5 w-3.5 rounded-full bg-white transition-opacity",
|
|
2387
|
-
blocked && "box-border border border-gray03",
|
|
2400
|
+
"absolute text-head4-regular text-gray08 transition-opacity",
|
|
2388
2401
|
showMinusIcon ? "opacity-0" : "opacity-100"
|
|
2389
|
-
|
|
2390
|
-
|
|
2402
|
+
),
|
|
2403
|
+
children: "!"
|
|
2391
2404
|
}
|
|
2392
2405
|
),
|
|
2393
2406
|
isEditing && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|