@camped-ui/breadcrumb 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
package/dist/index.js
CHANGED
@@ -17,7 +17,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
17
17
|
const button_1 = require("@camped-ui/button");
|
18
18
|
const lib_1 = require("@camped-ui/lib");
|
19
19
|
const popover_1 = require("@camped-ui/popover");
|
20
|
-
const
|
20
|
+
const lucide_react_1 = require("lucide-react");
|
21
21
|
const react_slot_1 = require("@radix-ui/react-slot");
|
22
22
|
const react_1 = require("react");
|
23
23
|
const BreadCrumbContext = (0, react_1.createContext)(null);
|
@@ -152,7 +152,7 @@ BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
152
152
|
const BreadcrumbSeparator = (0, react_1.forwardRef)((_a, ref) => {
|
153
153
|
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
154
154
|
const { orientation, dir } = useBreadcrumb();
|
155
|
-
return ((0, jsx_runtime_1.jsxs)("span", Object.assign({ ref: ref }, props, { dir: dir, "data-orientation": orientation, className: (0, lib_1.cn)("flex items-center justify-center size-4 data-[orientation='horizontal']:rotate-0 rtl:data-[orientation='horizontal']:rotate-180 data-[orientation='vertical']:rotate-90 "), children: [children ? (children) : ((0, jsx_runtime_1.jsx)(
|
155
|
+
return ((0, jsx_runtime_1.jsxs)("span", Object.assign({ ref: ref }, props, { dir: dir, "data-orientation": orientation, className: (0, lib_1.cn)("flex items-center justify-center size-4 data-[orientation='horizontal']:rotate-0 rtl:data-[orientation='horizontal']:rotate-180 data-[orientation='vertical']:rotate-90 "), children: [children ? (children) : ((0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { className: (0, lib_1.cn)("h-4 w-4 ", className) })), (0, jsx_runtime_1.jsx)("span", { className: "sr-only", children: "next page" })] })));
|
156
156
|
});
|
157
157
|
exports.BreadcrumbSeparator = BreadcrumbSeparator;
|
158
158
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
@@ -182,7 +182,7 @@ const BreadcrumbEllipsis = (0, react_1.forwardRef)((_a, ref) => {
|
|
182
182
|
return arr.sort((a, b) => Number(a) - Number(b));
|
183
183
|
});
|
184
184
|
}, [index, onValueChange]);
|
185
|
-
return ((0, jsx_runtime_1.jsxs)("span", Object.assign({ ref: ref, "aria-hidden": true, className: (0, lib_1.cn)("focus-visible:ring-0 focus-visible:ring-opacity-0", className, isSelected ? "bg-muted" : "") }, props, { children: [(0, jsx_runtime_1.jsx)(
|
185
|
+
return ((0, jsx_runtime_1.jsxs)("span", Object.assign({ ref: ref, "aria-hidden": true, className: (0, lib_1.cn)("focus-visible:ring-0 focus-visible:ring-opacity-0", className, isSelected ? "bg-muted" : "") }, props, { children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Ellipsis, { className: "h-4 w-4 " }), (0, jsx_runtime_1.jsx)("span", { className: "sr-only", children: "More pages" })] })));
|
186
186
|
});
|
187
187
|
exports.BreadcrumbEllipsis = BreadcrumbEllipsis;
|
188
188
|
BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;AAEb,8CAAmD;AACnD,wCAAoC;AACpC,gDAA6E;AAC7E
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;AAEb,8CAAmD;AACnD,wCAAoC;AACpC,gDAA6E;AAC7E,+CAAsD;AAEtD,qDAA4C;AAE5C,iCAUe;AAoBf,MAAM,iBAAiB,GAAG,IAAA,qBAAa,EAAgC,IAAI,CAAC,CAAC;AAE7E,MAAM,aAAa,GAAG,GAAG,EAAE;IACzB,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,iB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AE,QAAQ,OAAY,EAAP,KAAK,cAApB,YAAsB,CAAF;IACrB,MAAM,EAAE,WAAW,EAAE,GAAG,aAAa,EAAE,CAAC;IAExC,OAAO,CACL,uBAAC,wBAAc,oBACT,KAAK,IACT,IAAI,EAAE,WAAW,KAAK,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EACvD,GAAG,EAAE,GAAG,YAEP,QAAQ,IACM,CAClB,CAAC;AACJ,CAAC,CAAC,CAAC;AAcD,8CAAiB;AAZnB,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@camped-ui/breadcrumb",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.4",
|
4
4
|
"main": "dist/index.js",
|
5
5
|
"scripts": {
|
6
6
|
"publish-package": "npm publish --access public",
|
@@ -11,7 +11,6 @@
|
|
11
11
|
"@camped-ui/button": "^2.1.1",
|
12
12
|
"@camped-ui/lib": "^2.0.2",
|
13
13
|
"@camped-ui/popover": "^2.1.0",
|
14
|
-
"@radix-ui/react-icons": "^1.3.0",
|
15
14
|
"@radix-ui/react-popover": "^1.0.7",
|
16
15
|
"@radix-ui/react-slot": "^1.0.2",
|
17
16
|
"class-variance-authority": "^0.4.0"
|