@sarunyu/system-one 4.9.30 → 4.9.31
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/AGENTS.md +2 -1
- package/DESIGN.md +2 -2
- package/dist/index.cjs +21 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/dist/src/components/breadcrumb.d.ts +17 -0
- package/dist/src/components/breadcrumb.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/llms.txt +25 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6102,6 +6102,25 @@ function AvatarStack({
|
|
|
6102
6102
|
);
|
|
6103
6103
|
}) });
|
|
6104
6104
|
}
|
|
6105
|
+
function BreadcrumbLabel({ item, isLast }) {
|
|
6106
|
+
const base = "shrink-0 text-sm leading-5";
|
|
6107
|
+
if (isLast) {
|
|
6108
|
+
return /* @__PURE__ */ jsx("span", { "aria-current": "page", className: `${base} text-text-brand-secondary`, children: item.label });
|
|
6109
|
+
}
|
|
6110
|
+
if (item.href) {
|
|
6111
|
+
return /* @__PURE__ */ jsx("a", { href: item.href, className: `${base} text-text-default-secondary hover:text-foreground transition-colors`, children: item.label });
|
|
6112
|
+
}
|
|
6113
|
+
return /* @__PURE__ */ jsx("span", { className: `${base} text-text-default-secondary`, children: item.label });
|
|
6114
|
+
}
|
|
6115
|
+
function Breadcrumb({ items, className }) {
|
|
6116
|
+
return /* @__PURE__ */ jsx("nav", { "aria-label": "Breadcrumb", className: cn("flex items-center gap-1", className), children: items.map((item, index2) => {
|
|
6117
|
+
const isLast = index2 === items.length - 1;
|
|
6118
|
+
return /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [
|
|
6119
|
+
/* @__PURE__ */ jsx(BreadcrumbLabel, { item, isLast }),
|
|
6120
|
+
!isLast && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "shrink-0 text-sm leading-5 text-text-default-placeholder select-none", children: "/" })
|
|
6121
|
+
] }, index2);
|
|
6122
|
+
}) });
|
|
6123
|
+
}
|
|
6105
6124
|
const index = {
|
|
6106
6125
|
Button,
|
|
6107
6126
|
Badge,
|
|
@@ -6137,6 +6156,7 @@ const index = {
|
|
|
6137
6156
|
TimeInput,
|
|
6138
6157
|
Avatar,
|
|
6139
6158
|
AvatarStack,
|
|
6159
|
+
Breadcrumb,
|
|
6140
6160
|
cn,
|
|
6141
6161
|
useIsMobile
|
|
6142
6162
|
};
|
|
@@ -6146,6 +6166,7 @@ export {
|
|
|
6146
6166
|
AvatarStack,
|
|
6147
6167
|
Badge,
|
|
6148
6168
|
BottomSheet,
|
|
6169
|
+
Breadcrumb,
|
|
6149
6170
|
Button,
|
|
6150
6171
|
Card,
|
|
6151
6172
|
Checkbox,
|