@camped-ui/breadcrumb 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -29,7 +29,7 @@ const useBreadcrumb = () => {
|
|
29
29
|
return context;
|
30
30
|
};
|
31
31
|
const Breadcrumb = (_a) => {
|
32
|
-
var { className, orientation = "horizontal", variant, dir, size, children } = _a, props = __rest(_a, ["className", "orientation", "variant", "dir", "size", "children"]);
|
32
|
+
var { className, orientation = "horizontal", variant = "ghost", dir, size, children } = _a, props = __rest(_a, ["className", "orientation", "variant", "dir", "size", "children"]);
|
33
33
|
const [value, setValue] = (0, react_1.useState)([]);
|
34
34
|
const [prevValue, setPrevValue] = (0, react_1.useState)([]);
|
35
35
|
const [activeIndex, setActiveIndex] = (0, react_1.useState)(-1);
|
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,uDAA6E;AAE7E,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,iBAAiB,CAAC,CAAC;IAC9C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACpE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAQF,EAAE,EAAE;QARF,EAClB,SAAS,EACT,WAAW,GAAG,YAAY,EAC1B,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":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