analytica-frontend-lib 1.1.3 → 1.1.5
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/Menu/index.d.mts +1 -27
- package/dist/Menu/index.d.ts +1 -27
- package/dist/Menu/index.js +2 -44
- package/dist/Menu/index.js.map +1 -1
- package/dist/Menu/index.mjs +3 -45
- package/dist/Menu/index.mjs.map +1 -1
- package/dist/index.css +0 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -51
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +0 -3
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6233,8 +6233,7 @@ import {
|
|
|
6233
6233
|
isValidElement as isValidElement5,
|
|
6234
6234
|
Children as Children5,
|
|
6235
6235
|
cloneElement as cloneElement5,
|
|
6236
|
-
useState as useState12
|
|
6237
|
-
useCallback
|
|
6236
|
+
useState as useState12
|
|
6238
6237
|
} from "react";
|
|
6239
6238
|
import { CaretLeft as CaretLeft2, CaretRight as CaretRight3 } from "phosphor-react";
|
|
6240
6239
|
import { jsx as jsx33, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
@@ -6253,7 +6252,7 @@ var useMenuStore = (externalStore) => {
|
|
|
6253
6252
|
var VARIANT_CLASSES5 = {
|
|
6254
6253
|
menu: "bg-background shadow-soft-shadow-1 px-6",
|
|
6255
6254
|
menu2: "",
|
|
6256
|
-
breadcrumb: ""
|
|
6255
|
+
breadcrumb: "bg-transparent shadow-none !px-0 !-ml-2"
|
|
6257
6256
|
};
|
|
6258
6257
|
var Menu = forwardRef17(
|
|
6259
6258
|
({
|
|
@@ -6367,7 +6366,7 @@ var MenuItem = forwardRef17(
|
|
|
6367
6366
|
"data-variant": "menu2",
|
|
6368
6367
|
className: `
|
|
6369
6368
|
w-full flex flex-col items-center px-2 pt-4 gap-3 cursor-pointer focus:rounded-sm justify-center hover:bg-background-100 rounded-lg
|
|
6370
|
-
focus:outline-none focus:border-indicator-info focus:border-2
|
|
6369
|
+
focus:outline-none focus:border-indicator-info focus:border-2
|
|
6371
6370
|
${selectedValue === value ? "" : "pb-4"}
|
|
6372
6371
|
`,
|
|
6373
6372
|
...commonProps,
|
|
@@ -6517,46 +6516,6 @@ var injectStore5 = (children, store) => Children5.map(children, (child) => {
|
|
|
6517
6516
|
...typedChild.props.children ? { children: injectStore5(typedChild.props.children, store) } : {}
|
|
6518
6517
|
});
|
|
6519
6518
|
});
|
|
6520
|
-
var Breadcrumb = forwardRef17(
|
|
6521
|
-
({ currentPage, parentPageName, onBackClick, className, ...props }, ref) => {
|
|
6522
|
-
const handleBackToParent = useCallback(() => {
|
|
6523
|
-
onBackClick();
|
|
6524
|
-
}, [onBackClick]);
|
|
6525
|
-
const breadcrumbClassName = `bg-transparent shadow-none !px-0 py-4 !-ml-2 ${typeof className === "string" ? className : ""}`;
|
|
6526
|
-
return /* @__PURE__ */ jsx33("div", { ref, ...props, children: /* @__PURE__ */ jsx33(
|
|
6527
|
-
Menu,
|
|
6528
|
-
{
|
|
6529
|
-
variant: "breadcrumb",
|
|
6530
|
-
defaultValue: "",
|
|
6531
|
-
className: breadcrumbClassName,
|
|
6532
|
-
children: /* @__PURE__ */ jsxs27(MenuContent, { variant: "breadcrumb", children: [
|
|
6533
|
-
/* @__PURE__ */ jsx33(
|
|
6534
|
-
MenuItem,
|
|
6535
|
-
{
|
|
6536
|
-
variant: "breadcrumb",
|
|
6537
|
-
value: parentPageName.toLowerCase(),
|
|
6538
|
-
onClick: handleBackToParent,
|
|
6539
|
-
separator: true,
|
|
6540
|
-
className: "text-text-600 underline cursor-pointer hover:text-text-950",
|
|
6541
|
-
children: parentPageName
|
|
6542
|
-
}
|
|
6543
|
-
),
|
|
6544
|
-
/* @__PURE__ */ jsx33(
|
|
6545
|
-
MenuItem,
|
|
6546
|
-
{
|
|
6547
|
-
variant: "breadcrumb",
|
|
6548
|
-
value: currentPage.toLowerCase(),
|
|
6549
|
-
className: "text-text-950 font-bold",
|
|
6550
|
-
disabled: true,
|
|
6551
|
-
children: currentPage
|
|
6552
|
-
}
|
|
6553
|
-
)
|
|
6554
|
-
] })
|
|
6555
|
-
}
|
|
6556
|
-
) });
|
|
6557
|
-
}
|
|
6558
|
-
);
|
|
6559
|
-
Breadcrumb.displayName = "Breadcrumb";
|
|
6560
6519
|
var Menu_default = Menu;
|
|
6561
6520
|
|
|
6562
6521
|
// src/components/Skeleton/Skeleton.tsx
|
|
@@ -6818,7 +6777,7 @@ import {
|
|
|
6818
6777
|
useContext,
|
|
6819
6778
|
useEffect as useEffect11,
|
|
6820
6779
|
useState as useState13,
|
|
6821
|
-
useCallback
|
|
6780
|
+
useCallback,
|
|
6822
6781
|
useMemo as useMemo4
|
|
6823
6782
|
} from "react";
|
|
6824
6783
|
import { useLocation, Navigate } from "react-router-dom";
|
|
@@ -6838,7 +6797,7 @@ var AuthProvider = ({
|
|
|
6838
6797
|
isLoading: true,
|
|
6839
6798
|
...initialAuthState
|
|
6840
6799
|
});
|
|
6841
|
-
const checkAuth =
|
|
6800
|
+
const checkAuth = useCallback(async () => {
|
|
6842
6801
|
try {
|
|
6843
6802
|
setAuthState((prev) => ({ ...prev, isLoading: true }));
|
|
6844
6803
|
if (!checkAuthFn) {
|
|
@@ -6869,7 +6828,7 @@ var AuthProvider = ({
|
|
|
6869
6828
|
return false;
|
|
6870
6829
|
}
|
|
6871
6830
|
}, [checkAuthFn, getUserFn, getSessionFn, getTokensFn]);
|
|
6872
|
-
const signOut =
|
|
6831
|
+
const signOut = useCallback(() => {
|
|
6873
6832
|
if (signOutFn) {
|
|
6874
6833
|
signOutFn();
|
|
6875
6834
|
}
|
|
@@ -7137,7 +7096,7 @@ import {
|
|
|
7137
7096
|
useMemo as useMemo6,
|
|
7138
7097
|
useId as useId10,
|
|
7139
7098
|
useState as useState14,
|
|
7140
|
-
useCallback as
|
|
7099
|
+
useCallback as useCallback2,
|
|
7141
7100
|
useRef as useRef9
|
|
7142
7101
|
} from "react";
|
|
7143
7102
|
|
|
@@ -7858,7 +7817,7 @@ var QuizMultipleChoice = ({
|
|
|
7858
7817
|
}
|
|
7859
7818
|
return prevSelectedValuesRef.current;
|
|
7860
7819
|
}, [selectedValues, currentQuestion?.id]);
|
|
7861
|
-
const handleSelectedValues =
|
|
7820
|
+
const handleSelectedValues = useCallback2(
|
|
7862
7821
|
(values) => {
|
|
7863
7822
|
if (currentQuestion) {
|
|
7864
7823
|
selectMultipleAnswer(currentQuestion.id, values);
|
|
@@ -7916,7 +7875,7 @@ var QuizDissertative = ({
|
|
|
7916
7875
|
selectDissertativeAnswer(currentQuestion.id, value);
|
|
7917
7876
|
}
|
|
7918
7877
|
};
|
|
7919
|
-
const adjustTextareaHeight =
|
|
7878
|
+
const adjustTextareaHeight = useCallback2(() => {
|
|
7920
7879
|
if (textareaRef.current) {
|
|
7921
7880
|
textareaRef.current.style.height = "auto";
|
|
7922
7881
|
const scrollHeight = textareaRef.current.scrollHeight;
|
|
@@ -9019,7 +8978,6 @@ export {
|
|
|
9019
8978
|
AlternativesList,
|
|
9020
8979
|
AuthProvider,
|
|
9021
8980
|
Badge_default as Badge,
|
|
9022
|
-
Breadcrumb,
|
|
9023
8981
|
Button_default as Button,
|
|
9024
8982
|
Calendar_default as Calendar,
|
|
9025
8983
|
CardAccordation,
|