analytica-frontend-lib 1.1.0 → 1.1.1

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.d.mts CHANGED
@@ -32,7 +32,7 @@ export { MultipleChoiceList } from './MultipleChoice/index.mjs';
32
32
  export { default as IconRender } from './IconRender/index.mjs';
33
33
  export { default as DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuSection, ProfileMenuTrigger } from './DropdownMenu/index.mjs';
34
34
  export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.mjs';
35
- export { default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.mjs';
35
+ export { Breadcrumb, default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.mjs';
36
36
  export { CardActivitiesResults, CardPerformance, CardProgress, CardQuestions, CardResults, CardSimulado, CardSimulationHistory, CardStatus, CardTest, CardTopic } from './Card/index.mjs';
37
37
  export { Skeleton, SkeletonCard, SkeletonCircle, SkeletonList, SkeletonRectangle, SkeletonRounded, SkeletonTable, SkeletonText } from './Skeleton/index.mjs';
38
38
  export { default as NotFound } from './NotFound/index.mjs';
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ export { MultipleChoiceList } from './MultipleChoice/index.js';
32
32
  export { default as IconRender } from './IconRender/index.js';
33
33
  export { default as DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuSection, ProfileMenuTrigger } from './DropdownMenu/index.js';
34
34
  export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.js';
35
- export { default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.js';
35
+ export { Breadcrumb, default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.js';
36
36
  export { CardActivitiesResults, CardPerformance, CardProgress, CardQuestions, CardResults, CardSimulado, CardSimulationHistory, CardStatus, CardTest, CardTopic } from './Card/index.js';
37
37
  export { Skeleton, SkeletonCard, SkeletonCircle, SkeletonList, SkeletonRectangle, SkeletonRounded, SkeletonTable, SkeletonText } from './Skeleton/index.js';
38
38
  export { default as NotFound } from './NotFound/index.js';
package/dist/index.js CHANGED
@@ -35,6 +35,7 @@ __export(src_exports, {
35
35
  AlternativesList: () => AlternativesList,
36
36
  AuthProvider: () => AuthProvider,
37
37
  Badge: () => Badge_default,
38
+ Breadcrumb: () => Breadcrumb,
38
39
  Button: () => Button_default,
39
40
  Calendar: () => Calendar_default,
40
41
  CardAccordation: () => CardAccordation,
@@ -6564,6 +6565,46 @@ var injectStore5 = (children, store) => import_react20.Children.map(children, (c
6564
6565
  ...typedChild.props.children ? { children: injectStore5(typedChild.props.children, store) } : {}
6565
6566
  });
6566
6567
  });
6568
+ var Breadcrumb = (0, import_react20.forwardRef)(
6569
+ ({ currentPage, parentPageName, onBackClick, className, ...props }, ref) => {
6570
+ const handleBackToParent = (0, import_react20.useCallback)(() => {
6571
+ onBackClick();
6572
+ }, [onBackClick]);
6573
+ const breadcrumbClassName = `bg-transparent shadow-none !px-0 py-4 !-ml-2 ${typeof className === "string" ? className : ""}`;
6574
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ref, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6575
+ Menu,
6576
+ {
6577
+ variant: "breadcrumb",
6578
+ defaultValue: "",
6579
+ className: breadcrumbClassName,
6580
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(MenuContent, { variant: "breadcrumb", children: [
6581
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6582
+ MenuItem,
6583
+ {
6584
+ variant: "breadcrumb",
6585
+ value: parentPageName.toLowerCase(),
6586
+ onClick: handleBackToParent,
6587
+ separator: true,
6588
+ className: "text-text-600 underline cursor-pointer hover:text-text-950",
6589
+ children: parentPageName
6590
+ }
6591
+ ),
6592
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
6593
+ MenuItem,
6594
+ {
6595
+ variant: "breadcrumb",
6596
+ value: currentPage.toLowerCase(),
6597
+ className: "text-text-950 font-bold",
6598
+ disabled: true,
6599
+ children: currentPage
6600
+ }
6601
+ )
6602
+ ] })
6603
+ }
6604
+ ) });
6605
+ }
6606
+ );
6607
+ Breadcrumb.displayName = "Breadcrumb";
6567
6608
  var Menu_default = Menu;
6568
6609
 
6569
6610
  // src/components/Skeleton/Skeleton.tsx
@@ -8975,6 +9016,7 @@ var QuizListResultByMateria = ({
8975
9016
  AlternativesList,
8976
9017
  AuthProvider,
8977
9018
  Badge,
9019
+ Breadcrumb,
8978
9020
  Button,
8979
9021
  Calendar,
8980
9022
  CardAccordation,