@bigtablet/design-system 1.3.2 → 1.5.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.css +348 -525
- package/dist/index.d.ts +16 -18
- package/dist/index.js +240 -211
- package/dist/next.css +16 -17
- package/dist/next.js +19 -14
- package/package.json +2 -2
package/dist/next.css
CHANGED
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
.sidebar {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
+
box-sizing: border-box;
|
|
5
6
|
height: 100%;
|
|
6
7
|
background: #ffffff;
|
|
7
8
|
border-right: 1px solid #e5e5e5;
|
|
8
9
|
padding: 0.5rem;
|
|
9
10
|
gap: 0.5rem;
|
|
10
11
|
}
|
|
11
|
-
.
|
|
12
|
-
padding: 0.5rem
|
|
12
|
+
.sidebar_brand {
|
|
13
|
+
padding: 0.5rem;
|
|
13
14
|
margin-bottom: 0.5rem;
|
|
14
15
|
border-bottom: 1px solid #e5e5e5;
|
|
15
16
|
}
|
|
16
|
-
.
|
|
17
|
+
.sidebar_brand_link {
|
|
17
18
|
display: block;
|
|
18
19
|
width: 100%;
|
|
19
20
|
}
|
|
20
|
-
.
|
|
21
|
+
.sidebar_brand_img {
|
|
21
22
|
display: block;
|
|
22
23
|
width: 100%;
|
|
23
24
|
height: auto;
|
|
24
25
|
object-fit: contain;
|
|
25
26
|
}
|
|
26
|
-
.
|
|
27
|
+
.sidebar_nav {
|
|
27
28
|
display: grid;
|
|
28
29
|
gap: 0.25rem;
|
|
29
|
-
padding
|
|
30
|
-
padding-bottom: 0.5rem;
|
|
30
|
+
padding: 0.5rem 0;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.sidebar_item {
|
|
33
33
|
display: grid;
|
|
34
34
|
grid-template-columns: 24px 1fr;
|
|
35
35
|
align-items: center;
|
|
@@ -39,29 +39,29 @@
|
|
|
39
39
|
color: #3B3B3B;
|
|
40
40
|
background: transparent;
|
|
41
41
|
border: 1px solid transparent;
|
|
42
|
+
cursor: pointer;
|
|
42
43
|
font-size: 0.9375rem;
|
|
43
44
|
line-height: 1.5;
|
|
44
|
-
cursor: pointer;
|
|
45
45
|
transition:
|
|
46
46
|
background-color 0.2s ease-out,
|
|
47
47
|
color 0.2s ease-out,
|
|
48
48
|
border-color 0.2s ease-out;
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.sidebar_item:hover {
|
|
51
51
|
background: #fafafa;
|
|
52
52
|
color: #1F2937;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.sidebar_item:hover .sidebar_icon {
|
|
55
55
|
color: #1F2937;
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.sidebar_item.is_active {
|
|
58
58
|
position: relative;
|
|
59
59
|
background: #ffffff;
|
|
60
60
|
border-color: #e5e5e5;
|
|
61
61
|
color: #1F2937;
|
|
62
62
|
box-shadow: inset 0 0 0 1px #e5e5e5;
|
|
63
63
|
}
|
|
64
|
-
.
|
|
64
|
+
.sidebar_item.is_active::before {
|
|
65
65
|
content: "";
|
|
66
66
|
position: absolute;
|
|
67
67
|
left: 0;
|
|
@@ -71,17 +71,16 @@
|
|
|
71
71
|
border-radius: 9999px;
|
|
72
72
|
background: #000000;
|
|
73
73
|
}
|
|
74
|
-
.
|
|
74
|
+
.sidebar_item.is_active .sidebar_icon {
|
|
75
75
|
color: #1F2937;
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
.sidebar_icon {
|
|
78
78
|
display: inline-grid;
|
|
79
79
|
place-items: center;
|
|
80
80
|
color: #6B7280;
|
|
81
81
|
transition: color 0.2s ease-out;
|
|
82
82
|
}
|
|
83
|
-
.
|
|
83
|
+
.sidebar_label {
|
|
84
84
|
white-space: nowrap;
|
|
85
|
-
overflow: hidden;
|
|
86
85
|
text-overflow: ellipsis;
|
|
87
86
|
}
|
package/dist/next.js
CHANGED
|
@@ -20,46 +20,51 @@ var Sidebar = ({
|
|
|
20
20
|
if (!activePath) return false;
|
|
21
21
|
return match === "exact" ? activePath === href : activePath.startsWith(href);
|
|
22
22
|
};
|
|
23
|
+
const rootClassName = ["sidebar", className ?? ""].filter(Boolean).join(" ");
|
|
23
24
|
return /* @__PURE__ */ jsxs(
|
|
24
25
|
"aside",
|
|
25
26
|
{
|
|
26
|
-
className:
|
|
27
|
+
className: rootClassName,
|
|
27
28
|
style: { width, ...style },
|
|
29
|
+
"aria-label": "\uC0AC\uC774\uB4DC \uB0B4\uBE44\uAC8C\uC774\uC158",
|
|
28
30
|
children: [
|
|
29
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
31
|
+
/* @__PURE__ */ jsx("div", { className: "sidebar_brand", children: /* @__PURE__ */ jsx(
|
|
30
32
|
Link,
|
|
31
33
|
{
|
|
32
34
|
href: brandHref,
|
|
33
|
-
className: "
|
|
35
|
+
className: "sidebar_brand_link",
|
|
34
36
|
"aria-label": "Bigtablet \uD648\uC73C\uB85C",
|
|
35
37
|
children: /* @__PURE__ */ jsx(
|
|
36
38
|
Image,
|
|
37
39
|
{
|
|
38
|
-
src: "/
|
|
40
|
+
src: "/images/logo/bigtablet.png",
|
|
39
41
|
alt: "Bigtablet",
|
|
40
42
|
width: 200,
|
|
41
43
|
height: 44,
|
|
42
44
|
priority: true,
|
|
43
|
-
className: "
|
|
45
|
+
className: "sidebar_brand_img"
|
|
44
46
|
}
|
|
45
47
|
)
|
|
46
48
|
}
|
|
47
49
|
) }),
|
|
48
|
-
/* @__PURE__ */ jsx("nav", { className: "
|
|
49
|
-
const active = isActive(
|
|
50
|
+
/* @__PURE__ */ jsx("nav", { className: "sidebar_nav", children: items.map((item) => {
|
|
51
|
+
const active = isActive(item.href);
|
|
50
52
|
return /* @__PURE__ */ jsxs(
|
|
51
53
|
Link,
|
|
52
54
|
{
|
|
53
|
-
href:
|
|
54
|
-
className: [
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
href: item.href,
|
|
56
|
+
className: [
|
|
57
|
+
"sidebar_item",
|
|
58
|
+
active && "is_active"
|
|
59
|
+
].filter(Boolean).join(" "),
|
|
60
|
+
onClick: () => onItemSelect?.(item.href),
|
|
61
|
+
title: typeof item.label === "string" ? item.label : void 0,
|
|
57
62
|
children: [
|
|
58
|
-
|
|
59
|
-
/* @__PURE__ */ jsx("span", { className: "
|
|
63
|
+
item.icon && /* @__PURE__ */ jsx("span", { className: "sidebar_icon", children: React.createElement(item.icon, { size: 16 }) }),
|
|
64
|
+
/* @__PURE__ */ jsx("span", { className: "sidebar_label", children: item.label })
|
|
60
65
|
]
|
|
61
66
|
},
|
|
62
|
-
|
|
67
|
+
item.href
|
|
63
68
|
);
|
|
64
69
|
}) })
|
|
65
70
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigtablet/design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Bigtablet Design System UI Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
71
71
|
"esbuild-sass-plugin": "^3",
|
|
72
72
|
"lucide-react": "^0.552.0",
|
|
73
|
-
"next": "16.0.
|
|
73
|
+
"next": "16.0.9",
|
|
74
74
|
"react": "19.2.0",
|
|
75
75
|
"react-dom": "19.2.0",
|
|
76
76
|
"react-toastify": "^11.0.5",
|