analytica-frontend-lib 1.2.13 → 1.2.15
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/AlertManager/index.css +3 -0
- package/dist/AlertManager/index.css.map +1 -1
- package/dist/AlertManager/index.js +7 -3
- package/dist/AlertManager/index.js.map +1 -1
- package/dist/AlertManager/index.mjs +7 -3
- package/dist/AlertManager/index.mjs.map +1 -1
- package/dist/AlertManagerView/index.js +210 -70
- package/dist/AlertManagerView/index.js.map +1 -1
- package/dist/AlertManagerView/index.mjs +214 -71
- package/dist/AlertManagerView/index.mjs.map +1 -1
- package/dist/Table/index.d.mts +14 -0
- package/dist/Table/index.d.ts +14 -0
- package/dist/Table/index.js +279 -30
- package/dist/Table/index.js.map +1 -1
- package/dist/Table/index.mjs +284 -32
- package/dist/Table/index.mjs.map +1 -1
- package/dist/index.css +3 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +770 -655
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +810 -692
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +3 -0
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1150,7 +1150,7 @@ var CheckboxGroup = ({
|
|
|
1150
1150
|
}
|
|
1151
1151
|
const selectedIdsArr = getSelectedIdsForFilters(filters);
|
|
1152
1152
|
if (selectedIdsArr.some((arr) => arr.length === 0)) {
|
|
1153
|
-
return [{ itens:
|
|
1153
|
+
return [{ itens: [] }];
|
|
1154
1154
|
}
|
|
1155
1155
|
const combinations = cartesian(selectedIdsArr);
|
|
1156
1156
|
const groupedMap = {};
|
|
@@ -1160,7 +1160,7 @@ var CheckboxGroup = ({
|
|
|
1160
1160
|
const groupedItems = Object.values(groupedMap).filter(
|
|
1161
1161
|
(g) => g.itens.length
|
|
1162
1162
|
);
|
|
1163
|
-
return groupedItems.length ? groupedItems : [{ itens:
|
|
1163
|
+
return groupedItems.length ? groupedItems : [{ itens: [] }];
|
|
1164
1164
|
};
|
|
1165
1165
|
const formattedItemsMap = useMemo(() => {
|
|
1166
1166
|
const formattedItemsMap2 = {};
|
|
@@ -1383,6 +1383,10 @@ var CheckboxGroup = ({
|
|
|
1383
1383
|
if (hasOnlyOneItem) {
|
|
1384
1384
|
return null;
|
|
1385
1385
|
}
|
|
1386
|
+
const formattedItems = getFormattedItems(category.key);
|
|
1387
|
+
const hasNoItems = formattedItems.every(
|
|
1388
|
+
(group) => !group.itens || group.itens.length === 0
|
|
1389
|
+
);
|
|
1386
1390
|
return /* @__PURE__ */ jsxs8("div", { children: [
|
|
1387
1391
|
/* @__PURE__ */ jsx12(
|
|
1388
1392
|
CardAccordation,
|
|
@@ -1394,7 +1398,7 @@ var CheckboxGroup = ({
|
|
|
1394
1398
|
openAccordion === category.key && "bg-background-50 border-none"
|
|
1395
1399
|
),
|
|
1396
1400
|
trigger: renderAccordionTrigger(category, isEnabled),
|
|
1397
|
-
children: /* @__PURE__ */ jsx12("div", { className: "flex flex-col gap-3 pt-2", children:
|
|
1401
|
+
children: /* @__PURE__ */ jsx12("div", { className: "flex flex-col gap-3 pt-2", children: hasNoItems && isEnabled ? /* @__PURE__ */ jsx12("div", { className: "px-2 py-4", children: /* @__PURE__ */ jsx12(Text_default, { size: "sm", className: "text-text-500 text-center", children: "Sem dados" }) }) : formattedItems.map(
|
|
1398
1402
|
(formattedGroup, idx) => renderFormattedGroup(formattedGroup, idx, category.key)
|
|
1399
1403
|
) })
|
|
1400
1404
|
}
|
|
@@ -2770,10 +2774,44 @@ import {
|
|
|
2770
2774
|
forwardRef as forwardRef8,
|
|
2771
2775
|
useState as useState8,
|
|
2772
2776
|
useMemo as useMemo6,
|
|
2773
|
-
useEffect as useEffect7
|
|
2777
|
+
useEffect as useEffect7,
|
|
2778
|
+
Children as Children2,
|
|
2779
|
+
isValidElement as isValidElement2,
|
|
2780
|
+
cloneElement as cloneElement2
|
|
2774
2781
|
} from "react";
|
|
2775
2782
|
import { CaretUp, CaretDown } from "phosphor-react";
|
|
2783
|
+
|
|
2784
|
+
// src/components/NoSearchResult/NoSearchResult.tsx
|
|
2776
2785
|
import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2786
|
+
var NoSearchResult = ({ image, title, description }) => {
|
|
2787
|
+
const displayTitle = title || "Nenhum resultado encontrado";
|
|
2788
|
+
const displayDescription = description || "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave.";
|
|
2789
|
+
return /* @__PURE__ */ jsxs17("div", { className: "flex flex-row justify-center items-center gap-8 w-full max-w-4xl min-h-96", children: [
|
|
2790
|
+
/* @__PURE__ */ jsx22("div", { className: "w-72 h-72 flex-shrink-0 relative", children: /* @__PURE__ */ jsx22(
|
|
2791
|
+
"img",
|
|
2792
|
+
{
|
|
2793
|
+
src: image,
|
|
2794
|
+
alt: "No search results",
|
|
2795
|
+
className: "w-full h-full object-contain"
|
|
2796
|
+
}
|
|
2797
|
+
) }),
|
|
2798
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex flex-col items-start w-full max-w-md", children: [
|
|
2799
|
+
/* @__PURE__ */ jsx22("div", { className: "flex flex-row justify-between items-end px-6 pt-6 pb-4 w-full rounded-t-xl", children: /* @__PURE__ */ jsx22(
|
|
2800
|
+
Text_default,
|
|
2801
|
+
{
|
|
2802
|
+
as: "h2",
|
|
2803
|
+
className: "text-text-950 font-semibold text-3xl leading-tight w-full flex items-center",
|
|
2804
|
+
children: displayTitle
|
|
2805
|
+
}
|
|
2806
|
+
) }),
|
|
2807
|
+
/* @__PURE__ */ jsx22("div", { className: "flex flex-row justify-center items-center px-6 gap-2 w-full", children: /* @__PURE__ */ jsx22(Text_default, { className: "text-text-600 font-normal text-lg leading-relaxed w-full text-justify", children: displayDescription }) })
|
|
2808
|
+
] })
|
|
2809
|
+
] });
|
|
2810
|
+
};
|
|
2811
|
+
var NoSearchResult_default = NoSearchResult;
|
|
2812
|
+
|
|
2813
|
+
// src/components/Table/Table.tsx
|
|
2814
|
+
import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2777
2815
|
function useTableSort(data, options = {}) {
|
|
2778
2816
|
const { syncWithUrl = false } = options;
|
|
2779
2817
|
const getInitialState = () => {
|
|
@@ -2844,33 +2882,142 @@ function useTableSort(data, options = {}) {
|
|
|
2844
2882
|
return { sortedData, sortColumn, sortDirection, handleSort };
|
|
2845
2883
|
}
|
|
2846
2884
|
var Table = forwardRef8(
|
|
2847
|
-
({
|
|
2848
|
-
"
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2885
|
+
({
|
|
2886
|
+
variant = "default",
|
|
2887
|
+
className,
|
|
2888
|
+
children,
|
|
2889
|
+
searchTerm,
|
|
2890
|
+
noSearchResultImage,
|
|
2891
|
+
noSearchResultTitle = "Nenhum resultado encontrado",
|
|
2892
|
+
noSearchResultDescription = "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave.",
|
|
2893
|
+
emptyStateMessage = "Nenhum dado dispon\xEDvel no momento.",
|
|
2894
|
+
emptyStateButtonText = "Adicionar item",
|
|
2895
|
+
onEmptyStateButtonClick,
|
|
2896
|
+
...props
|
|
2897
|
+
}, ref) => {
|
|
2898
|
+
const isTableBodyEmpty = useMemo6(() => {
|
|
2899
|
+
let foundBody = false;
|
|
2900
|
+
let empty = true;
|
|
2901
|
+
Children2.forEach(children, (child) => {
|
|
2902
|
+
if (isValidElement2(child) && child.type === TableBody) {
|
|
2903
|
+
foundBody = true;
|
|
2904
|
+
const bodyProps = child.props;
|
|
2905
|
+
if (Children2.count(bodyProps?.children) > 0) {
|
|
2906
|
+
empty = false;
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
});
|
|
2910
|
+
return foundBody ? empty : false;
|
|
2911
|
+
}, [children]);
|
|
2912
|
+
const columnCount = useMemo6(() => {
|
|
2913
|
+
let count = 0;
|
|
2914
|
+
Children2.forEach(children, (child) => {
|
|
2915
|
+
if (isValidElement2(child) && child.type === TableHeader) {
|
|
2916
|
+
const headerProps = child.props;
|
|
2917
|
+
Children2.forEach(headerProps.children, (row) => {
|
|
2918
|
+
if (isValidElement2(row) && row.type === TableRow) {
|
|
2919
|
+
const rowProps = row.props;
|
|
2920
|
+
count = Children2.count(rowProps.children);
|
|
2921
|
+
}
|
|
2922
|
+
});
|
|
2923
|
+
}
|
|
2924
|
+
});
|
|
2925
|
+
return count || 1;
|
|
2926
|
+
}, [children]);
|
|
2927
|
+
const hasSearchTerm = searchTerm && searchTerm.trim() !== "";
|
|
2928
|
+
const showNoSearchResult = hasSearchTerm && isTableBodyEmpty;
|
|
2929
|
+
const showEmptyState = !hasSearchTerm && isTableBodyEmpty;
|
|
2930
|
+
if (showNoSearchResult) {
|
|
2931
|
+
return /* @__PURE__ */ jsxs18(
|
|
2932
|
+
"div",
|
|
2856
2933
|
{
|
|
2857
|
-
ref,
|
|
2858
2934
|
className: cn(
|
|
2859
|
-
"
|
|
2860
|
-
|
|
2935
|
+
"relative w-full overflow-x-auto",
|
|
2936
|
+
variant === "default" && "border border-border-200 rounded-xl"
|
|
2861
2937
|
),
|
|
2862
|
-
...props,
|
|
2863
2938
|
children: [
|
|
2864
|
-
/* @__PURE__ */
|
|
2865
|
-
|
|
2939
|
+
/* @__PURE__ */ jsx23(
|
|
2940
|
+
"table",
|
|
2941
|
+
{
|
|
2942
|
+
ref,
|
|
2943
|
+
className: cn(
|
|
2944
|
+
"analytica-table w-full caption-bottom text-sm border-separate border-spacing-0",
|
|
2945
|
+
className
|
|
2946
|
+
),
|
|
2947
|
+
...props,
|
|
2948
|
+
children: Children2.map(children, (child) => {
|
|
2949
|
+
if (isValidElement2(child) && (child.type === TableCaption || child.type === TableHeader)) {
|
|
2950
|
+
return child;
|
|
2951
|
+
}
|
|
2952
|
+
return null;
|
|
2953
|
+
})
|
|
2954
|
+
}
|
|
2955
|
+
),
|
|
2956
|
+
/* @__PURE__ */ jsx23("div", { className: "py-8 flex justify-center", children: noSearchResultImage ? /* @__PURE__ */ jsx23(
|
|
2957
|
+
NoSearchResult_default,
|
|
2958
|
+
{
|
|
2959
|
+
image: noSearchResultImage,
|
|
2960
|
+
title: noSearchResultTitle,
|
|
2961
|
+
description: noSearchResultDescription
|
|
2962
|
+
}
|
|
2963
|
+
) : /* @__PURE__ */ jsxs18("div", { className: "text-center", children: [
|
|
2964
|
+
/* @__PURE__ */ jsx23("p", { className: "text-text-600 text-lg font-semibold mb-2", children: noSearchResultTitle }),
|
|
2965
|
+
/* @__PURE__ */ jsx23("p", { className: "text-text-500 text-sm", children: noSearchResultDescription })
|
|
2966
|
+
] }) })
|
|
2866
2967
|
]
|
|
2867
2968
|
}
|
|
2868
|
-
)
|
|
2969
|
+
);
|
|
2869
2970
|
}
|
|
2870
|
-
|
|
2971
|
+
const modifiedChildren = Children2.map(children, (child) => {
|
|
2972
|
+
if (isValidElement2(child) && child.type === TableBody && showEmptyState) {
|
|
2973
|
+
return cloneElement2(child, {
|
|
2974
|
+
children: /* @__PURE__ */ jsx23(TableRow, { variant, children: /* @__PURE__ */ jsx23(TableCell, { colSpan: columnCount, children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col items-center justify-center py-12 gap-4", children: [
|
|
2975
|
+
/* @__PURE__ */ jsx23("p", { className: "text-text-600 text-base font-normal", children: emptyStateMessage }),
|
|
2976
|
+
onEmptyStateButtonClick && /* @__PURE__ */ jsx23(
|
|
2977
|
+
Button_default,
|
|
2978
|
+
{
|
|
2979
|
+
variant: "solid",
|
|
2980
|
+
action: "primary",
|
|
2981
|
+
size: "medium",
|
|
2982
|
+
onClick: onEmptyStateButtonClick,
|
|
2983
|
+
children: emptyStateButtonText
|
|
2984
|
+
}
|
|
2985
|
+
)
|
|
2986
|
+
] }) }) })
|
|
2987
|
+
});
|
|
2988
|
+
}
|
|
2989
|
+
return child;
|
|
2990
|
+
});
|
|
2991
|
+
return /* @__PURE__ */ jsx23(
|
|
2992
|
+
"div",
|
|
2993
|
+
{
|
|
2994
|
+
className: cn(
|
|
2995
|
+
"relative w-full overflow-x-auto",
|
|
2996
|
+
variant === "default" && "border border-border-200 rounded-xl"
|
|
2997
|
+
),
|
|
2998
|
+
children: /* @__PURE__ */ jsxs18(
|
|
2999
|
+
"table",
|
|
3000
|
+
{
|
|
3001
|
+
ref,
|
|
3002
|
+
className: cn(
|
|
3003
|
+
"analytica-table w-full caption-bottom text-sm border-separate border-spacing-0",
|
|
3004
|
+
className
|
|
3005
|
+
),
|
|
3006
|
+
...props,
|
|
3007
|
+
children: [
|
|
3008
|
+
!Children2.toArray(children).some(
|
|
3009
|
+
(child) => isValidElement2(child) && child.type === TableCaption
|
|
3010
|
+
) && /* @__PURE__ */ jsx23("caption", { className: "sr-only", children: "My Table" }),
|
|
3011
|
+
modifiedChildren
|
|
3012
|
+
]
|
|
3013
|
+
}
|
|
3014
|
+
)
|
|
3015
|
+
}
|
|
3016
|
+
);
|
|
3017
|
+
}
|
|
2871
3018
|
);
|
|
2872
3019
|
Table.displayName = "Table";
|
|
2873
|
-
var TableHeader = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3020
|
+
var TableHeader = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2874
3021
|
"thead",
|
|
2875
3022
|
{
|
|
2876
3023
|
ref,
|
|
@@ -2880,7 +3027,7 @@ var TableHeader = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
2880
3027
|
));
|
|
2881
3028
|
TableHeader.displayName = "TableHeader";
|
|
2882
3029
|
var TableBody = forwardRef8(
|
|
2883
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3030
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2884
3031
|
"tbody",
|
|
2885
3032
|
{
|
|
2886
3033
|
ref,
|
|
@@ -2891,7 +3038,7 @@ var TableBody = forwardRef8(
|
|
|
2891
3038
|
);
|
|
2892
3039
|
TableBody.displayName = "TableBody";
|
|
2893
3040
|
var TableFooter = forwardRef8(
|
|
2894
|
-
({ variant = "default", className, ...props }, ref) => /* @__PURE__ */
|
|
3041
|
+
({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2895
3042
|
"tfoot",
|
|
2896
3043
|
{
|
|
2897
3044
|
ref,
|
|
@@ -2931,14 +3078,14 @@ var TableRow = forwardRef8(
|
|
|
2931
3078
|
className,
|
|
2932
3079
|
...props
|
|
2933
3080
|
}, ref) => {
|
|
2934
|
-
return /* @__PURE__ */
|
|
3081
|
+
return /* @__PURE__ */ jsx23(
|
|
2935
3082
|
"tr",
|
|
2936
3083
|
{
|
|
2937
3084
|
ref,
|
|
2938
3085
|
className: cn(
|
|
2939
3086
|
"transition-colors",
|
|
2940
|
-
state
|
|
2941
|
-
|
|
3087
|
+
state === "disabled" ? "" : "hover:bg-muted/50",
|
|
3088
|
+
state === "disabled" || !clickable ? "" : "cursor-pointer",
|
|
2942
3089
|
VARIANT_STATES_ROW[state][variant],
|
|
2943
3090
|
className
|
|
2944
3091
|
),
|
|
@@ -2963,7 +3110,7 @@ var TableHead = forwardRef8(
|
|
|
2963
3110
|
onSort();
|
|
2964
3111
|
}
|
|
2965
3112
|
};
|
|
2966
|
-
return /* @__PURE__ */
|
|
3113
|
+
return /* @__PURE__ */ jsx23(
|
|
2967
3114
|
"th",
|
|
2968
3115
|
{
|
|
2969
3116
|
ref,
|
|
@@ -2974,11 +3121,11 @@ var TableHead = forwardRef8(
|
|
|
2974
3121
|
),
|
|
2975
3122
|
onClick: handleClick,
|
|
2976
3123
|
...props,
|
|
2977
|
-
children: /* @__PURE__ */
|
|
3124
|
+
children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
|
|
2978
3125
|
children,
|
|
2979
|
-
sortable && /* @__PURE__ */
|
|
2980
|
-
sortDirection === "asc" && /* @__PURE__ */
|
|
2981
|
-
sortDirection === "desc" && /* @__PURE__ */
|
|
3126
|
+
sortable && /* @__PURE__ */ jsxs18("div", { className: "flex flex-col", children: [
|
|
3127
|
+
sortDirection === "asc" && /* @__PURE__ */ jsx23(CaretUp, { size: 16, weight: "fill", className: "text-text-800" }),
|
|
3128
|
+
sortDirection === "desc" && /* @__PURE__ */ jsx23(CaretDown, { size: 16, weight: "fill", className: "text-text-800" })
|
|
2982
3129
|
] })
|
|
2983
3130
|
] })
|
|
2984
3131
|
}
|
|
@@ -2986,7 +3133,7 @@ var TableHead = forwardRef8(
|
|
|
2986
3133
|
}
|
|
2987
3134
|
);
|
|
2988
3135
|
TableHead.displayName = "TableHead";
|
|
2989
|
-
var TableCell = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3136
|
+
var TableCell = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2990
3137
|
"td",
|
|
2991
3138
|
{
|
|
2992
3139
|
ref,
|
|
@@ -2998,7 +3145,7 @@ var TableCell = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */ js
|
|
|
2998
3145
|
}
|
|
2999
3146
|
));
|
|
3000
3147
|
TableCell.displayName = "TableCell";
|
|
3001
|
-
var TableCaption = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3148
|
+
var TableCaption = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
3002
3149
|
"caption",
|
|
3003
3150
|
{
|
|
3004
3151
|
ref,
|
|
@@ -3014,7 +3161,7 @@ var Table_default = Table;
|
|
|
3014
3161
|
|
|
3015
3162
|
// src/components/AlertManagerView/AlertsManagerView.tsx
|
|
3016
3163
|
import { CaretLeft as CaretLeft2, CaretRight as CaretRight2, User } from "phosphor-react";
|
|
3017
|
-
import { Fragment, jsx as
|
|
3164
|
+
import { Fragment, jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3018
3165
|
var AlertsManagerView = ({
|
|
3019
3166
|
alertData,
|
|
3020
3167
|
isOpen = false,
|
|
@@ -3057,7 +3204,7 @@ var AlertsManagerView = ({
|
|
|
3057
3204
|
year: "numeric"
|
|
3058
3205
|
});
|
|
3059
3206
|
};
|
|
3060
|
-
return /* @__PURE__ */
|
|
3207
|
+
return /* @__PURE__ */ jsx24(
|
|
3061
3208
|
Modal_default,
|
|
3062
3209
|
{
|
|
3063
3210
|
isOpen,
|
|
@@ -3065,59 +3212,59 @@ var AlertsManagerView = ({
|
|
|
3065
3212
|
title: alertData.title,
|
|
3066
3213
|
size: "md",
|
|
3067
3214
|
contentClassName: "p-0",
|
|
3068
|
-
children: /* @__PURE__ */
|
|
3069
|
-
/* @__PURE__ */
|
|
3070
|
-
/* @__PURE__ */
|
|
3215
|
+
children: /* @__PURE__ */ jsx24("div", { className: "flex flex-col h-[calc(100vh-8rem)] max-h-[700px]", children: /* @__PURE__ */ jsxs19("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: [
|
|
3216
|
+
/* @__PURE__ */ jsxs19("div", { className: "bg-background-50 px-5 py-6 flex flex-col items-center gap-4 rounded-xl mb-4", children: [
|
|
3217
|
+
/* @__PURE__ */ jsx24(
|
|
3071
3218
|
"img",
|
|
3072
3219
|
{
|
|
3073
3220
|
src: imageUrl || notification_default,
|
|
3074
3221
|
alt: alertData.title || "Imagem do alerta"
|
|
3075
3222
|
}
|
|
3076
3223
|
),
|
|
3077
|
-
/* @__PURE__ */
|
|
3078
|
-
/* @__PURE__ */
|
|
3079
|
-
/* @__PURE__ */
|
|
3224
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex flex-col items-center text-center gap-3", children: [
|
|
3225
|
+
/* @__PURE__ */ jsx24(Text_default, { size: "lg", weight: "semibold", children: alertData.title || "Sem T\xEDtulo" }),
|
|
3226
|
+
/* @__PURE__ */ jsx24(Text_default, { size: "sm", weight: "normal", className: "text-text-500", children: alertData.message || "Sem mensagem" })
|
|
3080
3227
|
] })
|
|
3081
3228
|
] }),
|
|
3082
|
-
/* @__PURE__ */
|
|
3083
|
-
/* @__PURE__ */
|
|
3084
|
-
/* @__PURE__ */
|
|
3085
|
-
/* @__PURE__ */
|
|
3229
|
+
/* @__PURE__ */ jsx24(Divider_default, { className: "my-4" }),
|
|
3230
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex justify-between items-center mb-4 px-2", children: [
|
|
3231
|
+
/* @__PURE__ */ jsx24(Text_default, { size: "sm", weight: "bold", className: "text-text-700", children: "Enviado em" }),
|
|
3232
|
+
/* @__PURE__ */ jsx24(Text_default, { size: "sm", weight: "medium", className: "text-text-900", children: formatDate(alertData.sentAt) })
|
|
3086
3233
|
] }),
|
|
3087
|
-
/* @__PURE__ */
|
|
3088
|
-
/* @__PURE__ */
|
|
3089
|
-
/* @__PURE__ */
|
|
3090
|
-
/* @__PURE__ */
|
|
3091
|
-
/* @__PURE__ */
|
|
3234
|
+
/* @__PURE__ */ jsx24(Divider_default, { className: "my-4" }),
|
|
3235
|
+
/* @__PURE__ */ jsx24("div", { className: "mb-4", children: /* @__PURE__ */ jsxs19(Table_default, { variant: "borderless", className: "table-fixed", children: [
|
|
3236
|
+
/* @__PURE__ */ jsx24(TableHeader, { children: /* @__PURE__ */ jsxs19(TableRow, { variant: "borderless", children: [
|
|
3237
|
+
/* @__PURE__ */ jsx24(TableHead, { className: "py-2 px-3.5 text-start", children: "Destinat\xE1rio" }),
|
|
3238
|
+
/* @__PURE__ */ jsx24(TableHead, { className: "py-2 px-3.5 w-[120px] text-start", children: "Status" })
|
|
3092
3239
|
] }) }),
|
|
3093
|
-
/* @__PURE__ */
|
|
3094
|
-
/* @__PURE__ */
|
|
3095
|
-
/* @__PURE__ */
|
|
3240
|
+
/* @__PURE__ */ jsx24(TableBody, { variant: "borderless", children: paginatedRecipients.map((recipient) => /* @__PURE__ */ jsxs19(TableRow, { children: [
|
|
3241
|
+
/* @__PURE__ */ jsxs19(TableCell, { className: "py-2 px-3.5 flex flex-row gap-2 text-start truncate", children: [
|
|
3242
|
+
/* @__PURE__ */ jsx24("div", { className: "rounded-full size-6 bg-primary-100 flex items-center justify-center", children: /* @__PURE__ */ jsx24(User, { className: "text-primary-950", size: 18 }) }),
|
|
3096
3243
|
recipient.name
|
|
3097
3244
|
] }),
|
|
3098
|
-
/* @__PURE__ */
|
|
3245
|
+
/* @__PURE__ */ jsx24(TableCell, { className: "py-2 px-3.5 text-center", children: /* @__PURE__ */ jsx24("div", { className: "flex justify-center items-center gap-1", children: recipient.status === "viewed" ? /* @__PURE__ */ jsx24(Badge_default, { variant: "solid", action: "success", children: "Visualizado" }) : /* @__PURE__ */ jsx24(Badge_default, { variant: "solid", action: "error", children: "Pendente" }) }) })
|
|
3099
3246
|
] }, recipient.id)) })
|
|
3100
3247
|
] }) }),
|
|
3101
|
-
totalPages > 1 && /* @__PURE__ */
|
|
3102
|
-
/* @__PURE__ */
|
|
3248
|
+
totalPages > 1 && /* @__PURE__ */ jsxs19("div", { className: "flex justify-end items-center gap-2 bg-background-50 border border-border-200 py-3.5 px-2 rounded-b-2xl", children: [
|
|
3249
|
+
/* @__PURE__ */ jsxs19(Text_default, { size: "sm", className: "text-text-600", children: [
|
|
3103
3250
|
"P\xE1gina ",
|
|
3104
3251
|
effectiveCurrentPage,
|
|
3105
3252
|
" de ",
|
|
3106
3253
|
totalPages
|
|
3107
3254
|
] }),
|
|
3108
|
-
/* @__PURE__ */
|
|
3109
|
-
/* @__PURE__ */
|
|
3255
|
+
/* @__PURE__ */ jsx24("div", { className: "flex gap-2", children: onPageChange ? /* @__PURE__ */ jsxs19(Fragment, { children: [
|
|
3256
|
+
/* @__PURE__ */ jsx24(
|
|
3110
3257
|
Button_default,
|
|
3111
3258
|
{
|
|
3112
3259
|
variant: "link",
|
|
3113
3260
|
size: "extra-small",
|
|
3114
3261
|
onClick: () => onPageChange(Math.max(1, effectiveCurrentPage - 1)),
|
|
3115
3262
|
disabled: effectiveCurrentPage === 1,
|
|
3116
|
-
iconLeft: /* @__PURE__ */
|
|
3263
|
+
iconLeft: /* @__PURE__ */ jsx24(CaretLeft2, {}),
|
|
3117
3264
|
children: "Anterior"
|
|
3118
3265
|
}
|
|
3119
3266
|
),
|
|
3120
|
-
/* @__PURE__ */
|
|
3267
|
+
/* @__PURE__ */ jsx24(
|
|
3121
3268
|
Button_default,
|
|
3122
3269
|
{
|
|
3123
3270
|
variant: "link",
|
|
@@ -3126,28 +3273,28 @@ var AlertsManagerView = ({
|
|
|
3126
3273
|
Math.min(totalPages, effectiveCurrentPage + 1)
|
|
3127
3274
|
),
|
|
3128
3275
|
disabled: effectiveCurrentPage === totalPages,
|
|
3129
|
-
iconRight: /* @__PURE__ */
|
|
3276
|
+
iconRight: /* @__PURE__ */ jsx24(CaretRight2, {}),
|
|
3130
3277
|
children: "Pr\xF3ximo"
|
|
3131
3278
|
}
|
|
3132
3279
|
)
|
|
3133
|
-
] }) : /* @__PURE__ */
|
|
3134
|
-
/* @__PURE__ */
|
|
3280
|
+
] }) : /* @__PURE__ */ jsxs19(Fragment, { children: [
|
|
3281
|
+
/* @__PURE__ */ jsx24(
|
|
3135
3282
|
Button_default,
|
|
3136
3283
|
{
|
|
3137
3284
|
variant: "link",
|
|
3138
3285
|
size: "extra-small",
|
|
3139
3286
|
disabled: effectiveCurrentPage === 1,
|
|
3140
|
-
iconLeft: /* @__PURE__ */
|
|
3287
|
+
iconLeft: /* @__PURE__ */ jsx24(CaretLeft2, {}),
|
|
3141
3288
|
children: "Anterior"
|
|
3142
3289
|
}
|
|
3143
3290
|
),
|
|
3144
|
-
/* @__PURE__ */
|
|
3291
|
+
/* @__PURE__ */ jsx24(
|
|
3145
3292
|
Button_default,
|
|
3146
3293
|
{
|
|
3147
3294
|
variant: "link",
|
|
3148
3295
|
size: "extra-small",
|
|
3149
3296
|
disabled: effectiveCurrentPage === totalPages,
|
|
3150
|
-
iconRight: /* @__PURE__ */
|
|
3297
|
+
iconRight: /* @__PURE__ */ jsx24(CaretRight2, {}),
|
|
3151
3298
|
children: "Pr\xF3ximo"
|
|
3152
3299
|
}
|
|
3153
3300
|
)
|
|
@@ -3165,12 +3312,12 @@ import {
|
|
|
3165
3312
|
useId as useId6,
|
|
3166
3313
|
useEffect as useEffect9,
|
|
3167
3314
|
useRef as useRef4,
|
|
3168
|
-
Children as
|
|
3169
|
-
cloneElement as
|
|
3170
|
-
isValidElement as
|
|
3315
|
+
Children as Children3,
|
|
3316
|
+
cloneElement as cloneElement3,
|
|
3317
|
+
isValidElement as isValidElement3
|
|
3171
3318
|
} from "react";
|
|
3172
3319
|
import { create as create3, useStore as useStore2 } from "zustand";
|
|
3173
|
-
import { jsx as
|
|
3320
|
+
import { jsx as jsx25, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3174
3321
|
var SIZE_CLASSES7 = {
|
|
3175
3322
|
small: {
|
|
3176
3323
|
radio: "w-5 h-5",
|
|
@@ -3309,8 +3456,8 @@ var Radio = forwardRef9(
|
|
|
3309
3456
|
const getCursorClass = () => {
|
|
3310
3457
|
return currentState === "disabled" ? "cursor-not-allowed" : "cursor-pointer";
|
|
3311
3458
|
};
|
|
3312
|
-
return /* @__PURE__ */
|
|
3313
|
-
/* @__PURE__ */
|
|
3459
|
+
return /* @__PURE__ */ jsxs20("div", { className: "flex flex-col", children: [
|
|
3460
|
+
/* @__PURE__ */ jsxs20(
|
|
3314
3461
|
"div",
|
|
3315
3462
|
{
|
|
3316
3463
|
className: cn(
|
|
@@ -3319,7 +3466,7 @@ var Radio = forwardRef9(
|
|
|
3319
3466
|
disabled ? "opacity-40" : ""
|
|
3320
3467
|
),
|
|
3321
3468
|
children: [
|
|
3322
|
-
/* @__PURE__ */
|
|
3469
|
+
/* @__PURE__ */ jsx25(
|
|
3323
3470
|
"input",
|
|
3324
3471
|
{
|
|
3325
3472
|
ref: (node) => {
|
|
@@ -3343,7 +3490,7 @@ var Radio = forwardRef9(
|
|
|
3343
3490
|
...props
|
|
3344
3491
|
}
|
|
3345
3492
|
),
|
|
3346
|
-
/* @__PURE__ */
|
|
3493
|
+
/* @__PURE__ */ jsx25(
|
|
3347
3494
|
"button",
|
|
3348
3495
|
{
|
|
3349
3496
|
type: "button",
|
|
@@ -3368,10 +3515,10 @@ var Radio = forwardRef9(
|
|
|
3368
3515
|
}
|
|
3369
3516
|
}
|
|
3370
3517
|
},
|
|
3371
|
-
children: checked && /* @__PURE__ */
|
|
3518
|
+
children: checked && /* @__PURE__ */ jsx25("div", { className: dotClasses })
|
|
3372
3519
|
}
|
|
3373
3520
|
),
|
|
3374
|
-
label && /* @__PURE__ */
|
|
3521
|
+
label && /* @__PURE__ */ jsx25(
|
|
3375
3522
|
"div",
|
|
3376
3523
|
{
|
|
3377
3524
|
className: cn(
|
|
@@ -3379,7 +3526,7 @@ var Radio = forwardRef9(
|
|
|
3379
3526
|
sizeClasses.labelHeight,
|
|
3380
3527
|
"flex-1 min-w-0"
|
|
3381
3528
|
),
|
|
3382
|
-
children: /* @__PURE__ */
|
|
3529
|
+
children: /* @__PURE__ */ jsx25(
|
|
3383
3530
|
Text_default,
|
|
3384
3531
|
{
|
|
3385
3532
|
as: "label",
|
|
@@ -3400,7 +3547,7 @@ var Radio = forwardRef9(
|
|
|
3400
3547
|
]
|
|
3401
3548
|
}
|
|
3402
3549
|
),
|
|
3403
|
-
errorMessage && /* @__PURE__ */
|
|
3550
|
+
errorMessage && /* @__PURE__ */ jsx25(
|
|
3404
3551
|
Text_default,
|
|
3405
3552
|
{
|
|
3406
3553
|
size: "sm",
|
|
@@ -3410,7 +3557,7 @@ var Radio = forwardRef9(
|
|
|
3410
3557
|
children: errorMessage
|
|
3411
3558
|
}
|
|
3412
3559
|
),
|
|
3413
|
-
helperText && !errorMessage && /* @__PURE__ */
|
|
3560
|
+
helperText && !errorMessage && /* @__PURE__ */ jsx25(
|
|
3414
3561
|
Text_default,
|
|
3415
3562
|
{
|
|
3416
3563
|
size: "sm",
|
|
@@ -3442,11 +3589,11 @@ var useRadioGroupStore = (externalStore) => {
|
|
|
3442
3589
|
}
|
|
3443
3590
|
return externalStore;
|
|
3444
3591
|
};
|
|
3445
|
-
var injectStore2 = (children, store) =>
|
|
3446
|
-
if (!
|
|
3592
|
+
var injectStore2 = (children, store) => Children3.map(children, (child) => {
|
|
3593
|
+
if (!isValidElement3(child)) return child;
|
|
3447
3594
|
const typedChild = child;
|
|
3448
3595
|
const shouldInject = typedChild.type === RadioGroupItem;
|
|
3449
|
-
return
|
|
3596
|
+
return cloneElement3(typedChild, {
|
|
3450
3597
|
...shouldInject ? { store } : {},
|
|
3451
3598
|
...typedChild.props.children ? { children: injectStore2(typedChild.props.children, store) } : {}
|
|
3452
3599
|
});
|
|
@@ -3487,7 +3634,7 @@ var RadioGroup = forwardRef9(
|
|
|
3487
3634
|
useEffect9(() => {
|
|
3488
3635
|
store.setState({ disabled });
|
|
3489
3636
|
}, [disabled, store]);
|
|
3490
|
-
return /* @__PURE__ */
|
|
3637
|
+
return /* @__PURE__ */ jsx25(
|
|
3491
3638
|
"div",
|
|
3492
3639
|
{
|
|
3493
3640
|
ref,
|
|
@@ -3524,7 +3671,7 @@ var RadioGroupItem = forwardRef9(
|
|
|
3524
3671
|
const isChecked = groupValue === value;
|
|
3525
3672
|
const isDisabled = groupDisabled || itemDisabled;
|
|
3526
3673
|
const currentState = isDisabled ? "disabled" : state;
|
|
3527
|
-
return /* @__PURE__ */
|
|
3674
|
+
return /* @__PURE__ */ jsx25(
|
|
3528
3675
|
Radio,
|
|
3529
3676
|
{
|
|
3530
3677
|
ref,
|
|
@@ -3551,7 +3698,7 @@ var Radio_default = Radio;
|
|
|
3551
3698
|
|
|
3552
3699
|
// src/components/Toast/Toast.tsx
|
|
3553
3700
|
import { CheckCircle as CheckCircle2, WarningCircle as WarningCircle4, Info as Info2, X as X3 } from "phosphor-react";
|
|
3554
|
-
import { jsx as
|
|
3701
|
+
import { jsx as jsx26, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3555
3702
|
var VARIANT_ACTION_CLASSES4 = {
|
|
3556
3703
|
solid: {
|
|
3557
3704
|
warning: "bg-warning text-warning-600 border-none focus-visible:outline-none",
|
|
@@ -3591,7 +3738,7 @@ var Toast = ({
|
|
|
3591
3738
|
};
|
|
3592
3739
|
const IconAction = iconMap[action] || iconMap["success"];
|
|
3593
3740
|
const baseClasses = "max-w-[390px] w-full flex flex-row items-start justify-between shadow-lg rounded-lg border p-4 gap-6 group";
|
|
3594
|
-
return /* @__PURE__ */
|
|
3741
|
+
return /* @__PURE__ */ jsxs21(
|
|
3595
3742
|
"div",
|
|
3596
3743
|
{
|
|
3597
3744
|
role: "alert",
|
|
@@ -3605,20 +3752,20 @@ var Toast = ({
|
|
|
3605
3752
|
),
|
|
3606
3753
|
...props,
|
|
3607
3754
|
children: [
|
|
3608
|
-
/* @__PURE__ */
|
|
3609
|
-
/* @__PURE__ */
|
|
3610
|
-
/* @__PURE__ */
|
|
3611
|
-
/* @__PURE__ */
|
|
3612
|
-
description && /* @__PURE__ */
|
|
3755
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-row items-start gap-3", children: [
|
|
3756
|
+
/* @__PURE__ */ jsx26("span", { className: "mt-1", "data-testid": `toast-icon-${action}`, children: /* @__PURE__ */ jsx26(IconAction, {}) }),
|
|
3757
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-col items-start justify-start", children: [
|
|
3758
|
+
/* @__PURE__ */ jsx26("p", { className: "font-semibold text-md", children: title }),
|
|
3759
|
+
description && /* @__PURE__ */ jsx26("p", { className: "text-md text-text-900", children: description })
|
|
3613
3760
|
] })
|
|
3614
3761
|
] }),
|
|
3615
|
-
/* @__PURE__ */
|
|
3762
|
+
/* @__PURE__ */ jsx26(
|
|
3616
3763
|
"button",
|
|
3617
3764
|
{
|
|
3618
3765
|
onClick: onClose,
|
|
3619
3766
|
"aria-label": "Dismiss notification",
|
|
3620
3767
|
className: "text-background-500 cursor-pointer opacity-0 group-hover:opacity-100 transition-opacity",
|
|
3621
|
-
children: /* @__PURE__ */
|
|
3768
|
+
children: /* @__PURE__ */ jsx26(X3, {})
|
|
3622
3769
|
}
|
|
3623
3770
|
)
|
|
3624
3771
|
]
|
|
@@ -3646,11 +3793,11 @@ var useToastStore = create4((set) => ({
|
|
|
3646
3793
|
var ToastStore_default = useToastStore;
|
|
3647
3794
|
|
|
3648
3795
|
// src/components/Toast/utils/Toaster.tsx
|
|
3649
|
-
import { Fragment as Fragment2, jsx as
|
|
3796
|
+
import { Fragment as Fragment2, jsx as jsx27 } from "react/jsx-runtime";
|
|
3650
3797
|
var Toaster = () => {
|
|
3651
3798
|
const toasts = ToastStore_default((state) => state.toasts);
|
|
3652
3799
|
const removeToast = ToastStore_default((state) => state.removeToast);
|
|
3653
|
-
return /* @__PURE__ */
|
|
3800
|
+
return /* @__PURE__ */ jsx27(Fragment2, { children: toasts.map((toast) => /* @__PURE__ */ jsx27(
|
|
3654
3801
|
Toast_default,
|
|
3655
3802
|
{
|
|
3656
3803
|
title: toast.title,
|
|
@@ -3682,9 +3829,9 @@ import {
|
|
|
3682
3829
|
forwardRef as forwardRef10,
|
|
3683
3830
|
useEffect as useEffect12,
|
|
3684
3831
|
useRef as useRef5,
|
|
3685
|
-
isValidElement as
|
|
3686
|
-
Children as
|
|
3687
|
-
cloneElement as
|
|
3832
|
+
isValidElement as isValidElement4,
|
|
3833
|
+
Children as Children4,
|
|
3834
|
+
cloneElement as cloneElement4,
|
|
3688
3835
|
useState as useState11
|
|
3689
3836
|
} from "react";
|
|
3690
3837
|
import { create as create6, useStore as useStore3 } from "zustand";
|
|
@@ -3815,7 +3962,7 @@ var useTheme = () => {
|
|
|
3815
3962
|
};
|
|
3816
3963
|
|
|
3817
3964
|
// src/components/ThemeToggle/ThemeToggle.tsx
|
|
3818
|
-
import { jsx as
|
|
3965
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3819
3966
|
var ThemeToggle = ({
|
|
3820
3967
|
variant = "default",
|
|
3821
3968
|
onToggle
|
|
@@ -3829,17 +3976,17 @@ var ThemeToggle = ({
|
|
|
3829
3976
|
{
|
|
3830
3977
|
id: "light",
|
|
3831
3978
|
title: "Claro",
|
|
3832
|
-
icon: /* @__PURE__ */
|
|
3979
|
+
icon: /* @__PURE__ */ jsx28(Sun, { size: 24 })
|
|
3833
3980
|
},
|
|
3834
3981
|
{
|
|
3835
3982
|
id: "dark",
|
|
3836
3983
|
title: "Escuro",
|
|
3837
|
-
icon: /* @__PURE__ */
|
|
3984
|
+
icon: /* @__PURE__ */ jsx28(Moon, { size: 24 })
|
|
3838
3985
|
},
|
|
3839
3986
|
{
|
|
3840
3987
|
id: "system",
|
|
3841
3988
|
title: "Sistema",
|
|
3842
|
-
icon: /* @__PURE__ */
|
|
3989
|
+
icon: /* @__PURE__ */ jsx28(
|
|
3843
3990
|
"svg",
|
|
3844
3991
|
{
|
|
3845
3992
|
width: "25",
|
|
@@ -3847,7 +3994,7 @@ var ThemeToggle = ({
|
|
|
3847
3994
|
viewBox: "0 0 25 25",
|
|
3848
3995
|
fill: "none",
|
|
3849
3996
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3850
|
-
children: /* @__PURE__ */
|
|
3997
|
+
children: /* @__PURE__ */ jsx28(
|
|
3851
3998
|
"path",
|
|
3852
3999
|
{
|
|
3853
4000
|
d: "M12.5 2.75C15.085 2.75276 17.5637 3.78054 19.3916 5.6084C21.2195 7.43628 22.2473 9.915 22.25 12.5C22.25 14.4284 21.6778 16.3136 20.6064 17.917C19.5352 19.5201 18.0128 20.7699 16.2314 21.5078C14.4499 22.2458 12.489 22.4387 10.5977 22.0625C8.70642 21.6863 6.96899 20.758 5.60547 19.3945C4.24197 18.031 3.31374 16.2936 2.9375 14.4023C2.56129 12.511 2.75423 10.5501 3.49219 8.76855C4.23012 6.98718 5.47982 5.46483 7.08301 4.39355C8.68639 3.32221 10.5716 2.75 12.5 2.75ZM11.75 4.28516C9.70145 4.47452 7.7973 5.42115 6.41016 6.94043C5.02299 8.4599 4.25247 10.4426 4.25 12.5C4.25247 14.5574 5.02299 16.5401 6.41016 18.0596C7.7973 19.5789 9.70145 20.5255 11.75 20.7148V4.28516Z",
|
|
@@ -3869,7 +4016,7 @@ var ThemeToggle = ({
|
|
|
3869
4016
|
}
|
|
3870
4017
|
};
|
|
3871
4018
|
const currentTheme = variant === "with-save" ? tempTheme : themeMode;
|
|
3872
|
-
return /* @__PURE__ */
|
|
4019
|
+
return /* @__PURE__ */ jsx28("div", { className: "flex flex-row gap-2 sm:gap-4 py-2", children: problemTypes.map((type) => /* @__PURE__ */ jsx28(
|
|
3873
4020
|
SelectionButton_default,
|
|
3874
4021
|
{
|
|
3875
4022
|
icon: type.icon,
|
|
@@ -3883,7 +4030,7 @@ var ThemeToggle = ({
|
|
|
3883
4030
|
};
|
|
3884
4031
|
|
|
3885
4032
|
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
3886
|
-
import { Fragment as Fragment3, jsx as
|
|
4033
|
+
import { Fragment as Fragment3, jsx as jsx29, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3887
4034
|
function createDropdownStore() {
|
|
3888
4035
|
return create6((set) => ({
|
|
3889
4036
|
open: false,
|
|
@@ -3899,8 +4046,8 @@ var useDropdownStore = (externalStore) => {
|
|
|
3899
4046
|
return externalStore;
|
|
3900
4047
|
};
|
|
3901
4048
|
var injectStore3 = (children, store) => {
|
|
3902
|
-
return
|
|
3903
|
-
if (
|
|
4049
|
+
return Children4.map(children, (child) => {
|
|
4050
|
+
if (isValidElement4(child)) {
|
|
3904
4051
|
const typedChild = child;
|
|
3905
4052
|
const displayName = typedChild.type.displayName;
|
|
3906
4053
|
const allowed = [
|
|
@@ -3922,7 +4069,7 @@ var injectStore3 = (children, store) => {
|
|
|
3922
4069
|
if (typedChild.props.children) {
|
|
3923
4070
|
newProps.children = injectStore3(typedChild.props.children, store);
|
|
3924
4071
|
}
|
|
3925
|
-
return
|
|
4072
|
+
return cloneElement4(typedChild, newProps);
|
|
3926
4073
|
}
|
|
3927
4074
|
return child;
|
|
3928
4075
|
});
|
|
@@ -3991,7 +4138,7 @@ var DropdownMenu = ({
|
|
|
3991
4138
|
setOpen(propOpen);
|
|
3992
4139
|
}
|
|
3993
4140
|
}, [propOpen]);
|
|
3994
|
-
return /* @__PURE__ */
|
|
4141
|
+
return /* @__PURE__ */ jsx29("div", { className: "relative", ref: menuRef, children: injectStore3(children, store) });
|
|
3995
4142
|
};
|
|
3996
4143
|
var DropdownMenuTrigger = ({
|
|
3997
4144
|
className,
|
|
@@ -4003,7 +4150,7 @@ var DropdownMenuTrigger = ({
|
|
|
4003
4150
|
const store = useDropdownStore(externalStore);
|
|
4004
4151
|
const open = useStore3(store, (s) => s.open);
|
|
4005
4152
|
const toggleOpen = () => store.setState({ open: !open });
|
|
4006
|
-
return /* @__PURE__ */
|
|
4153
|
+
return /* @__PURE__ */ jsx29(
|
|
4007
4154
|
"div",
|
|
4008
4155
|
{
|
|
4009
4156
|
onClick: (e) => {
|
|
@@ -4048,7 +4195,7 @@ var MENUCONTENT_VARIANT_CLASSES = {
|
|
|
4048
4195
|
profile: "p-6"
|
|
4049
4196
|
};
|
|
4050
4197
|
var MenuLabel = forwardRef10(({ className, inset, store: _store, ...props }, ref) => {
|
|
4051
|
-
return /* @__PURE__ */
|
|
4198
|
+
return /* @__PURE__ */ jsx29(
|
|
4052
4199
|
"div",
|
|
4053
4200
|
{
|
|
4054
4201
|
ref,
|
|
@@ -4087,7 +4234,7 @@ var DropdownMenuContent = forwardRef10(
|
|
|
4087
4234
|
return `absolute ${vertical} ${horizontal}`;
|
|
4088
4235
|
};
|
|
4089
4236
|
const variantClasses = MENUCONTENT_VARIANT_CLASSES[variant];
|
|
4090
|
-
return /* @__PURE__ */
|
|
4237
|
+
return /* @__PURE__ */ jsx29(
|
|
4091
4238
|
"div",
|
|
4092
4239
|
{
|
|
4093
4240
|
ref,
|
|
@@ -4156,7 +4303,7 @@ var DropdownMenuItem = forwardRef10(
|
|
|
4156
4303
|
const getVariantProps = () => {
|
|
4157
4304
|
return variant === "profile" ? { "data-variant": "profile" } : {};
|
|
4158
4305
|
};
|
|
4159
|
-
return /* @__PURE__ */
|
|
4306
|
+
return /* @__PURE__ */ jsxs22(
|
|
4160
4307
|
"div",
|
|
4161
4308
|
{
|
|
4162
4309
|
ref,
|
|
@@ -4182,7 +4329,7 @@ var DropdownMenuItem = forwardRef10(
|
|
|
4182
4329
|
...props,
|
|
4183
4330
|
children: [
|
|
4184
4331
|
iconLeft,
|
|
4185
|
-
/* @__PURE__ */
|
|
4332
|
+
/* @__PURE__ */ jsx29("div", { className: "w-full", children }),
|
|
4186
4333
|
iconRight
|
|
4187
4334
|
]
|
|
4188
4335
|
}
|
|
@@ -4190,7 +4337,7 @@ var DropdownMenuItem = forwardRef10(
|
|
|
4190
4337
|
}
|
|
4191
4338
|
);
|
|
4192
4339
|
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
4193
|
-
var DropdownMenuSeparator = forwardRef10(({ className, store: _store, ...props }, ref) => /* @__PURE__ */
|
|
4340
|
+
var DropdownMenuSeparator = forwardRef10(({ className, store: _store, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
4194
4341
|
"div",
|
|
4195
4342
|
{
|
|
4196
4343
|
ref,
|
|
@@ -4203,7 +4350,7 @@ var ProfileMenuTrigger = forwardRef10(({ className, onClick, store: externalStor
|
|
|
4203
4350
|
const store = useDropdownStore(externalStore);
|
|
4204
4351
|
const open = useStore3(store, (s) => s.open);
|
|
4205
4352
|
const toggleOpen = () => store.setState({ open: !open });
|
|
4206
|
-
return /* @__PURE__ */
|
|
4353
|
+
return /* @__PURE__ */ jsx29(
|
|
4207
4354
|
"button",
|
|
4208
4355
|
{
|
|
4209
4356
|
ref,
|
|
@@ -4218,13 +4365,13 @@ var ProfileMenuTrigger = forwardRef10(({ className, onClick, store: externalStor
|
|
|
4218
4365
|
},
|
|
4219
4366
|
"aria-expanded": open,
|
|
4220
4367
|
...props,
|
|
4221
|
-
children: /* @__PURE__ */
|
|
4368
|
+
children: /* @__PURE__ */ jsx29("span", { className: "size-6 rounded-full bg-primary-100 flex items-center justify-center", children: /* @__PURE__ */ jsx29(User2, { className: "text-primary-950", size: 18 }) })
|
|
4222
4369
|
}
|
|
4223
4370
|
);
|
|
4224
4371
|
});
|
|
4225
4372
|
ProfileMenuTrigger.displayName = "ProfileMenuTrigger";
|
|
4226
4373
|
var ProfileMenuHeader = forwardRef10(({ className, name, email, photoUrl, store: _store, ...props }, ref) => {
|
|
4227
|
-
return /* @__PURE__ */
|
|
4374
|
+
return /* @__PURE__ */ jsxs22(
|
|
4228
4375
|
"div",
|
|
4229
4376
|
{
|
|
4230
4377
|
ref,
|
|
@@ -4232,17 +4379,17 @@ var ProfileMenuHeader = forwardRef10(({ className, name, email, photoUrl, store:
|
|
|
4232
4379
|
className: cn("flex flex-row gap-4 items-center", className),
|
|
4233
4380
|
...props,
|
|
4234
4381
|
children: [
|
|
4235
|
-
/* @__PURE__ */
|
|
4382
|
+
/* @__PURE__ */ jsx29("span", { className: "w-16 h-16 bg-primary-100 rounded-full flex items-center justify-center overflow-hidden", children: photoUrl ? /* @__PURE__ */ jsx29(
|
|
4236
4383
|
"img",
|
|
4237
4384
|
{
|
|
4238
4385
|
src: photoUrl,
|
|
4239
4386
|
alt: "Foto de perfil",
|
|
4240
4387
|
className: "w-full h-full object-cover"
|
|
4241
4388
|
}
|
|
4242
|
-
) : /* @__PURE__ */
|
|
4243
|
-
/* @__PURE__ */
|
|
4244
|
-
/* @__PURE__ */
|
|
4245
|
-
/* @__PURE__ */
|
|
4389
|
+
) : /* @__PURE__ */ jsx29(User2, { size: 34, className: "text-primary-800" }) }),
|
|
4390
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex flex-col ", children: [
|
|
4391
|
+
/* @__PURE__ */ jsx29(Text_default, { size: "xl", weight: "bold", color: "text-text-950", children: name }),
|
|
4392
|
+
/* @__PURE__ */ jsx29(Text_default, { size: "md", color: "text-text-600", children: email })
|
|
4246
4393
|
] })
|
|
4247
4394
|
]
|
|
4248
4395
|
}
|
|
@@ -4275,14 +4422,14 @@ var ProfileToggleTheme = ({
|
|
|
4275
4422
|
setModalThemeToggle(false);
|
|
4276
4423
|
setOpen(false);
|
|
4277
4424
|
};
|
|
4278
|
-
return /* @__PURE__ */
|
|
4279
|
-
/* @__PURE__ */
|
|
4425
|
+
return /* @__PURE__ */ jsxs22(Fragment3, { children: [
|
|
4426
|
+
/* @__PURE__ */ jsx29(
|
|
4280
4427
|
DropdownMenuItem,
|
|
4281
4428
|
{
|
|
4282
4429
|
variant: "profile",
|
|
4283
4430
|
preventClose: true,
|
|
4284
4431
|
store,
|
|
4285
|
-
iconLeft: /* @__PURE__ */
|
|
4432
|
+
iconLeft: /* @__PURE__ */ jsx29(
|
|
4286
4433
|
"svg",
|
|
4287
4434
|
{
|
|
4288
4435
|
width: "24",
|
|
@@ -4290,7 +4437,7 @@ var ProfileToggleTheme = ({
|
|
|
4290
4437
|
viewBox: "0 0 25 25",
|
|
4291
4438
|
fill: "none",
|
|
4292
4439
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4293
|
-
children: /* @__PURE__ */
|
|
4440
|
+
children: /* @__PURE__ */ jsx29(
|
|
4294
4441
|
"path",
|
|
4295
4442
|
{
|
|
4296
4443
|
d: "M12.5 2.75C15.085 2.75276 17.5637 3.78054 19.3916 5.6084C21.2195 7.43628 22.2473 9.915 22.25 12.5C22.25 14.4284 21.6778 16.3136 20.6064 17.917C19.5352 19.5201 18.0128 20.7699 16.2314 21.5078C14.4499 22.2458 12.489 22.4387 10.5977 22.0625C8.70642 21.6863 6.96899 20.758 5.60547 19.3945C4.24197 18.031 3.31374 16.2936 2.9375 14.4023C2.56129 12.511 2.75423 10.5501 3.49219 8.76855C4.23012 6.98718 5.47982 5.46483 7.08301 4.39355C8.68639 3.32221 10.5716 2.75 12.5 2.75ZM11.75 4.28516C9.70145 4.47452 7.7973 5.42115 6.41016 6.94043C5.02299 8.4599 4.25247 10.4426 4.25 12.5C4.25247 14.5574 5.02299 16.5401 6.41016 18.0596C7.7973 19.5789 9.70145 20.5255 11.75 20.7148V4.28516Z",
|
|
@@ -4299,7 +4446,7 @@ var ProfileToggleTheme = ({
|
|
|
4299
4446
|
)
|
|
4300
4447
|
}
|
|
4301
4448
|
),
|
|
4302
|
-
iconRight: /* @__PURE__ */
|
|
4449
|
+
iconRight: /* @__PURE__ */ jsx29(CaretRight3, {}),
|
|
4303
4450
|
onClick: handleClick,
|
|
4304
4451
|
onKeyDown: (e) => {
|
|
4305
4452
|
if (e.key === "Enter" || e.key === " ") {
|
|
@@ -4309,23 +4456,23 @@ var ProfileToggleTheme = ({
|
|
|
4309
4456
|
}
|
|
4310
4457
|
},
|
|
4311
4458
|
...props,
|
|
4312
|
-
children: /* @__PURE__ */
|
|
4459
|
+
children: /* @__PURE__ */ jsx29(Text_default, { size: "md", color: "text-text-700", children: "Apar\xEAncia" })
|
|
4313
4460
|
}
|
|
4314
4461
|
),
|
|
4315
|
-
/* @__PURE__ */
|
|
4462
|
+
/* @__PURE__ */ jsx29(
|
|
4316
4463
|
Modal_default,
|
|
4317
4464
|
{
|
|
4318
4465
|
isOpen: modalThemeToggle,
|
|
4319
4466
|
onClose: handleCancel,
|
|
4320
4467
|
title: "Apar\xEAncia",
|
|
4321
4468
|
size: "md",
|
|
4322
|
-
footer: /* @__PURE__ */
|
|
4323
|
-
/* @__PURE__ */
|
|
4324
|
-
/* @__PURE__ */
|
|
4469
|
+
footer: /* @__PURE__ */ jsxs22("div", { className: "flex gap-3", children: [
|
|
4470
|
+
/* @__PURE__ */ jsx29(Button_default, { variant: "outline", onClick: handleCancel, children: "Cancelar" }),
|
|
4471
|
+
/* @__PURE__ */ jsx29(Button_default, { variant: "solid", onClick: handleSave, children: "Salvar" })
|
|
4325
4472
|
] }),
|
|
4326
|
-
children: /* @__PURE__ */
|
|
4327
|
-
/* @__PURE__ */
|
|
4328
|
-
/* @__PURE__ */
|
|
4473
|
+
children: /* @__PURE__ */ jsxs22("div", { className: "flex flex-col", children: [
|
|
4474
|
+
/* @__PURE__ */ jsx29("p", { className: "text-sm text-text-500", children: "Escolha o tema:" }),
|
|
4475
|
+
/* @__PURE__ */ jsx29(ThemeToggle, { variant: "with-save", onToggle: setSelectedTheme })
|
|
4329
4476
|
] })
|
|
4330
4477
|
}
|
|
4331
4478
|
)
|
|
@@ -4333,7 +4480,7 @@ var ProfileToggleTheme = ({
|
|
|
4333
4480
|
};
|
|
4334
4481
|
ProfileToggleTheme.displayName = "ProfileToggleTheme";
|
|
4335
4482
|
var ProfileMenuSection = forwardRef10(({ className, children, store: _store, ...props }, ref) => {
|
|
4336
|
-
return /* @__PURE__ */
|
|
4483
|
+
return /* @__PURE__ */ jsx29("div", { ref, className: cn("flex flex-col p-2", className), ...props, children });
|
|
4337
4484
|
});
|
|
4338
4485
|
ProfileMenuSection.displayName = "ProfileMenuSection";
|
|
4339
4486
|
var ProfileMenuFooter = ({
|
|
@@ -4345,7 +4492,7 @@ var ProfileMenuFooter = ({
|
|
|
4345
4492
|
}) => {
|
|
4346
4493
|
const store = useDropdownStore(externalStore);
|
|
4347
4494
|
const setOpen = useStore3(store, (s) => s.setOpen);
|
|
4348
|
-
return /* @__PURE__ */
|
|
4495
|
+
return /* @__PURE__ */ jsxs22(
|
|
4349
4496
|
Button_default,
|
|
4350
4497
|
{
|
|
4351
4498
|
variant: "outline",
|
|
@@ -4357,8 +4504,8 @@ var ProfileMenuFooter = ({
|
|
|
4357
4504
|
},
|
|
4358
4505
|
...props,
|
|
4359
4506
|
children: [
|
|
4360
|
-
/* @__PURE__ */
|
|
4361
|
-
/* @__PURE__ */
|
|
4507
|
+
/* @__PURE__ */ jsx29("span", { className: "mr-2 flex items-center", children: /* @__PURE__ */ jsx29(SignOut, { className: "text-inherit" }) }),
|
|
4508
|
+
/* @__PURE__ */ jsx29(Text_default, { color: "inherit", children: "Sair" })
|
|
4362
4509
|
]
|
|
4363
4510
|
}
|
|
4364
4511
|
);
|
|
@@ -4367,7 +4514,7 @@ ProfileMenuFooter.displayName = "ProfileMenuFooter";
|
|
|
4367
4514
|
var DropdownMenu_default = DropdownMenu;
|
|
4368
4515
|
|
|
4369
4516
|
// src/components/Search/Search.tsx
|
|
4370
|
-
import { jsx as
|
|
4517
|
+
import { jsx as jsx30, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4371
4518
|
var filterOptions = (options, query) => {
|
|
4372
4519
|
if (!query || query.length < 1) return [];
|
|
4373
4520
|
return options.filter(
|
|
@@ -4513,14 +4660,14 @@ var Search = forwardRef11(
|
|
|
4513
4660
|
const hasValue = String(value ?? "").length > 0;
|
|
4514
4661
|
const showClearButton = hasValue && !disabled && !readOnly;
|
|
4515
4662
|
const showSearchIcon = !hasValue && !disabled && !readOnly;
|
|
4516
|
-
return /* @__PURE__ */
|
|
4663
|
+
return /* @__PURE__ */ jsxs23(
|
|
4517
4664
|
"div",
|
|
4518
4665
|
{
|
|
4519
4666
|
ref: dropdownRef,
|
|
4520
4667
|
className: `w-full max-w-lg md:w-[488px] ${containerClassName}`,
|
|
4521
4668
|
children: [
|
|
4522
|
-
/* @__PURE__ */
|
|
4523
|
-
/* @__PURE__ */
|
|
4669
|
+
/* @__PURE__ */ jsxs23("div", { className: "relative flex items-center", children: [
|
|
4670
|
+
/* @__PURE__ */ jsx30(
|
|
4524
4671
|
"input",
|
|
4525
4672
|
{
|
|
4526
4673
|
ref: (node) => {
|
|
@@ -4548,35 +4695,35 @@ var Search = forwardRef11(
|
|
|
4548
4695
|
...props
|
|
4549
4696
|
}
|
|
4550
4697
|
),
|
|
4551
|
-
showClearButton && /* @__PURE__ */
|
|
4698
|
+
showClearButton && /* @__PURE__ */ jsx30("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ jsx30(
|
|
4552
4699
|
"button",
|
|
4553
4700
|
{
|
|
4554
4701
|
type: "button",
|
|
4555
4702
|
className: "p-0 border-0 bg-transparent cursor-pointer",
|
|
4556
4703
|
onMouseDown: handleClearClick,
|
|
4557
4704
|
"aria-label": "Limpar busca",
|
|
4558
|
-
children: /* @__PURE__ */
|
|
4705
|
+
children: /* @__PURE__ */ jsx30("span", { className: "w-6 h-6 text-text-800 flex items-center justify-center hover:text-text-600 transition-colors", children: /* @__PURE__ */ jsx30(X4, {}) })
|
|
4559
4706
|
}
|
|
4560
4707
|
) }),
|
|
4561
|
-
showSearchIcon && /* @__PURE__ */
|
|
4708
|
+
showSearchIcon && /* @__PURE__ */ jsx30("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ jsx30(
|
|
4562
4709
|
"button",
|
|
4563
4710
|
{
|
|
4564
4711
|
type: "button",
|
|
4565
4712
|
className: "p-0 border-0 bg-transparent cursor-pointer",
|
|
4566
4713
|
onMouseDown: handleSearchIconClick,
|
|
4567
4714
|
"aria-label": "Buscar",
|
|
4568
|
-
children: /* @__PURE__ */
|
|
4715
|
+
children: /* @__PURE__ */ jsx30("span", { className: "w-6 h-6 text-text-800 flex items-center justify-center hover:text-text-600 transition-colors", children: /* @__PURE__ */ jsx30(MagnifyingGlass, {}) })
|
|
4569
4716
|
}
|
|
4570
4717
|
) })
|
|
4571
4718
|
] }),
|
|
4572
|
-
showDropdown && /* @__PURE__ */
|
|
4719
|
+
showDropdown && /* @__PURE__ */ jsx30(DropdownMenu_default, { open: showDropdown, onOpenChange: setDropdownOpen, children: /* @__PURE__ */ jsx30(
|
|
4573
4720
|
DropdownMenuContent,
|
|
4574
4721
|
{
|
|
4575
4722
|
id: dropdownId,
|
|
4576
4723
|
className: "w-full mt-1",
|
|
4577
4724
|
style: { maxHeight: dropdownMaxHeight },
|
|
4578
4725
|
align: "start",
|
|
4579
|
-
children: filteredOptions.length > 0 ? filteredOptions.map((option) => /* @__PURE__ */
|
|
4726
|
+
children: filteredOptions.length > 0 ? filteredOptions.map((option) => /* @__PURE__ */ jsx30(
|
|
4580
4727
|
DropdownMenuItem,
|
|
4581
4728
|
{
|
|
4582
4729
|
onClick: () => handleSelectOption(option),
|
|
@@ -4584,7 +4731,7 @@ var Search = forwardRef11(
|
|
|
4584
4731
|
children: option
|
|
4585
4732
|
},
|
|
4586
4733
|
option
|
|
4587
|
-
)) : /* @__PURE__ */
|
|
4734
|
+
)) : /* @__PURE__ */ jsx30("div", { className: "px-3 py-3 text-text-700 text-base", children: noResultsText })
|
|
4588
4735
|
}
|
|
4589
4736
|
) })
|
|
4590
4737
|
]
|
|
@@ -4597,7 +4744,7 @@ var Search_default = Search;
|
|
|
4597
4744
|
|
|
4598
4745
|
// src/components/Chips/Chips.tsx
|
|
4599
4746
|
import { Check as Check2 } from "phosphor-react";
|
|
4600
|
-
import { jsx as
|
|
4747
|
+
import { jsx as jsx31, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4601
4748
|
var STATE_CLASSES5 = {
|
|
4602
4749
|
default: "bg-background text-text-950 border border-border-100 hover:bg-secondary-50 hover:border-border-300",
|
|
4603
4750
|
selected: "bg-info-background text-primary-950 border-2 border-primary-950 hover:bg-secondary-50 focus-visible:border-0"
|
|
@@ -4612,7 +4759,7 @@ var Chips = ({
|
|
|
4612
4759
|
}) => {
|
|
4613
4760
|
const stateClasses = selected ? STATE_CLASSES5.selected : STATE_CLASSES5.default;
|
|
4614
4761
|
const baseClasses = "inline-flex items-center justify-center rounded-full cursor-pointer font-normal text-sm px-4 py-2 gap-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-primary-600 disabled:opacity-40 disabled:cursor-not-allowed";
|
|
4615
|
-
return /* @__PURE__ */
|
|
4762
|
+
return /* @__PURE__ */ jsxs24(
|
|
4616
4763
|
"button",
|
|
4617
4764
|
{
|
|
4618
4765
|
className: cn(baseClasses, stateClasses, className),
|
|
@@ -4620,8 +4767,8 @@ var Chips = ({
|
|
|
4620
4767
|
type,
|
|
4621
4768
|
...props,
|
|
4622
4769
|
children: [
|
|
4623
|
-
selected && /* @__PURE__ */
|
|
4624
|
-
/* @__PURE__ */
|
|
4770
|
+
selected && /* @__PURE__ */ jsx31("span", { className: `flex items-center`, children: /* @__PURE__ */ jsx31(Check2, { weight: "bold", size: 16 }) }),
|
|
4771
|
+
/* @__PURE__ */ jsx31("span", { className: "flex-1", children })
|
|
4625
4772
|
]
|
|
4626
4773
|
}
|
|
4627
4774
|
);
|
|
@@ -4629,7 +4776,7 @@ var Chips = ({
|
|
|
4629
4776
|
var Chips_default = Chips;
|
|
4630
4777
|
|
|
4631
4778
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
4632
|
-
import { Fragment as Fragment4, jsx as
|
|
4779
|
+
import { Fragment as Fragment4, jsx as jsx32, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4633
4780
|
var SIZE_CLASSES8 = {
|
|
4634
4781
|
small: {
|
|
4635
4782
|
container: "h-1",
|
|
@@ -4741,20 +4888,20 @@ var renderStackedHitCountDisplay = (showHitCount, showPercentage, clampedValue,
|
|
|
4741
4888
|
max,
|
|
4742
4889
|
percentage
|
|
4743
4890
|
);
|
|
4744
|
-
return /* @__PURE__ */
|
|
4891
|
+
return /* @__PURE__ */ jsx32(
|
|
4745
4892
|
"div",
|
|
4746
4893
|
{
|
|
4747
4894
|
className: cn(
|
|
4748
4895
|
"text-xs font-medium leading-[14px] text-right",
|
|
4749
4896
|
percentageClassName
|
|
4750
4897
|
),
|
|
4751
|
-
children: displayPriority.type === "hitCount" ? /* @__PURE__ */
|
|
4752
|
-
/* @__PURE__ */
|
|
4753
|
-
/* @__PURE__ */
|
|
4898
|
+
children: displayPriority.type === "hitCount" ? /* @__PURE__ */ jsxs25(Fragment4, { children: [
|
|
4899
|
+
/* @__PURE__ */ jsx32("span", { className: "text-success-200", children: Math.round(clampedValue) }),
|
|
4900
|
+
/* @__PURE__ */ jsxs25("span", { className: "text-text-600", children: [
|
|
4754
4901
|
" de ",
|
|
4755
4902
|
max
|
|
4756
4903
|
] })
|
|
4757
|
-
] }) : /* @__PURE__ */
|
|
4904
|
+
] }) : /* @__PURE__ */ jsxs25(Text_default, { size: "xs", weight: "medium", className: "text-success-200", children: [
|
|
4758
4905
|
Math.round(percentage),
|
|
4759
4906
|
"%"
|
|
4760
4907
|
] })
|
|
@@ -4769,7 +4916,7 @@ var ProgressBarBase = ({
|
|
|
4769
4916
|
variantClasses,
|
|
4770
4917
|
containerClassName,
|
|
4771
4918
|
fillClassName
|
|
4772
|
-
}) => /* @__PURE__ */
|
|
4919
|
+
}) => /* @__PURE__ */ jsxs25(
|
|
4773
4920
|
"div",
|
|
4774
4921
|
{
|
|
4775
4922
|
className: cn(
|
|
@@ -4778,7 +4925,7 @@ var ProgressBarBase = ({
|
|
|
4778
4925
|
"overflow-hidden relative"
|
|
4779
4926
|
),
|
|
4780
4927
|
children: [
|
|
4781
|
-
/* @__PURE__ */
|
|
4928
|
+
/* @__PURE__ */ jsx32(
|
|
4782
4929
|
"progress",
|
|
4783
4930
|
{
|
|
4784
4931
|
value: clampedValue,
|
|
@@ -4787,7 +4934,7 @@ var ProgressBarBase = ({
|
|
|
4787
4934
|
className: "absolute inset-0 w-full h-full opacity-0"
|
|
4788
4935
|
}
|
|
4789
4936
|
),
|
|
4790
|
-
/* @__PURE__ */
|
|
4937
|
+
/* @__PURE__ */ jsx32(
|
|
4791
4938
|
"div",
|
|
4792
4939
|
{
|
|
4793
4940
|
className: cn(
|
|
@@ -4813,7 +4960,7 @@ var StackedLayout = ({
|
|
|
4813
4960
|
percentage,
|
|
4814
4961
|
variantClasses,
|
|
4815
4962
|
dimensions
|
|
4816
|
-
}) => /* @__PURE__ */
|
|
4963
|
+
}) => /* @__PURE__ */ jsxs25(
|
|
4817
4964
|
"div",
|
|
4818
4965
|
{
|
|
4819
4966
|
className: cn(
|
|
@@ -4823,8 +4970,8 @@ var StackedLayout = ({
|
|
|
4823
4970
|
className
|
|
4824
4971
|
),
|
|
4825
4972
|
children: [
|
|
4826
|
-
shouldShowHeader(label, showPercentage, showHitCount) && /* @__PURE__ */
|
|
4827
|
-
label && /* @__PURE__ */
|
|
4973
|
+
shouldShowHeader(label, showPercentage, showHitCount) && /* @__PURE__ */ jsxs25("div", { className: "flex flex-row justify-between items-center w-full h-[19px]", children: [
|
|
4974
|
+
label && /* @__PURE__ */ jsx32(
|
|
4828
4975
|
Text_default,
|
|
4829
4976
|
{
|
|
4830
4977
|
as: "div",
|
|
@@ -4843,7 +4990,7 @@ var StackedLayout = ({
|
|
|
4843
4990
|
percentageClassName
|
|
4844
4991
|
)
|
|
4845
4992
|
] }),
|
|
4846
|
-
/* @__PURE__ */
|
|
4993
|
+
/* @__PURE__ */ jsx32(
|
|
4847
4994
|
ProgressBarBase,
|
|
4848
4995
|
{
|
|
4849
4996
|
clampedValue,
|
|
@@ -4885,7 +5032,7 @@ var CompactLayout = ({
|
|
|
4885
5032
|
percentageClassName,
|
|
4886
5033
|
labelClassName
|
|
4887
5034
|
});
|
|
4888
|
-
return /* @__PURE__ */
|
|
5035
|
+
return /* @__PURE__ */ jsxs25(
|
|
4889
5036
|
"div",
|
|
4890
5037
|
{
|
|
4891
5038
|
className: cn(
|
|
@@ -4895,7 +5042,7 @@ var CompactLayout = ({
|
|
|
4895
5042
|
className
|
|
4896
5043
|
),
|
|
4897
5044
|
children: [
|
|
4898
|
-
shouldShowHeader(label, showPercentage, showHitCount) && /* @__PURE__ */
|
|
5045
|
+
shouldShowHeader(label, showPercentage, showHitCount) && /* @__PURE__ */ jsx32(
|
|
4899
5046
|
Text_default,
|
|
4900
5047
|
{
|
|
4901
5048
|
as: "div",
|
|
@@ -4906,7 +5053,7 @@ var CompactLayout = ({
|
|
|
4906
5053
|
children: content
|
|
4907
5054
|
}
|
|
4908
5055
|
),
|
|
4909
|
-
/* @__PURE__ */
|
|
5056
|
+
/* @__PURE__ */ jsx32(
|
|
4910
5057
|
ProgressBarBase,
|
|
4911
5058
|
{
|
|
4912
5059
|
clampedValue,
|
|
@@ -4942,9 +5089,9 @@ var DefaultLayout = ({
|
|
|
4942
5089
|
label,
|
|
4943
5090
|
showPercentage
|
|
4944
5091
|
);
|
|
4945
|
-
return /* @__PURE__ */
|
|
4946
|
-
displayConfig.showHeader && /* @__PURE__ */
|
|
4947
|
-
label && /* @__PURE__ */
|
|
5092
|
+
return /* @__PURE__ */ jsxs25("div", { className: cn("flex", sizeClasses.layout, gapClass, className), children: [
|
|
5093
|
+
displayConfig.showHeader && /* @__PURE__ */ jsxs25("div", { className: "flex flex-row items-center justify-between w-full", children: [
|
|
5094
|
+
label && /* @__PURE__ */ jsx32(
|
|
4948
5095
|
Text_default,
|
|
4949
5096
|
{
|
|
4950
5097
|
as: "div",
|
|
@@ -4957,7 +5104,7 @@ var DefaultLayout = ({
|
|
|
4957
5104
|
children: label
|
|
4958
5105
|
}
|
|
4959
5106
|
),
|
|
4960
|
-
showPercentage && /* @__PURE__ */
|
|
5107
|
+
showPercentage && /* @__PURE__ */ jsxs25(
|
|
4961
5108
|
Text_default,
|
|
4962
5109
|
{
|
|
4963
5110
|
size: "xs",
|
|
@@ -4973,7 +5120,7 @@ var DefaultLayout = ({
|
|
|
4973
5120
|
}
|
|
4974
5121
|
)
|
|
4975
5122
|
] }),
|
|
4976
|
-
/* @__PURE__ */
|
|
5123
|
+
/* @__PURE__ */ jsx32(
|
|
4977
5124
|
ProgressBarBase,
|
|
4978
5125
|
{
|
|
4979
5126
|
clampedValue,
|
|
@@ -4993,7 +5140,7 @@ var DefaultLayout = ({
|
|
|
4993
5140
|
)
|
|
4994
5141
|
}
|
|
4995
5142
|
),
|
|
4996
|
-
displayConfig.showPercentage && /* @__PURE__ */
|
|
5143
|
+
displayConfig.showPercentage && /* @__PURE__ */ jsxs25(
|
|
4997
5144
|
Text_default,
|
|
4998
5145
|
{
|
|
4999
5146
|
size: "xs",
|
|
@@ -5008,7 +5155,7 @@ var DefaultLayout = ({
|
|
|
5008
5155
|
]
|
|
5009
5156
|
}
|
|
5010
5157
|
),
|
|
5011
|
-
displayConfig.showLabel && /* @__PURE__ */
|
|
5158
|
+
displayConfig.showLabel && /* @__PURE__ */ jsx32(
|
|
5012
5159
|
Text_default,
|
|
5013
5160
|
{
|
|
5014
5161
|
as: "div",
|
|
@@ -5044,7 +5191,7 @@ var ProgressBar = ({
|
|
|
5044
5191
|
const sizeClasses = SIZE_CLASSES8[size];
|
|
5045
5192
|
const variantClasses = VARIANT_CLASSES2[variant];
|
|
5046
5193
|
if (layout === "stacked") {
|
|
5047
|
-
return /* @__PURE__ */
|
|
5194
|
+
return /* @__PURE__ */ jsx32(
|
|
5048
5195
|
StackedLayout,
|
|
5049
5196
|
{
|
|
5050
5197
|
className,
|
|
@@ -5065,7 +5212,7 @@ var ProgressBar = ({
|
|
|
5065
5212
|
);
|
|
5066
5213
|
}
|
|
5067
5214
|
if (layout === "compact") {
|
|
5068
|
-
return /* @__PURE__ */
|
|
5215
|
+
return /* @__PURE__ */ jsx32(
|
|
5069
5216
|
CompactLayout,
|
|
5070
5217
|
{
|
|
5071
5218
|
className,
|
|
@@ -5085,7 +5232,7 @@ var ProgressBar = ({
|
|
|
5085
5232
|
}
|
|
5086
5233
|
);
|
|
5087
5234
|
}
|
|
5088
|
-
return /* @__PURE__ */
|
|
5235
|
+
return /* @__PURE__ */ jsx32(
|
|
5089
5236
|
DefaultLayout,
|
|
5090
5237
|
{
|
|
5091
5238
|
className,
|
|
@@ -5105,7 +5252,7 @@ var ProgressBar = ({
|
|
|
5105
5252
|
var ProgressBar_default = ProgressBar;
|
|
5106
5253
|
|
|
5107
5254
|
// src/components/ProgressCircle/ProgressCircle.tsx
|
|
5108
|
-
import { jsx as
|
|
5255
|
+
import { jsx as jsx33, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5109
5256
|
var SIZE_CLASSES9 = {
|
|
5110
5257
|
small: {
|
|
5111
5258
|
container: "w-[90px] h-[90px]",
|
|
@@ -5187,7 +5334,7 @@ var ProgressCircle = ({
|
|
|
5187
5334
|
const strokeDashoffset = circumference - percentage / 100 * circumference;
|
|
5188
5335
|
const center = size === "small" ? 45 : 76;
|
|
5189
5336
|
const svgSize = size === "small" ? 90 : 152;
|
|
5190
|
-
return /* @__PURE__ */
|
|
5337
|
+
return /* @__PURE__ */ jsxs26(
|
|
5191
5338
|
"div",
|
|
5192
5339
|
{
|
|
5193
5340
|
className: cn(
|
|
@@ -5197,7 +5344,7 @@ var ProgressCircle = ({
|
|
|
5197
5344
|
className
|
|
5198
5345
|
),
|
|
5199
5346
|
children: [
|
|
5200
|
-
/* @__PURE__ */
|
|
5347
|
+
/* @__PURE__ */ jsxs26(
|
|
5201
5348
|
"svg",
|
|
5202
5349
|
{
|
|
5203
5350
|
className: "absolute inset-0 transform -rotate-90",
|
|
@@ -5206,7 +5353,7 @@ var ProgressCircle = ({
|
|
|
5206
5353
|
viewBox: `0 0 ${svgSize} ${svgSize}`,
|
|
5207
5354
|
"aria-hidden": "true",
|
|
5208
5355
|
children: [
|
|
5209
|
-
/* @__PURE__ */
|
|
5356
|
+
/* @__PURE__ */ jsx33(
|
|
5210
5357
|
"circle",
|
|
5211
5358
|
{
|
|
5212
5359
|
cx: center,
|
|
@@ -5217,7 +5364,7 @@ var ProgressCircle = ({
|
|
|
5217
5364
|
className: cn(variantClasses.background, "rounded-lg")
|
|
5218
5365
|
}
|
|
5219
5366
|
),
|
|
5220
|
-
/* @__PURE__ */
|
|
5367
|
+
/* @__PURE__ */ jsx33(
|
|
5221
5368
|
"circle",
|
|
5222
5369
|
{
|
|
5223
5370
|
cx: center,
|
|
@@ -5237,7 +5384,7 @@ var ProgressCircle = ({
|
|
|
5237
5384
|
]
|
|
5238
5385
|
}
|
|
5239
5386
|
),
|
|
5240
|
-
/* @__PURE__ */
|
|
5387
|
+
/* @__PURE__ */ jsx33(
|
|
5241
5388
|
"progress",
|
|
5242
5389
|
{
|
|
5243
5390
|
value: clampedValue,
|
|
@@ -5246,7 +5393,7 @@ var ProgressCircle = ({
|
|
|
5246
5393
|
className: "absolute opacity-0 w-0 h-0"
|
|
5247
5394
|
}
|
|
5248
5395
|
),
|
|
5249
|
-
/* @__PURE__ */
|
|
5396
|
+
/* @__PURE__ */ jsxs26(
|
|
5250
5397
|
"div",
|
|
5251
5398
|
{
|
|
5252
5399
|
className: cn(
|
|
@@ -5255,7 +5402,7 @@ var ProgressCircle = ({
|
|
|
5255
5402
|
sizeClasses.contentWidth
|
|
5256
5403
|
),
|
|
5257
5404
|
children: [
|
|
5258
|
-
showPercentage && /* @__PURE__ */
|
|
5405
|
+
showPercentage && /* @__PURE__ */ jsxs26(
|
|
5259
5406
|
Text_default,
|
|
5260
5407
|
{
|
|
5261
5408
|
size: sizeClasses.textSize,
|
|
@@ -5271,7 +5418,7 @@ var ProgressCircle = ({
|
|
|
5271
5418
|
]
|
|
5272
5419
|
}
|
|
5273
5420
|
),
|
|
5274
|
-
label && /* @__PURE__ */
|
|
5421
|
+
label && /* @__PURE__ */ jsx33(
|
|
5275
5422
|
Text_default,
|
|
5276
5423
|
{
|
|
5277
5424
|
as: "span",
|
|
@@ -5296,7 +5443,7 @@ var ProgressCircle_default = ProgressCircle;
|
|
|
5296
5443
|
|
|
5297
5444
|
// src/components/Stepper/Stepper.tsx
|
|
5298
5445
|
import { Check as Check3 } from "phosphor-react";
|
|
5299
|
-
import { jsx as
|
|
5446
|
+
import { jsx as jsx34, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5300
5447
|
var SIZE_CLASSES10 = {
|
|
5301
5448
|
small: {
|
|
5302
5449
|
container: "gap-2",
|
|
@@ -5423,7 +5570,7 @@ var Step = ({
|
|
|
5423
5570
|
}
|
|
5424
5571
|
return `${step.label}${suffix}`;
|
|
5425
5572
|
};
|
|
5426
|
-
return /* @__PURE__ */
|
|
5573
|
+
return /* @__PURE__ */ jsxs27(
|
|
5427
5574
|
"div",
|
|
5428
5575
|
{
|
|
5429
5576
|
className: `
|
|
@@ -5436,7 +5583,7 @@ var Step = ({
|
|
|
5436
5583
|
overflow-visible
|
|
5437
5584
|
`,
|
|
5438
5585
|
children: [
|
|
5439
|
-
/* @__PURE__ */
|
|
5586
|
+
/* @__PURE__ */ jsx34(
|
|
5440
5587
|
"div",
|
|
5441
5588
|
{
|
|
5442
5589
|
className: `
|
|
@@ -5445,7 +5592,7 @@ var Step = ({
|
|
|
5445
5592
|
`
|
|
5446
5593
|
}
|
|
5447
5594
|
),
|
|
5448
|
-
/* @__PURE__ */
|
|
5595
|
+
/* @__PURE__ */ jsxs27(
|
|
5449
5596
|
"div",
|
|
5450
5597
|
{
|
|
5451
5598
|
className: `
|
|
@@ -5455,7 +5602,7 @@ var Step = ({
|
|
|
5455
5602
|
overflow-visible
|
|
5456
5603
|
`,
|
|
5457
5604
|
children: [
|
|
5458
|
-
/* @__PURE__ */
|
|
5605
|
+
/* @__PURE__ */ jsx34(
|
|
5459
5606
|
"div",
|
|
5460
5607
|
{
|
|
5461
5608
|
className: `
|
|
@@ -5464,7 +5611,7 @@ var Step = ({
|
|
|
5464
5611
|
flex-none transition-all duration-300 ease-out
|
|
5465
5612
|
`,
|
|
5466
5613
|
"aria-label": getAriaLabel(),
|
|
5467
|
-
children: isCompleted ? /* @__PURE__ */
|
|
5614
|
+
children: isCompleted ? /* @__PURE__ */ jsx34(
|
|
5468
5615
|
Check3,
|
|
5469
5616
|
{
|
|
5470
5617
|
weight: "bold",
|
|
@@ -5473,7 +5620,7 @@ var Step = ({
|
|
|
5473
5620
|
w-2.5 h-2.5 sm:w-3 sm:h-3 md:w-3 md:h-3 lg:w-3.5 lg:h-3.5
|
|
5474
5621
|
`
|
|
5475
5622
|
}
|
|
5476
|
-
) : /* @__PURE__ */
|
|
5623
|
+
) : /* @__PURE__ */ jsx34(
|
|
5477
5624
|
Text_default,
|
|
5478
5625
|
{
|
|
5479
5626
|
size: sizeClasses.indicatorTextSize,
|
|
@@ -5485,7 +5632,7 @@ var Step = ({
|
|
|
5485
5632
|
)
|
|
5486
5633
|
}
|
|
5487
5634
|
),
|
|
5488
|
-
/* @__PURE__ */
|
|
5635
|
+
/* @__PURE__ */ jsx34(
|
|
5489
5636
|
Text_default,
|
|
5490
5637
|
{
|
|
5491
5638
|
size: sizeClasses.labelTextSize,
|
|
@@ -5537,7 +5684,7 @@ var Stepper = ({
|
|
|
5537
5684
|
}) => {
|
|
5538
5685
|
const sizeClasses = SIZE_CLASSES10[size];
|
|
5539
5686
|
const steps = currentStep !== void 0 ? calculateStepStates(initialSteps, currentStep) : initialSteps;
|
|
5540
|
-
return /* @__PURE__ */
|
|
5687
|
+
return /* @__PURE__ */ jsxs27(
|
|
5541
5688
|
"fieldset",
|
|
5542
5689
|
{
|
|
5543
5690
|
className: cn(
|
|
@@ -5546,8 +5693,8 @@ var Stepper = ({
|
|
|
5546
5693
|
"border-0 p-0 m-0"
|
|
5547
5694
|
),
|
|
5548
5695
|
children: [
|
|
5549
|
-
/* @__PURE__ */
|
|
5550
|
-
showProgress && currentStep !== void 0 && /* @__PURE__ */
|
|
5696
|
+
/* @__PURE__ */ jsx34("legend", { className: "absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0", children: "Stepper de formul\xE1rio" }),
|
|
5697
|
+
showProgress && currentStep !== void 0 && /* @__PURE__ */ jsx34(
|
|
5551
5698
|
Text_default,
|
|
5552
5699
|
{
|
|
5553
5700
|
size: "sm",
|
|
@@ -5556,7 +5703,7 @@ var Stepper = ({
|
|
|
5556
5703
|
children: getProgressText(currentStep, steps.length, progressText)
|
|
5557
5704
|
}
|
|
5558
5705
|
),
|
|
5559
|
-
/* @__PURE__ */
|
|
5706
|
+
/* @__PURE__ */ jsx34(
|
|
5560
5707
|
"div",
|
|
5561
5708
|
{
|
|
5562
5709
|
className: cn(
|
|
@@ -5569,7 +5716,7 @@ var Stepper = ({
|
|
|
5569
5716
|
"aria-label": "Progress steps",
|
|
5570
5717
|
children: steps.map((step, index) => {
|
|
5571
5718
|
const stateClasses = STATE_CLASSES6[step.state];
|
|
5572
|
-
return /* @__PURE__ */
|
|
5719
|
+
return /* @__PURE__ */ jsx34(
|
|
5573
5720
|
Step,
|
|
5574
5721
|
{
|
|
5575
5722
|
step,
|
|
@@ -5598,7 +5745,7 @@ import {
|
|
|
5598
5745
|
useEffect as useEffect14,
|
|
5599
5746
|
useRef as useRef7
|
|
5600
5747
|
} from "react";
|
|
5601
|
-
import { jsx as
|
|
5748
|
+
import { jsx as jsx35, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5602
5749
|
var WEEK_DAYS = ["SEG", "TER", "QUA", "QUI", "SEX", "S\xC1B", "DOM"];
|
|
5603
5750
|
var WEEK_DAYS_SHORT = ["S", "T", "Q", "Q", "S", "S", "D"];
|
|
5604
5751
|
var MONTH_NAMES = [
|
|
@@ -5621,15 +5768,15 @@ var MonthYearPicker = ({
|
|
|
5621
5768
|
currentDate,
|
|
5622
5769
|
onYearChange,
|
|
5623
5770
|
onMonthChange
|
|
5624
|
-
}) => /* @__PURE__ */
|
|
5771
|
+
}) => /* @__PURE__ */ jsxs28(
|
|
5625
5772
|
"div",
|
|
5626
5773
|
{
|
|
5627
5774
|
ref: monthPickerRef,
|
|
5628
5775
|
className: "absolute top-full left-0 z-50 mt-1 bg-background rounded-lg shadow-lg border border-border-200 p-4 min-w-[280px]",
|
|
5629
5776
|
children: [
|
|
5630
|
-
/* @__PURE__ */
|
|
5631
|
-
/* @__PURE__ */
|
|
5632
|
-
/* @__PURE__ */
|
|
5777
|
+
/* @__PURE__ */ jsxs28("div", { className: "mb-4", children: [
|
|
5778
|
+
/* @__PURE__ */ jsx35("h3", { className: "text-sm font-medium text-text-700 mb-2", children: "Selecionar Ano" }),
|
|
5779
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-4 gap-1 max-h-32 overflow-y-auto", children: availableYears.map((year) => /* @__PURE__ */ jsx35(
|
|
5633
5780
|
"button",
|
|
5634
5781
|
{
|
|
5635
5782
|
onClick: () => onYearChange(year),
|
|
@@ -5642,9 +5789,9 @@ var MonthYearPicker = ({
|
|
|
5642
5789
|
year
|
|
5643
5790
|
)) })
|
|
5644
5791
|
] }),
|
|
5645
|
-
/* @__PURE__ */
|
|
5646
|
-
/* @__PURE__ */
|
|
5647
|
-
/* @__PURE__ */
|
|
5792
|
+
/* @__PURE__ */ jsxs28("div", { children: [
|
|
5793
|
+
/* @__PURE__ */ jsx35("h3", { className: "text-sm font-medium text-text-700 mb-2", children: "Selecionar M\xEAs" }),
|
|
5794
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-3 gap-1", children: MONTH_NAMES.map((month, index) => /* @__PURE__ */ jsx35(
|
|
5648
5795
|
"button",
|
|
5649
5796
|
{
|
|
5650
5797
|
onClick: () => onMonthChange(index, currentDate.getFullYear()),
|
|
@@ -5776,28 +5923,28 @@ var Calendar = ({
|
|
|
5776
5923
|
onDateSelect?.(day.date);
|
|
5777
5924
|
};
|
|
5778
5925
|
if (variant === "navigation") {
|
|
5779
|
-
return /* @__PURE__ */
|
|
5780
|
-
/* @__PURE__ */
|
|
5781
|
-
/* @__PURE__ */
|
|
5782
|
-
/* @__PURE__ */
|
|
5926
|
+
return /* @__PURE__ */ jsxs28("div", { className: cn("bg-background rounded-xl pt-6", className), children: [
|
|
5927
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between mb-4 px-6", children: [
|
|
5928
|
+
/* @__PURE__ */ jsxs28("div", { className: "relative", ref: monthPickerContainerRef, children: [
|
|
5929
|
+
/* @__PURE__ */ jsxs28(
|
|
5783
5930
|
"button",
|
|
5784
5931
|
{
|
|
5785
5932
|
onClick: toggleMonthPicker,
|
|
5786
5933
|
className: "flex items-center group gap-1 rounded transition-colors cursor-pointer",
|
|
5787
5934
|
children: [
|
|
5788
|
-
/* @__PURE__ */
|
|
5935
|
+
/* @__PURE__ */ jsxs28("span", { className: "text-sm font-medium text-text-600 group-hover:text-primary-950", children: [
|
|
5789
5936
|
MONTH_NAMES[currentDate.getMonth()],
|
|
5790
5937
|
" ",
|
|
5791
5938
|
currentDate.getFullYear()
|
|
5792
5939
|
] }),
|
|
5793
|
-
/* @__PURE__ */
|
|
5940
|
+
/* @__PURE__ */ jsx35(
|
|
5794
5941
|
"svg",
|
|
5795
5942
|
{
|
|
5796
5943
|
className: `w-4 h-4 text-primary-950 transition-transform ${isMonthPickerOpen ? "rotate-180" : ""}`,
|
|
5797
5944
|
fill: "none",
|
|
5798
5945
|
stroke: "currentColor",
|
|
5799
5946
|
viewBox: "0 0 24 24",
|
|
5800
|
-
children: /* @__PURE__ */
|
|
5947
|
+
children: /* @__PURE__ */ jsx35(
|
|
5801
5948
|
"path",
|
|
5802
5949
|
{
|
|
5803
5950
|
strokeLinecap: "round",
|
|
@@ -5811,7 +5958,7 @@ var Calendar = ({
|
|
|
5811
5958
|
]
|
|
5812
5959
|
}
|
|
5813
5960
|
),
|
|
5814
|
-
isMonthPickerOpen && /* @__PURE__ */
|
|
5961
|
+
isMonthPickerOpen && /* @__PURE__ */ jsx35(
|
|
5815
5962
|
MonthYearPicker,
|
|
5816
5963
|
{
|
|
5817
5964
|
monthPickerRef,
|
|
@@ -5822,21 +5969,21 @@ var Calendar = ({
|
|
|
5822
5969
|
}
|
|
5823
5970
|
)
|
|
5824
5971
|
] }),
|
|
5825
|
-
/* @__PURE__ */
|
|
5826
|
-
/* @__PURE__ */
|
|
5972
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-10", children: [
|
|
5973
|
+
/* @__PURE__ */ jsx35(
|
|
5827
5974
|
"button",
|
|
5828
5975
|
{
|
|
5829
5976
|
onClick: goToPreviousMonth,
|
|
5830
5977
|
className: "p-1 rounded hover:bg-background-100 transition-colors",
|
|
5831
5978
|
"aria-label": "M\xEAs anterior",
|
|
5832
|
-
children: /* @__PURE__ */
|
|
5979
|
+
children: /* @__PURE__ */ jsx35(
|
|
5833
5980
|
"svg",
|
|
5834
5981
|
{
|
|
5835
5982
|
className: "w-6 h-6 text-primary-950",
|
|
5836
5983
|
fill: "none",
|
|
5837
5984
|
stroke: "currentColor",
|
|
5838
5985
|
viewBox: "0 0 24 24",
|
|
5839
|
-
children: /* @__PURE__ */
|
|
5986
|
+
children: /* @__PURE__ */ jsx35(
|
|
5840
5987
|
"path",
|
|
5841
5988
|
{
|
|
5842
5989
|
strokeLinecap: "round",
|
|
@@ -5849,20 +5996,20 @@ var Calendar = ({
|
|
|
5849
5996
|
)
|
|
5850
5997
|
}
|
|
5851
5998
|
),
|
|
5852
|
-
/* @__PURE__ */
|
|
5999
|
+
/* @__PURE__ */ jsx35(
|
|
5853
6000
|
"button",
|
|
5854
6001
|
{
|
|
5855
6002
|
onClick: goToNextMonth,
|
|
5856
6003
|
className: "p-1 rounded hover:bg-background-100 transition-colors",
|
|
5857
6004
|
"aria-label": "Pr\xF3ximo m\xEAs",
|
|
5858
|
-
children: /* @__PURE__ */
|
|
6005
|
+
children: /* @__PURE__ */ jsx35(
|
|
5859
6006
|
"svg",
|
|
5860
6007
|
{
|
|
5861
6008
|
className: "w-6 h-6 text-primary-950",
|
|
5862
6009
|
fill: "none",
|
|
5863
6010
|
stroke: "currentColor",
|
|
5864
6011
|
viewBox: "0 0 24 24",
|
|
5865
|
-
children: /* @__PURE__ */
|
|
6012
|
+
children: /* @__PURE__ */ jsx35(
|
|
5866
6013
|
"path",
|
|
5867
6014
|
{
|
|
5868
6015
|
strokeLinecap: "round",
|
|
@@ -5877,7 +6024,7 @@ var Calendar = ({
|
|
|
5877
6024
|
)
|
|
5878
6025
|
] })
|
|
5879
6026
|
] }),
|
|
5880
|
-
/* @__PURE__ */
|
|
6027
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-7 gap-1 mb-2 px-3", children: WEEK_DAYS_SHORT.map((day, index) => /* @__PURE__ */ jsx35(
|
|
5881
6028
|
"div",
|
|
5882
6029
|
{
|
|
5883
6030
|
className: "h-9 flex items-center justify-center text-xs font-normal text-text-600",
|
|
@@ -5885,13 +6032,13 @@ var Calendar = ({
|
|
|
5885
6032
|
},
|
|
5886
6033
|
`${day}-${index}`
|
|
5887
6034
|
)) }),
|
|
5888
|
-
/* @__PURE__ */
|
|
6035
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-7 gap-1 px-3", children: calendarData.map((day) => {
|
|
5889
6036
|
if (!day.isCurrentMonth) {
|
|
5890
|
-
return /* @__PURE__ */
|
|
6037
|
+
return /* @__PURE__ */ jsx35(
|
|
5891
6038
|
"div",
|
|
5892
6039
|
{
|
|
5893
6040
|
className: "flex items-center justify-center",
|
|
5894
|
-
children: /* @__PURE__ */
|
|
6041
|
+
children: /* @__PURE__ */ jsx35("div", { className: "w-9 h-9" })
|
|
5895
6042
|
},
|
|
5896
6043
|
day.date.getTime()
|
|
5897
6044
|
);
|
|
@@ -5907,11 +6054,11 @@ var Calendar = ({
|
|
|
5907
6054
|
} else if (day.isSelected) {
|
|
5908
6055
|
spanClass = "h-6 w-6 rounded-full bg-primary-950 text-text";
|
|
5909
6056
|
}
|
|
5910
|
-
return /* @__PURE__ */
|
|
6057
|
+
return /* @__PURE__ */ jsx35(
|
|
5911
6058
|
"div",
|
|
5912
6059
|
{
|
|
5913
6060
|
className: "flex items-center justify-center",
|
|
5914
|
-
children: /* @__PURE__ */
|
|
6061
|
+
children: /* @__PURE__ */ jsx35(
|
|
5915
6062
|
"button",
|
|
5916
6063
|
{
|
|
5917
6064
|
className: `
|
|
@@ -5927,7 +6074,7 @@ var Calendar = ({
|
|
|
5927
6074
|
"aria-label": `${day.date.getDate()} de ${MONTH_NAMES[day.date.getMonth()]}`,
|
|
5928
6075
|
"aria-current": day.isToday ? "date" : void 0,
|
|
5929
6076
|
tabIndex: 0,
|
|
5930
|
-
children: /* @__PURE__ */
|
|
6077
|
+
children: /* @__PURE__ */ jsx35("span", { className: spanClass, children: day.date.getDate() })
|
|
5931
6078
|
}
|
|
5932
6079
|
)
|
|
5933
6080
|
},
|
|
@@ -5936,28 +6083,28 @@ var Calendar = ({
|
|
|
5936
6083
|
}) })
|
|
5937
6084
|
] });
|
|
5938
6085
|
}
|
|
5939
|
-
return /* @__PURE__ */
|
|
5940
|
-
/* @__PURE__ */
|
|
5941
|
-
/* @__PURE__ */
|
|
5942
|
-
/* @__PURE__ */
|
|
6086
|
+
return /* @__PURE__ */ jsxs28("div", { className: cn("bg-background rounded-xl p-4", className), children: [
|
|
6087
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between mb-3.5", children: [
|
|
6088
|
+
/* @__PURE__ */ jsxs28("div", { className: "relative", ref: monthPickerContainerRef, children: [
|
|
6089
|
+
/* @__PURE__ */ jsxs28(
|
|
5943
6090
|
"button",
|
|
5944
6091
|
{
|
|
5945
6092
|
onClick: toggleMonthPicker,
|
|
5946
6093
|
className: "flex items-center gap-2 hover:bg-background-100 rounded px-2 py-1 transition-colors",
|
|
5947
6094
|
children: [
|
|
5948
|
-
/* @__PURE__ */
|
|
6095
|
+
/* @__PURE__ */ jsxs28("h2", { className: "text-lg font-semibold text-text-950", children: [
|
|
5949
6096
|
MONTH_NAMES[currentDate.getMonth()],
|
|
5950
6097
|
" ",
|
|
5951
6098
|
currentDate.getFullYear()
|
|
5952
6099
|
] }),
|
|
5953
|
-
/* @__PURE__ */
|
|
6100
|
+
/* @__PURE__ */ jsx35(
|
|
5954
6101
|
"svg",
|
|
5955
6102
|
{
|
|
5956
6103
|
className: `w-4 h-4 text-text-400 transition-transform ${isMonthPickerOpen ? "rotate-180" : ""}`,
|
|
5957
6104
|
fill: "none",
|
|
5958
6105
|
stroke: "currentColor",
|
|
5959
6106
|
viewBox: "0 0 24 24",
|
|
5960
|
-
children: /* @__PURE__ */
|
|
6107
|
+
children: /* @__PURE__ */ jsx35(
|
|
5961
6108
|
"path",
|
|
5962
6109
|
{
|
|
5963
6110
|
strokeLinecap: "round",
|
|
@@ -5971,7 +6118,7 @@ var Calendar = ({
|
|
|
5971
6118
|
]
|
|
5972
6119
|
}
|
|
5973
6120
|
),
|
|
5974
|
-
isMonthPickerOpen && /* @__PURE__ */
|
|
6121
|
+
isMonthPickerOpen && /* @__PURE__ */ jsx35(
|
|
5975
6122
|
MonthYearPicker,
|
|
5976
6123
|
{
|
|
5977
6124
|
monthPickerRef,
|
|
@@ -5982,21 +6129,21 @@ var Calendar = ({
|
|
|
5982
6129
|
}
|
|
5983
6130
|
)
|
|
5984
6131
|
] }),
|
|
5985
|
-
/* @__PURE__ */
|
|
5986
|
-
/* @__PURE__ */
|
|
6132
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-1", children: [
|
|
6133
|
+
/* @__PURE__ */ jsx35(
|
|
5987
6134
|
"button",
|
|
5988
6135
|
{
|
|
5989
6136
|
onClick: goToPreviousMonth,
|
|
5990
6137
|
className: "p-1 rounded-md hover:bg-background-100 transition-colors",
|
|
5991
6138
|
"aria-label": "M\xEAs anterior",
|
|
5992
|
-
children: /* @__PURE__ */
|
|
6139
|
+
children: /* @__PURE__ */ jsx35(
|
|
5993
6140
|
"svg",
|
|
5994
6141
|
{
|
|
5995
6142
|
className: "w-6 h-6 text-primary-950",
|
|
5996
6143
|
fill: "none",
|
|
5997
6144
|
stroke: "currentColor",
|
|
5998
6145
|
viewBox: "0 0 24 24",
|
|
5999
|
-
children: /* @__PURE__ */
|
|
6146
|
+
children: /* @__PURE__ */ jsx35(
|
|
6000
6147
|
"path",
|
|
6001
6148
|
{
|
|
6002
6149
|
strokeLinecap: "round",
|
|
@@ -6009,20 +6156,20 @@ var Calendar = ({
|
|
|
6009
6156
|
)
|
|
6010
6157
|
}
|
|
6011
6158
|
),
|
|
6012
|
-
/* @__PURE__ */
|
|
6159
|
+
/* @__PURE__ */ jsx35(
|
|
6013
6160
|
"button",
|
|
6014
6161
|
{
|
|
6015
6162
|
onClick: goToNextMonth,
|
|
6016
6163
|
className: "p-1 rounded-md hover:bg-background-100 transition-colors",
|
|
6017
6164
|
"aria-label": "Pr\xF3ximo m\xEAs",
|
|
6018
|
-
children: /* @__PURE__ */
|
|
6165
|
+
children: /* @__PURE__ */ jsx35(
|
|
6019
6166
|
"svg",
|
|
6020
6167
|
{
|
|
6021
6168
|
className: "w-6 h-6 text-primary-950",
|
|
6022
6169
|
fill: "none",
|
|
6023
6170
|
stroke: "currentColor",
|
|
6024
6171
|
viewBox: "0 0 24 24",
|
|
6025
|
-
children: /* @__PURE__ */
|
|
6172
|
+
children: /* @__PURE__ */ jsx35(
|
|
6026
6173
|
"path",
|
|
6027
6174
|
{
|
|
6028
6175
|
strokeLinecap: "round",
|
|
@@ -6037,7 +6184,7 @@ var Calendar = ({
|
|
|
6037
6184
|
)
|
|
6038
6185
|
] })
|
|
6039
6186
|
] }),
|
|
6040
|
-
/* @__PURE__ */
|
|
6187
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-7 mb-2", children: WEEK_DAYS.map((day) => /* @__PURE__ */ jsx35(
|
|
6041
6188
|
"div",
|
|
6042
6189
|
{
|
|
6043
6190
|
className: "h-4 flex items-center justify-center text-xs font-semibold text-text-500",
|
|
@@ -6045,13 +6192,13 @@ var Calendar = ({
|
|
|
6045
6192
|
},
|
|
6046
6193
|
day
|
|
6047
6194
|
)) }),
|
|
6048
|
-
/* @__PURE__ */
|
|
6195
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-7", children: calendarData.map((day) => {
|
|
6049
6196
|
if (!day.isCurrentMonth) {
|
|
6050
|
-
return /* @__PURE__ */
|
|
6197
|
+
return /* @__PURE__ */ jsx35(
|
|
6051
6198
|
"div",
|
|
6052
6199
|
{
|
|
6053
6200
|
className: "flex items-center justify-center",
|
|
6054
|
-
children: /* @__PURE__ */
|
|
6201
|
+
children: /* @__PURE__ */ jsx35("div", { className: "w-10 h-10" })
|
|
6055
6202
|
},
|
|
6056
6203
|
day.date.getTime()
|
|
6057
6204
|
);
|
|
@@ -6061,11 +6208,11 @@ var Calendar = ({
|
|
|
6061
6208
|
variant,
|
|
6062
6209
|
showActivities
|
|
6063
6210
|
);
|
|
6064
|
-
return /* @__PURE__ */
|
|
6211
|
+
return /* @__PURE__ */ jsx35(
|
|
6065
6212
|
"div",
|
|
6066
6213
|
{
|
|
6067
6214
|
className: "flex items-center justify-center",
|
|
6068
|
-
children: /* @__PURE__ */
|
|
6215
|
+
children: /* @__PURE__ */ jsx35(
|
|
6069
6216
|
"button",
|
|
6070
6217
|
{
|
|
6071
6218
|
className: `
|
|
@@ -6098,7 +6245,7 @@ import {
|
|
|
6098
6245
|
forwardRef as forwardRef12,
|
|
6099
6246
|
useEffect as useEffect15
|
|
6100
6247
|
} from "react";
|
|
6101
|
-
import { Fragment as Fragment5, jsx as
|
|
6248
|
+
import { Fragment as Fragment5, jsx as jsx36, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6102
6249
|
var SIZE_CLASSES11 = {
|
|
6103
6250
|
"extra-small": "w-screen max-w-[324px]",
|
|
6104
6251
|
small: "w-screen max-w-[378px]",
|
|
@@ -6163,14 +6310,14 @@ var AlertDialog = forwardRef12(
|
|
|
6163
6310
|
onCancel?.(cancelValue);
|
|
6164
6311
|
};
|
|
6165
6312
|
const sizeClasses = SIZE_CLASSES11[size];
|
|
6166
|
-
return /* @__PURE__ */
|
|
6313
|
+
return /* @__PURE__ */ jsx36(Fragment5, { children: isOpen && /* @__PURE__ */ jsx36(
|
|
6167
6314
|
"div",
|
|
6168
6315
|
{
|
|
6169
6316
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",
|
|
6170
6317
|
onClick: handleBackdropClick,
|
|
6171
6318
|
onKeyDown: handleBackdropKeyDown,
|
|
6172
6319
|
"data-testid": "alert-dialog-overlay",
|
|
6173
|
-
children: /* @__PURE__ */
|
|
6320
|
+
children: /* @__PURE__ */ jsxs29(
|
|
6174
6321
|
"div",
|
|
6175
6322
|
{
|
|
6176
6323
|
ref,
|
|
@@ -6181,7 +6328,7 @@ var AlertDialog = forwardRef12(
|
|
|
6181
6328
|
),
|
|
6182
6329
|
...props,
|
|
6183
6330
|
children: [
|
|
6184
|
-
/* @__PURE__ */
|
|
6331
|
+
/* @__PURE__ */ jsx36(
|
|
6185
6332
|
"h2",
|
|
6186
6333
|
{
|
|
6187
6334
|
id: "alert-dialog-title",
|
|
@@ -6189,7 +6336,7 @@ var AlertDialog = forwardRef12(
|
|
|
6189
6336
|
children: title
|
|
6190
6337
|
}
|
|
6191
6338
|
),
|
|
6192
|
-
/* @__PURE__ */
|
|
6339
|
+
/* @__PURE__ */ jsx36(
|
|
6193
6340
|
"p",
|
|
6194
6341
|
{
|
|
6195
6342
|
id: "alert-dialog-description",
|
|
@@ -6197,9 +6344,9 @@ var AlertDialog = forwardRef12(
|
|
|
6197
6344
|
children: description
|
|
6198
6345
|
}
|
|
6199
6346
|
),
|
|
6200
|
-
/* @__PURE__ */
|
|
6201
|
-
/* @__PURE__ */
|
|
6202
|
-
/* @__PURE__ */
|
|
6347
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex flex-row items-center justify-end pt-4 gap-3", children: [
|
|
6348
|
+
/* @__PURE__ */ jsx36(Button_default, { variant: "outline", size: "small", onClick: handleCancel, children: cancelButtonLabel }),
|
|
6349
|
+
/* @__PURE__ */ jsx36(
|
|
6203
6350
|
Button_default,
|
|
6204
6351
|
{
|
|
6205
6352
|
variant: "solid",
|
|
@@ -6221,11 +6368,11 @@ AlertDialog.displayName = "AlertDialog";
|
|
|
6221
6368
|
|
|
6222
6369
|
// src/components/LoadingModal/loadingModal.tsx
|
|
6223
6370
|
import { forwardRef as forwardRef13 } from "react";
|
|
6224
|
-
import { jsx as
|
|
6371
|
+
import { jsx as jsx37, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6225
6372
|
var LoadingModal = forwardRef13(
|
|
6226
6373
|
({ open, title = "Titulo...", subtitle = "Subtitulo...", ...props }, ref) => {
|
|
6227
6374
|
if (!open) return null;
|
|
6228
|
-
return /* @__PURE__ */
|
|
6375
|
+
return /* @__PURE__ */ jsx37(
|
|
6229
6376
|
"div",
|
|
6230
6377
|
{
|
|
6231
6378
|
ref,
|
|
@@ -6234,8 +6381,8 @@ var LoadingModal = forwardRef13(
|
|
|
6234
6381
|
"aria-describedby": "loading-modal-subtitle",
|
|
6235
6382
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-background/90 backdrop-blur-xs",
|
|
6236
6383
|
...props,
|
|
6237
|
-
children: /* @__PURE__ */
|
|
6238
|
-
/* @__PURE__ */
|
|
6384
|
+
children: /* @__PURE__ */ jsxs30("div", { className: "w-full max-w-[364px] flex flex-col items-center justify-center gap-14", children: [
|
|
6385
|
+
/* @__PURE__ */ jsx37("span", { className: "animate-spin", "aria-hidden": "true", children: /* @__PURE__ */ jsxs30(
|
|
6239
6386
|
"svg",
|
|
6240
6387
|
{
|
|
6241
6388
|
width: "102",
|
|
@@ -6246,14 +6393,14 @@ var LoadingModal = forwardRef13(
|
|
|
6246
6393
|
"aria-hidden": "true",
|
|
6247
6394
|
focusable: false,
|
|
6248
6395
|
children: [
|
|
6249
|
-
/* @__PURE__ */
|
|
6396
|
+
/* @__PURE__ */ jsx37(
|
|
6250
6397
|
"path",
|
|
6251
6398
|
{
|
|
6252
6399
|
d: "M101.5 51C101.5 78.8904 78.8904 101.5 51 101.5C23.1096 101.5 0.5 78.8904 0.5 51C0.5 23.1096 23.1096 0.5 51 0.5C78.8904 0.5 101.5 23.1096 101.5 51ZM8.62286 51C8.62286 74.4043 27.5957 93.3771 51 93.3771C74.4043 93.3771 93.3771 74.4043 93.3771 51C93.3771 27.5957 74.4043 8.62286 51 8.62286C27.5957 8.62286 8.62286 27.5957 8.62286 51Z",
|
|
6253
6400
|
className: "fill-primary-100"
|
|
6254
6401
|
}
|
|
6255
6402
|
),
|
|
6256
|
-
/* @__PURE__ */
|
|
6403
|
+
/* @__PURE__ */ jsx37(
|
|
6257
6404
|
"path",
|
|
6258
6405
|
{
|
|
6259
6406
|
d: "M97.4386 51C99.6816 51 101.517 52.8213 101.337 55.0571C100.754 62.2833 98.6212 69.3162 95.0643 75.6696C90.8444 83.207 84.7616 89.536 77.3975 94.0514C70.0333 98.5668 61.6339 101.118 53.0024 101.46C44.371 101.803 35.7959 99.9255 28.0971 96.0078C20.3982 92.0902 13.833 86.2631 9.02917 79.0838C4.22529 71.9045 1.34332 63.6129 0.658804 55.0017C-0.0257159 46.3906 1.51009 37.7479 5.1194 29.8997C8.16173 23.2845 12.5915 17.4202 18.0904 12.6959C19.7917 11.2341 22.3444 11.6457 23.6647 13.459C24.9851 15.2723 24.5702 17.7988 22.8916 19.2866C18.5048 23.1747 14.9608 27.9413 12.4992 33.2937C9.47048 39.8794 8.1817 47.132 8.75612 54.3581C9.33053 61.5841 11.7489 68.542 15.7801 74.5666C19.8113 80.5911 25.3205 85.4809 31.781 88.7684C38.2414 92.0559 45.4372 93.6312 52.6804 93.3438C59.9235 93.0564 66.9718 90.9158 73.1515 87.1267C79.3311 83.3375 84.4355 78.0266 87.9766 71.7015C90.8546 66.561 92.6217 60.8903 93.1827 55.0553C93.3973 52.8225 95.1955 51 97.4386 51Z",
|
|
@@ -6263,9 +6410,9 @@ var LoadingModal = forwardRef13(
|
|
|
6263
6410
|
]
|
|
6264
6411
|
}
|
|
6265
6412
|
) }),
|
|
6266
|
-
/* @__PURE__ */
|
|
6267
|
-
/* @__PURE__ */
|
|
6268
|
-
/* @__PURE__ */
|
|
6413
|
+
/* @__PURE__ */ jsxs30("span", { className: "flex flex-col gap-4 text-center", children: [
|
|
6414
|
+
/* @__PURE__ */ jsx37("p", { id: "loading-modal-title", className: "text-text-950 text-lg", children: title }),
|
|
6415
|
+
/* @__PURE__ */ jsx37("p", { id: "loading-modal-subtitle", className: "text-text-600 text-lg", children: subtitle })
|
|
6269
6416
|
] })
|
|
6270
6417
|
] })
|
|
6271
6418
|
}
|
|
@@ -6280,7 +6427,7 @@ import { useState as useState15, useEffect as useEffect17 } from "react";
|
|
|
6280
6427
|
|
|
6281
6428
|
// src/components/Skeleton/Skeleton.tsx
|
|
6282
6429
|
import { forwardRef as forwardRef14 } from "react";
|
|
6283
|
-
import { jsx as
|
|
6430
|
+
import { jsx as jsx38, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6284
6431
|
var SKELETON_ANIMATION_CLASSES = {
|
|
6285
6432
|
pulse: "animate-pulse",
|
|
6286
6433
|
none: ""
|
|
@@ -6317,13 +6464,13 @@ var Skeleton = forwardRef14(
|
|
|
6317
6464
|
height: typeof height === "number" ? `${height}px` : height
|
|
6318
6465
|
};
|
|
6319
6466
|
if (variant === "text" && lines > 1) {
|
|
6320
|
-
return /* @__PURE__ */
|
|
6467
|
+
return /* @__PURE__ */ jsx38(
|
|
6321
6468
|
"div",
|
|
6322
6469
|
{
|
|
6323
6470
|
ref,
|
|
6324
6471
|
className: cn("flex flex-col", spacingClass, className),
|
|
6325
6472
|
...props,
|
|
6326
|
-
children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */
|
|
6473
|
+
children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ jsx38(
|
|
6327
6474
|
"div",
|
|
6328
6475
|
{
|
|
6329
6476
|
className: cn(variantClass, animationClass),
|
|
@@ -6334,7 +6481,7 @@ var Skeleton = forwardRef14(
|
|
|
6334
6481
|
}
|
|
6335
6482
|
);
|
|
6336
6483
|
}
|
|
6337
|
-
return /* @__PURE__ */
|
|
6484
|
+
return /* @__PURE__ */ jsx38(
|
|
6338
6485
|
"div",
|
|
6339
6486
|
{
|
|
6340
6487
|
ref,
|
|
@@ -6347,11 +6494,11 @@ var Skeleton = forwardRef14(
|
|
|
6347
6494
|
}
|
|
6348
6495
|
);
|
|
6349
6496
|
var SkeletonText = forwardRef14(
|
|
6350
|
-
(props, ref) => /* @__PURE__ */
|
|
6497
|
+
(props, ref) => /* @__PURE__ */ jsx38(Skeleton, { ref, variant: "text", ...props })
|
|
6351
6498
|
);
|
|
6352
|
-
var SkeletonCircle = forwardRef14((props, ref) => /* @__PURE__ */
|
|
6353
|
-
var SkeletonRectangle = forwardRef14((props, ref) => /* @__PURE__ */
|
|
6354
|
-
var SkeletonRounded = forwardRef14((props, ref) => /* @__PURE__ */
|
|
6499
|
+
var SkeletonCircle = forwardRef14((props, ref) => /* @__PURE__ */ jsx38(Skeleton, { ref, variant: "circular", ...props }));
|
|
6500
|
+
var SkeletonRectangle = forwardRef14((props, ref) => /* @__PURE__ */ jsx38(Skeleton, { ref, variant: "rectangular", ...props }));
|
|
6501
|
+
var SkeletonRounded = forwardRef14((props, ref) => /* @__PURE__ */ jsx38(Skeleton, { ref, variant: "rounded", ...props }));
|
|
6355
6502
|
var SkeletonCard = forwardRef14(
|
|
6356
6503
|
({
|
|
6357
6504
|
showAvatar = true,
|
|
@@ -6362,7 +6509,7 @@ var SkeletonCard = forwardRef14(
|
|
|
6362
6509
|
className = "",
|
|
6363
6510
|
...props
|
|
6364
6511
|
}, ref) => {
|
|
6365
|
-
return /* @__PURE__ */
|
|
6512
|
+
return /* @__PURE__ */ jsxs31(
|
|
6366
6513
|
"div",
|
|
6367
6514
|
{
|
|
6368
6515
|
ref,
|
|
@@ -6372,16 +6519,16 @@ var SkeletonCard = forwardRef14(
|
|
|
6372
6519
|
),
|
|
6373
6520
|
...props,
|
|
6374
6521
|
children: [
|
|
6375
|
-
/* @__PURE__ */
|
|
6376
|
-
showAvatar && /* @__PURE__ */
|
|
6377
|
-
/* @__PURE__ */
|
|
6378
|
-
showTitle && /* @__PURE__ */
|
|
6379
|
-
showDescription && /* @__PURE__ */
|
|
6522
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex items-start space-x-3", children: [
|
|
6523
|
+
showAvatar && /* @__PURE__ */ jsx38(SkeletonCircle, { width: 40, height: 40 }),
|
|
6524
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex-1 space-y-2", children: [
|
|
6525
|
+
showTitle && /* @__PURE__ */ jsx38(SkeletonText, { width: "60%", height: 20 }),
|
|
6526
|
+
showDescription && /* @__PURE__ */ jsx38(SkeletonText, { lines, spacing: "small" })
|
|
6380
6527
|
] })
|
|
6381
6528
|
] }),
|
|
6382
|
-
showActions && /* @__PURE__ */
|
|
6383
|
-
/* @__PURE__ */
|
|
6384
|
-
/* @__PURE__ */
|
|
6529
|
+
showActions && /* @__PURE__ */ jsxs31("div", { className: "flex justify-end space-x-2 mt-4", children: [
|
|
6530
|
+
/* @__PURE__ */ jsx38(SkeletonRectangle, { width: 80, height: 32 }),
|
|
6531
|
+
/* @__PURE__ */ jsx38(SkeletonRectangle, { width: 80, height: 32 })
|
|
6385
6532
|
] })
|
|
6386
6533
|
]
|
|
6387
6534
|
}
|
|
@@ -6398,19 +6545,19 @@ var SkeletonList = forwardRef14(
|
|
|
6398
6545
|
className = "",
|
|
6399
6546
|
...props
|
|
6400
6547
|
}, ref) => {
|
|
6401
|
-
return /* @__PURE__ */
|
|
6402
|
-
showAvatar && /* @__PURE__ */
|
|
6403
|
-
/* @__PURE__ */
|
|
6404
|
-
showTitle && /* @__PURE__ */
|
|
6405
|
-
showDescription && /* @__PURE__ */
|
|
6548
|
+
return /* @__PURE__ */ jsx38("div", { ref, className: cn("space-y-3", className), ...props, children: Array.from({ length: items }, (_, index) => /* @__PURE__ */ jsxs31("div", { className: "flex items-start space-x-3 p-3", children: [
|
|
6549
|
+
showAvatar && /* @__PURE__ */ jsx38(SkeletonCircle, { width: 32, height: 32 }),
|
|
6550
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex-1 space-y-2", children: [
|
|
6551
|
+
showTitle && /* @__PURE__ */ jsx38(SkeletonText, { width: "40%", height: 16 }),
|
|
6552
|
+
showDescription && /* @__PURE__ */ jsx38(SkeletonText, { lines, spacing: "small" })
|
|
6406
6553
|
] })
|
|
6407
6554
|
] }, index)) });
|
|
6408
6555
|
}
|
|
6409
6556
|
);
|
|
6410
6557
|
var SkeletonTable = forwardRef14(
|
|
6411
6558
|
({ rows = 5, columns = 4, showHeader = true, className = "", ...props }, ref) => {
|
|
6412
|
-
return /* @__PURE__ */
|
|
6413
|
-
showHeader && /* @__PURE__ */
|
|
6559
|
+
return /* @__PURE__ */ jsxs31("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6560
|
+
showHeader && /* @__PURE__ */ jsx38("div", { className: "flex space-x-2 mb-3", children: Array.from({ length: columns }, (_, index) => /* @__PURE__ */ jsx38(
|
|
6414
6561
|
SkeletonText,
|
|
6415
6562
|
{
|
|
6416
6563
|
width: `${100 / columns}%`,
|
|
@@ -6418,7 +6565,7 @@ var SkeletonTable = forwardRef14(
|
|
|
6418
6565
|
},
|
|
6419
6566
|
index
|
|
6420
6567
|
)) }),
|
|
6421
|
-
/* @__PURE__ */
|
|
6568
|
+
/* @__PURE__ */ jsx38("div", { className: "space-y-2", children: Array.from({ length: rows }, (_, rowIndex) => /* @__PURE__ */ jsx38("div", { className: "flex space-x-2", children: Array.from({ length: columns }, (_2, colIndex) => /* @__PURE__ */ jsx38(
|
|
6422
6569
|
SkeletonText,
|
|
6423
6570
|
{
|
|
6424
6571
|
width: `${100 / columns}%`,
|
|
@@ -6755,14 +6902,14 @@ var createNotificationStore = (apiClient) => {
|
|
|
6755
6902
|
var mock_content_default = "./mock-content-K2CDVG6P.png";
|
|
6756
6903
|
|
|
6757
6904
|
// src/components/NotificationCard/NotificationCard.tsx
|
|
6758
|
-
import { Fragment as Fragment6, jsx as
|
|
6905
|
+
import { Fragment as Fragment6, jsx as jsx39, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6759
6906
|
var NotificationEmpty = ({
|
|
6760
6907
|
emptyStateImage,
|
|
6761
6908
|
emptyStateTitle = "Nenhuma notifica\xE7\xE3o no momento",
|
|
6762
6909
|
emptyStateDescription = "Voc\xEA est\xE1 em dia com todas as novidades. Volte depois para conferir atualiza\xE7\xF5es!"
|
|
6763
6910
|
}) => {
|
|
6764
|
-
return /* @__PURE__ */
|
|
6765
|
-
emptyStateImage && /* @__PURE__ */
|
|
6911
|
+
return /* @__PURE__ */ jsxs32("div", { className: "flex flex-col items-center justify-center gap-4 p-6 w-full", children: [
|
|
6912
|
+
emptyStateImage && /* @__PURE__ */ jsx39("div", { className: "w-20 h-20 flex items-center justify-center", children: /* @__PURE__ */ jsx39(
|
|
6766
6913
|
"img",
|
|
6767
6914
|
{
|
|
6768
6915
|
src: emptyStateImage,
|
|
@@ -6772,23 +6919,23 @@ var NotificationEmpty = ({
|
|
|
6772
6919
|
className: "object-contain"
|
|
6773
6920
|
}
|
|
6774
6921
|
) }),
|
|
6775
|
-
/* @__PURE__ */
|
|
6776
|
-
/* @__PURE__ */
|
|
6922
|
+
/* @__PURE__ */ jsx39("h3", { className: "text-xl font-semibold text-text-950 text-center leading-[23px]", children: emptyStateTitle }),
|
|
6923
|
+
/* @__PURE__ */ jsx39("p", { className: "text-sm font-normal text-text-400 text-center max-w-[316px] leading-[21px]", children: emptyStateDescription })
|
|
6777
6924
|
] });
|
|
6778
6925
|
};
|
|
6779
6926
|
var NotificationHeader = ({
|
|
6780
6927
|
unreadCount,
|
|
6781
6928
|
variant = "modal"
|
|
6782
6929
|
}) => {
|
|
6783
|
-
return /* @__PURE__ */
|
|
6784
|
-
variant === "modal" ? /* @__PURE__ */
|
|
6785
|
-
unreadCount > 0 && /* @__PURE__ */
|
|
6930
|
+
return /* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-between gap-2", children: [
|
|
6931
|
+
variant === "modal" ? /* @__PURE__ */ jsx39(Text_default, { size: "sm", weight: "bold", className: "text-text-950", children: "Notifica\xE7\xF5es" }) : /* @__PURE__ */ jsx39("h3", { className: "text-sm font-semibold text-text-950", children: "Notifica\xE7\xF5es" }),
|
|
6932
|
+
unreadCount > 0 && /* @__PURE__ */ jsx39(
|
|
6786
6933
|
Badge_default,
|
|
6787
6934
|
{
|
|
6788
6935
|
variant: "solid",
|
|
6789
6936
|
action: "info",
|
|
6790
6937
|
size: "small",
|
|
6791
|
-
iconLeft: /* @__PURE__ */
|
|
6938
|
+
iconLeft: /* @__PURE__ */ jsx39(Bell2, { size: 12, "aria-hidden": "true", focusable: "false" }),
|
|
6792
6939
|
className: "border-0",
|
|
6793
6940
|
children: unreadCount === 1 ? "1 n\xE3o lida" : `${unreadCount} n\xE3o lidas`
|
|
6794
6941
|
}
|
|
@@ -6824,7 +6971,7 @@ var SingleNotificationCard = ({
|
|
|
6824
6971
|
onNavigate();
|
|
6825
6972
|
}
|
|
6826
6973
|
};
|
|
6827
|
-
return /* @__PURE__ */
|
|
6974
|
+
return /* @__PURE__ */ jsxs32(
|
|
6828
6975
|
"div",
|
|
6829
6976
|
{
|
|
6830
6977
|
className: cn(
|
|
@@ -6833,20 +6980,20 @@ var SingleNotificationCard = ({
|
|
|
6833
6980
|
className
|
|
6834
6981
|
),
|
|
6835
6982
|
children: [
|
|
6836
|
-
/* @__PURE__ */
|
|
6837
|
-
!isRead && /* @__PURE__ */
|
|
6838
|
-
/* @__PURE__ */
|
|
6839
|
-
/* @__PURE__ */
|
|
6840
|
-
/* @__PURE__ */
|
|
6983
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2 w-full", children: [
|
|
6984
|
+
!isRead && /* @__PURE__ */ jsx39("div", { className: "w-[7px] h-[7px] bg-info-300 rounded-full flex-shrink-0" }),
|
|
6985
|
+
/* @__PURE__ */ jsx39("h3", { className: "font-bold text-sm leading-4 text-text-950 flex-grow", children: title }),
|
|
6986
|
+
/* @__PURE__ */ jsxs32(DropdownMenu_default, { children: [
|
|
6987
|
+
/* @__PURE__ */ jsx39(
|
|
6841
6988
|
DropdownMenuTrigger,
|
|
6842
6989
|
{
|
|
6843
6990
|
className: "flex-shrink-0 inline-flex items-center justify-center font-medium bg-transparent text-text-950 cursor-pointer hover:bg-info-50 w-6 h-6 rounded-lg",
|
|
6844
6991
|
"aria-label": "Menu de a\xE7\xF5es",
|
|
6845
|
-
children: /* @__PURE__ */
|
|
6992
|
+
children: /* @__PURE__ */ jsx39(DotsThreeVertical, { size: 24 })
|
|
6846
6993
|
}
|
|
6847
6994
|
),
|
|
6848
|
-
/* @__PURE__ */
|
|
6849
|
-
!isRead && /* @__PURE__ */
|
|
6995
|
+
/* @__PURE__ */ jsxs32(DropdownMenuContent, { align: "end", className: "min-w-[160px]", children: [
|
|
6996
|
+
!isRead && /* @__PURE__ */ jsx39(
|
|
6850
6997
|
DropdownMenuItem,
|
|
6851
6998
|
{
|
|
6852
6999
|
onClick: handleMarkAsRead,
|
|
@@ -6854,14 +7001,14 @@ var SingleNotificationCard = ({
|
|
|
6854
7001
|
children: "Marcar como lida"
|
|
6855
7002
|
}
|
|
6856
7003
|
),
|
|
6857
|
-
/* @__PURE__ */
|
|
7004
|
+
/* @__PURE__ */ jsx39(DropdownMenuItem, { onClick: handleDelete, className: "text-error-600", children: "Deletar" })
|
|
6858
7005
|
] })
|
|
6859
7006
|
] })
|
|
6860
7007
|
] }),
|
|
6861
|
-
/* @__PURE__ */
|
|
6862
|
-
/* @__PURE__ */
|
|
6863
|
-
/* @__PURE__ */
|
|
6864
|
-
onNavigate && actionLabel && /* @__PURE__ */
|
|
7008
|
+
/* @__PURE__ */ jsx39("p", { className: "text-sm leading-[21px] text-text-800 w-full", children: message }),
|
|
7009
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-between w-full", children: [
|
|
7010
|
+
/* @__PURE__ */ jsx39("span", { className: "text-sm font-medium text-text-400", children: time }),
|
|
7011
|
+
onNavigate && actionLabel && /* @__PURE__ */ jsx39(
|
|
6865
7012
|
"button",
|
|
6866
7013
|
{
|
|
6867
7014
|
type: "button",
|
|
@@ -6901,9 +7048,9 @@ var NotificationList = ({
|
|
|
6901
7048
|
}
|
|
6902
7049
|
};
|
|
6903
7050
|
if (error) {
|
|
6904
|
-
return /* @__PURE__ */
|
|
6905
|
-
/* @__PURE__ */
|
|
6906
|
-
onRetry && /* @__PURE__ */
|
|
7051
|
+
return /* @__PURE__ */ jsxs32("div", { className: "flex flex-col items-center gap-4 p-6 w-full", children: [
|
|
7052
|
+
/* @__PURE__ */ jsx39("p", { className: "text-sm text-error-600", children: error }),
|
|
7053
|
+
onRetry && /* @__PURE__ */ jsx39(
|
|
6907
7054
|
"button",
|
|
6908
7055
|
{
|
|
6909
7056
|
type: "button",
|
|
@@ -6915,8 +7062,8 @@ var NotificationList = ({
|
|
|
6915
7062
|
] });
|
|
6916
7063
|
}
|
|
6917
7064
|
if (loading) {
|
|
6918
|
-
return /* @__PURE__ */
|
|
6919
|
-
(skeletonId) => /* @__PURE__ */
|
|
7065
|
+
return /* @__PURE__ */ jsx39("div", { className: "flex flex-col gap-0 w-full", children: ["skeleton-first", "skeleton-second", "skeleton-third"].map(
|
|
7066
|
+
(skeletonId) => /* @__PURE__ */ jsx39(
|
|
6920
7067
|
SkeletonCard,
|
|
6921
7068
|
{
|
|
6922
7069
|
className: "p-4 border-b border-border-200"
|
|
@@ -6926,11 +7073,11 @@ var NotificationList = ({
|
|
|
6926
7073
|
) });
|
|
6927
7074
|
}
|
|
6928
7075
|
if (!groupedNotifications || groupedNotifications.length === 0) {
|
|
6929
|
-
return renderEmpty ? /* @__PURE__ */
|
|
7076
|
+
return renderEmpty ? /* @__PURE__ */ jsx39("div", { className: "w-full", children: renderEmpty() }) : /* @__PURE__ */ jsx39(NotificationEmpty, {});
|
|
6930
7077
|
}
|
|
6931
|
-
return /* @__PURE__ */
|
|
6932
|
-
groupedNotifications.map((group, idx) => /* @__PURE__ */
|
|
6933
|
-
/* @__PURE__ */
|
|
7078
|
+
return /* @__PURE__ */ jsxs32("div", { className: cn("flex flex-col gap-0 w-full", className), children: [
|
|
7079
|
+
groupedNotifications.map((group, idx) => /* @__PURE__ */ jsxs32("div", { className: "flex flex-col", children: [
|
|
7080
|
+
/* @__PURE__ */ jsx39("div", { className: "flex items-end px-4 py-6 pb-4", children: /* @__PURE__ */ jsx39("h4", { className: "text-lg font-bold text-text-500 flex-grow", children: group.label }) }),
|
|
6934
7081
|
group.notifications.map((notification) => {
|
|
6935
7082
|
const isGlobalNotification = !notification.entityType && !notification.entityId && !notification.activity && !notification.goal;
|
|
6936
7083
|
let navigationHandler;
|
|
@@ -6950,7 +7097,7 @@ var NotificationList = ({
|
|
|
6950
7097
|
notification.entityType ?? void 0
|
|
6951
7098
|
);
|
|
6952
7099
|
}
|
|
6953
|
-
return /* @__PURE__ */
|
|
7100
|
+
return /* @__PURE__ */ jsx39(
|
|
6954
7101
|
SingleNotificationCard,
|
|
6955
7102
|
{
|
|
6956
7103
|
title: notification.title,
|
|
@@ -6966,7 +7113,7 @@ var NotificationList = ({
|
|
|
6966
7113
|
);
|
|
6967
7114
|
})
|
|
6968
7115
|
] }, `${group.label}-${idx}`)),
|
|
6969
|
-
/* @__PURE__ */
|
|
7116
|
+
/* @__PURE__ */ jsx39(
|
|
6970
7117
|
Modal_default,
|
|
6971
7118
|
{
|
|
6972
7119
|
isOpen: globalNotificationModal.isOpen,
|
|
@@ -7024,7 +7171,7 @@ var NotificationCenter = ({
|
|
|
7024
7171
|
onFetchNotifications?.();
|
|
7025
7172
|
}
|
|
7026
7173
|
}, [isActive, onFetchNotifications]);
|
|
7027
|
-
const renderEmptyState = () => /* @__PURE__ */
|
|
7174
|
+
const renderEmptyState = () => /* @__PURE__ */ jsx39(
|
|
7028
7175
|
NotificationEmpty,
|
|
7029
7176
|
{
|
|
7030
7177
|
emptyStateImage,
|
|
@@ -7033,17 +7180,17 @@ var NotificationCenter = ({
|
|
|
7033
7180
|
}
|
|
7034
7181
|
);
|
|
7035
7182
|
if (isMobile) {
|
|
7036
|
-
return /* @__PURE__ */
|
|
7037
|
-
/* @__PURE__ */
|
|
7183
|
+
return /* @__PURE__ */ jsxs32(Fragment6, { children: [
|
|
7184
|
+
/* @__PURE__ */ jsx39(
|
|
7038
7185
|
IconButton_default,
|
|
7039
7186
|
{
|
|
7040
7187
|
active: isModalOpen,
|
|
7041
7188
|
onClick: handleMobileClick,
|
|
7042
|
-
icon: /* @__PURE__ */
|
|
7189
|
+
icon: /* @__PURE__ */ jsx39(Bell2, { size: 24, className: "text-primary" }),
|
|
7043
7190
|
className
|
|
7044
7191
|
}
|
|
7045
7192
|
),
|
|
7046
|
-
/* @__PURE__ */
|
|
7193
|
+
/* @__PURE__ */ jsx39(
|
|
7047
7194
|
Modal_default,
|
|
7048
7195
|
{
|
|
7049
7196
|
isOpen: isModalOpen,
|
|
@@ -7052,10 +7199,10 @@ var NotificationCenter = ({
|
|
|
7052
7199
|
size: "md",
|
|
7053
7200
|
hideCloseButton: false,
|
|
7054
7201
|
closeOnEscape: true,
|
|
7055
|
-
children: /* @__PURE__ */
|
|
7056
|
-
/* @__PURE__ */
|
|
7057
|
-
/* @__PURE__ */
|
|
7058
|
-
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */
|
|
7202
|
+
children: /* @__PURE__ */ jsxs32("div", { className: "flex flex-col h-full max-h-[80vh]", children: [
|
|
7203
|
+
/* @__PURE__ */ jsxs32("div", { className: "px-0 pb-3 border-b border-border-200", children: [
|
|
7204
|
+
/* @__PURE__ */ jsx39(NotificationHeader, { unreadCount, variant: "modal" }),
|
|
7205
|
+
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ jsx39(
|
|
7059
7206
|
"button",
|
|
7060
7207
|
{
|
|
7061
7208
|
type: "button",
|
|
@@ -7065,7 +7212,7 @@ var NotificationCenter = ({
|
|
|
7065
7212
|
}
|
|
7066
7213
|
)
|
|
7067
7214
|
] }),
|
|
7068
|
-
/* @__PURE__ */
|
|
7215
|
+
/* @__PURE__ */ jsx39("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsx39(
|
|
7069
7216
|
NotificationList,
|
|
7070
7217
|
{
|
|
7071
7218
|
groupedNotifications,
|
|
@@ -7093,7 +7240,7 @@ var NotificationCenter = ({
|
|
|
7093
7240
|
] })
|
|
7094
7241
|
}
|
|
7095
7242
|
),
|
|
7096
|
-
/* @__PURE__ */
|
|
7243
|
+
/* @__PURE__ */ jsx39(
|
|
7097
7244
|
Modal_default,
|
|
7098
7245
|
{
|
|
7099
7246
|
isOpen: globalNotificationModal.isOpen,
|
|
@@ -7109,18 +7256,18 @@ var NotificationCenter = ({
|
|
|
7109
7256
|
)
|
|
7110
7257
|
] });
|
|
7111
7258
|
}
|
|
7112
|
-
return /* @__PURE__ */
|
|
7113
|
-
/* @__PURE__ */
|
|
7259
|
+
return /* @__PURE__ */ jsxs32(Fragment6, { children: [
|
|
7260
|
+
/* @__PURE__ */ jsxs32(
|
|
7114
7261
|
DropdownMenu_default,
|
|
7115
7262
|
{
|
|
7116
7263
|
...typeof isActive === "boolean" ? { open: isActive, onOpenChange: handleOpenChange } : { onOpenChange: handleOpenChange },
|
|
7117
7264
|
children: [
|
|
7118
|
-
/* @__PURE__ */
|
|
7265
|
+
/* @__PURE__ */ jsx39(DropdownMenuTrigger, { className: "text-primary cursor-pointer", children: /* @__PURE__ */ jsx39(
|
|
7119
7266
|
IconButton_default,
|
|
7120
7267
|
{
|
|
7121
7268
|
active: isActive,
|
|
7122
7269
|
onClick: handleDesktopClick,
|
|
7123
|
-
icon: /* @__PURE__ */
|
|
7270
|
+
icon: /* @__PURE__ */ jsx39(
|
|
7124
7271
|
Bell2,
|
|
7125
7272
|
{
|
|
7126
7273
|
size: 24,
|
|
@@ -7130,22 +7277,22 @@ var NotificationCenter = ({
|
|
|
7130
7277
|
className
|
|
7131
7278
|
}
|
|
7132
7279
|
) }),
|
|
7133
|
-
/* @__PURE__ */
|
|
7280
|
+
/* @__PURE__ */ jsx39(
|
|
7134
7281
|
DropdownMenuContent,
|
|
7135
7282
|
{
|
|
7136
7283
|
className: "min-w-[320px] max-w-[400px] max-h-[500px] overflow-hidden",
|
|
7137
7284
|
side: "bottom",
|
|
7138
7285
|
align: "end",
|
|
7139
|
-
children: /* @__PURE__ */
|
|
7140
|
-
/* @__PURE__ */
|
|
7141
|
-
/* @__PURE__ */
|
|
7286
|
+
children: /* @__PURE__ */ jsxs32("div", { className: "flex flex-col", children: [
|
|
7287
|
+
/* @__PURE__ */ jsxs32("div", { className: "px-4 py-3 border-b border-border-200", children: [
|
|
7288
|
+
/* @__PURE__ */ jsx39(
|
|
7142
7289
|
NotificationHeader,
|
|
7143
7290
|
{
|
|
7144
7291
|
unreadCount,
|
|
7145
7292
|
variant: "dropdown"
|
|
7146
7293
|
}
|
|
7147
7294
|
),
|
|
7148
|
-
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */
|
|
7295
|
+
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ jsx39(
|
|
7149
7296
|
"button",
|
|
7150
7297
|
{
|
|
7151
7298
|
type: "button",
|
|
@@ -7155,7 +7302,7 @@ var NotificationCenter = ({
|
|
|
7155
7302
|
}
|
|
7156
7303
|
)
|
|
7157
7304
|
] }),
|
|
7158
|
-
/* @__PURE__ */
|
|
7305
|
+
/* @__PURE__ */ jsx39("div", { className: "max-h-[350px] overflow-y-auto", children: /* @__PURE__ */ jsx39(
|
|
7159
7306
|
NotificationList,
|
|
7160
7307
|
{
|
|
7161
7308
|
groupedNotifications,
|
|
@@ -7182,7 +7329,7 @@ var NotificationCenter = ({
|
|
|
7182
7329
|
]
|
|
7183
7330
|
}
|
|
7184
7331
|
),
|
|
7185
|
-
/* @__PURE__ */
|
|
7332
|
+
/* @__PURE__ */ jsx39(
|
|
7186
7333
|
Modal_default,
|
|
7187
7334
|
{
|
|
7188
7335
|
isOpen: globalNotificationModal.isOpen,
|
|
@@ -7201,7 +7348,7 @@ var NotificationCenter = ({
|
|
|
7201
7348
|
var NotificationCard = (props) => {
|
|
7202
7349
|
switch (props.mode) {
|
|
7203
7350
|
case "single":
|
|
7204
|
-
return /* @__PURE__ */
|
|
7351
|
+
return /* @__PURE__ */ jsx39(
|
|
7205
7352
|
SingleNotificationCard,
|
|
7206
7353
|
{
|
|
7207
7354
|
title: props.title,
|
|
@@ -7216,7 +7363,7 @@ var NotificationCard = (props) => {
|
|
|
7216
7363
|
}
|
|
7217
7364
|
);
|
|
7218
7365
|
case "list":
|
|
7219
|
-
return /* @__PURE__ */
|
|
7366
|
+
return /* @__PURE__ */ jsx39(
|
|
7220
7367
|
NotificationList,
|
|
7221
7368
|
{
|
|
7222
7369
|
groupedNotifications: props.groupedNotifications ?? (props.notifications ? [
|
|
@@ -7239,19 +7386,19 @@ var NotificationCard = (props) => {
|
|
|
7239
7386
|
}
|
|
7240
7387
|
);
|
|
7241
7388
|
case "center":
|
|
7242
|
-
return /* @__PURE__ */
|
|
7389
|
+
return /* @__PURE__ */ jsx39(NotificationCenter, { ...props });
|
|
7243
7390
|
default:
|
|
7244
|
-
return /* @__PURE__ */
|
|
7391
|
+
return /* @__PURE__ */ jsx39("div", { className: "flex flex-col items-center gap-4 p-6 w-full", children: /* @__PURE__ */ jsx39("p", { className: "text-sm text-text-600", children: "Modo de notifica\xE7\xE3o n\xE3o reconhecido" }) });
|
|
7245
7392
|
}
|
|
7246
7393
|
};
|
|
7247
7394
|
var NotificationCard_default = NotificationCard;
|
|
7248
7395
|
|
|
7249
7396
|
// src/assets/icons/subjects/BookOpenText.tsx
|
|
7250
|
-
import { jsx as
|
|
7397
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
7251
7398
|
var BookOpenText = ({
|
|
7252
7399
|
size,
|
|
7253
7400
|
color
|
|
7254
|
-
}) => /* @__PURE__ */
|
|
7401
|
+
}) => /* @__PURE__ */ jsx40(
|
|
7255
7402
|
"svg",
|
|
7256
7403
|
{
|
|
7257
7404
|
width: size,
|
|
@@ -7259,7 +7406,7 @@ var BookOpenText = ({
|
|
|
7259
7406
|
viewBox: "0 0 32 32",
|
|
7260
7407
|
fill: "none",
|
|
7261
7408
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7262
|
-
children: /* @__PURE__ */
|
|
7409
|
+
children: /* @__PURE__ */ jsx40(
|
|
7263
7410
|
"path",
|
|
7264
7411
|
{
|
|
7265
7412
|
d: "M29 6H20C19.2238 6 18.4582 6.18073 17.7639 6.52786C17.0697 6.875 16.4657 7.37902 16 8C15.5343 7.37902 14.9303 6.875 14.2361 6.52786C13.5418 6.18073 12.7762 6 12 6H3C2.73478 6 2.48043 6.10536 2.29289 6.29289C2.10536 6.48043 2 6.73478 2 7V25C2 25.2652 2.10536 25.5196 2.29289 25.7071C2.48043 25.8946 2.73478 26 3 26H12C12.7956 26 13.5587 26.3161 14.1213 26.8787C14.6839 27.4413 15 28.2044 15 29C15 29.2652 15.1054 29.5196 15.2929 29.7071C15.4804 29.8946 15.7348 30 16 30C16.2652 30 16.5196 29.8946 16.7071 29.7071C16.8946 29.5196 17 29.2652 17 29C17 28.2044 17.3161 27.4413 17.8787 26.8787C18.4413 26.3161 19.2044 26 20 26H29C29.2652 26 29.5196 25.8946 29.7071 25.7071C29.8946 25.5196 30 25.2652 30 25V7C30 6.73478 29.8946 6.48043 29.7071 6.29289C29.5196 6.10536 29.2652 6 29 6ZM12 24H4V8H12C12.7956 8 13.5587 8.31607 14.1213 8.87868C14.6839 9.44129 15 10.2044 15 11V25C14.1353 24.3493 13.0821 23.9983 12 24ZM28 24H20C18.9179 23.9983 17.8647 24.3493 17 25V11C17 10.2044 17.3161 9.44129 17.8787 8.87868C18.4413 8.31607 19.2044 8 20 8H28V24ZM20 11H25C25.2652 11 25.5196 11.1054 25.7071 11.2929C25.8946 11.4804 26 11.7348 26 12C26 12.2652 25.8946 12.5196 25.7071 12.7071C25.5196 12.8946 25.2652 13 25 13H20C19.7348 13 19.4804 12.8946 19.2929 12.7071C19.1054 12.5196 19 12.2652 19 12C19 11.7348 19.1054 11.4804 19.2929 11.2929C19.4804 11.1054 19.7348 11 20 11ZM26 16C26 16.2652 25.8946 16.5196 25.7071 16.7071C25.5196 16.8946 25.2652 17 25 17H20C19.7348 17 19.4804 16.8946 19.2929 16.7071C19.1054 16.5196 19 16.2652 19 16C19 15.7348 19.1054 15.4804 19.2929 15.2929C19.4804 15.1054 19.7348 15 20 15H25C25.2652 15 25.5196 15.1054 25.7071 15.2929C25.8946 15.4804 26 15.7348 26 16ZM26 20C26 20.2652 25.8946 20.5196 25.7071 20.7071C25.5196 20.8946 25.2652 21 25 21H20C19.7348 21 19.4804 20.8946 19.2929 20.7071C19.1054 20.5196 19 20.2652 19 20C19 19.7348 19.1054 19.4804 19.2929 19.2929C19.4804 19.1054 19.7348 19 20 19H25C25.2652 19 25.5196 19.1054 25.7071 19.2929C25.8946 19.4804 26 19.7348 26 20Z",
|
|
@@ -7270,8 +7417,8 @@ var BookOpenText = ({
|
|
|
7270
7417
|
);
|
|
7271
7418
|
|
|
7272
7419
|
// src/assets/icons/subjects/ChatEN.tsx
|
|
7273
|
-
import { jsx as
|
|
7274
|
-
var ChatEN = ({ size, color }) => /* @__PURE__ */
|
|
7420
|
+
import { jsx as jsx41, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
7421
|
+
var ChatEN = ({ size, color }) => /* @__PURE__ */ jsxs33(
|
|
7275
7422
|
"svg",
|
|
7276
7423
|
{
|
|
7277
7424
|
width: size,
|
|
@@ -7280,21 +7427,21 @@ var ChatEN = ({ size, color }) => /* @__PURE__ */ jsxs32(
|
|
|
7280
7427
|
fill: "none",
|
|
7281
7428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7282
7429
|
children: [
|
|
7283
|
-
/* @__PURE__ */
|
|
7430
|
+
/* @__PURE__ */ jsx41(
|
|
7284
7431
|
"path",
|
|
7285
7432
|
{
|
|
7286
7433
|
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
7287
7434
|
fill: color
|
|
7288
7435
|
}
|
|
7289
7436
|
),
|
|
7290
|
-
/* @__PURE__ */
|
|
7437
|
+
/* @__PURE__ */ jsx41(
|
|
7291
7438
|
"path",
|
|
7292
7439
|
{
|
|
7293
7440
|
d: "M22.5488 12V20.5312H21.0781L17.252 14.4199V20.5312H15.7812V12H17.252L21.0898 18.123V12H22.5488Z",
|
|
7294
7441
|
fill: color
|
|
7295
7442
|
}
|
|
7296
7443
|
),
|
|
7297
|
-
/* @__PURE__ */
|
|
7444
|
+
/* @__PURE__ */ jsx41(
|
|
7298
7445
|
"path",
|
|
7299
7446
|
{
|
|
7300
7447
|
d: "M14.584 19.3652V20.5312H10.0547V19.3652H14.584ZM10.4707 12V20.5312H9V12H10.4707ZM13.9922 15.5625V16.7109H10.0547V15.5625H13.9922ZM14.5547 12V13.1719H10.0547V12H14.5547Z",
|
|
@@ -7306,8 +7453,8 @@ var ChatEN = ({ size, color }) => /* @__PURE__ */ jsxs32(
|
|
|
7306
7453
|
);
|
|
7307
7454
|
|
|
7308
7455
|
// src/assets/icons/subjects/ChatES.tsx
|
|
7309
|
-
import { jsx as
|
|
7310
|
-
var ChatES = ({ size, color }) => /* @__PURE__ */
|
|
7456
|
+
import { jsx as jsx42, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
7457
|
+
var ChatES = ({ size, color }) => /* @__PURE__ */ jsxs34(
|
|
7311
7458
|
"svg",
|
|
7312
7459
|
{
|
|
7313
7460
|
width: size,
|
|
@@ -7316,21 +7463,21 @@ var ChatES = ({ size, color }) => /* @__PURE__ */ jsxs33(
|
|
|
7316
7463
|
fill: "none",
|
|
7317
7464
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7318
7465
|
children: [
|
|
7319
|
-
/* @__PURE__ */
|
|
7466
|
+
/* @__PURE__ */ jsx42(
|
|
7320
7467
|
"path",
|
|
7321
7468
|
{
|
|
7322
7469
|
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
7323
7470
|
fill: color
|
|
7324
7471
|
}
|
|
7325
7472
|
),
|
|
7326
|
-
/* @__PURE__ */
|
|
7473
|
+
/* @__PURE__ */ jsx42(
|
|
7327
7474
|
"path",
|
|
7328
7475
|
{
|
|
7329
7476
|
d: "M21.1426 17.8027C21.1426 17.627 21.1152 17.4707 21.0605 17.334C21.0098 17.1973 20.918 17.0723 20.7852 16.959C20.6523 16.8457 20.4648 16.7363 20.2227 16.6309C19.9844 16.5215 19.6797 16.4102 19.3086 16.2969C18.9023 16.1719 18.5273 16.0332 18.1836 15.8809C17.8438 15.7246 17.5469 15.5449 17.293 15.3418C17.0391 15.1348 16.8418 14.8984 16.7012 14.6328C16.5605 14.3633 16.4902 14.0527 16.4902 13.7012C16.4902 13.3535 16.5625 13.0371 16.707 12.752C16.8555 12.4668 17.0645 12.2207 17.334 12.0137C17.6074 11.8027 17.9297 11.6406 18.3008 11.5273C18.6719 11.4102 19.082 11.3516 19.5312 11.3516C20.1641 11.3516 20.709 11.4688 21.166 11.7031C21.627 11.9375 21.9805 12.252 22.2266 12.6465C22.4766 13.041 22.6016 13.4766 22.6016 13.9531H21.1426C21.1426 13.6719 21.082 13.4238 20.9609 13.209C20.8438 12.9902 20.6641 12.8184 20.4219 12.6934C20.1836 12.5684 19.8809 12.5059 19.5137 12.5059C19.166 12.5059 18.877 12.5586 18.6465 12.6641C18.416 12.7695 18.2441 12.9121 18.1309 13.0918C18.0176 13.2715 17.9609 13.4746 17.9609 13.7012C17.9609 13.8613 17.998 14.0078 18.0723 14.1406C18.1465 14.2695 18.2598 14.3906 18.4121 14.5039C18.5645 14.6133 18.7559 14.7168 18.9863 14.8145C19.2168 14.9121 19.4883 15.0059 19.8008 15.0957C20.2734 15.2363 20.6855 15.3926 21.0371 15.5645C21.3887 15.7324 21.6816 15.9238 21.916 16.1387C22.1504 16.3535 22.3262 16.5977 22.4434 16.8711C22.5605 17.1406 22.6191 17.4473 22.6191 17.791C22.6191 18.1504 22.5469 18.4746 22.4023 18.7637C22.2578 19.0488 22.0508 19.293 21.7812 19.4961C21.5156 19.6953 21.1953 19.8496 20.8203 19.959C20.4492 20.0645 20.0352 20.1172 19.5781 20.1172C19.168 20.1172 18.7637 20.0625 18.3652 19.9531C17.9707 19.8438 17.6113 19.6777 17.2871 19.4551C16.9629 19.2285 16.7051 18.9473 16.5137 18.6113C16.3223 18.2715 16.2266 17.875 16.2266 17.4219H17.6973C17.6973 17.6992 17.7441 17.9355 17.8379 18.1309C17.9355 18.3262 18.0703 18.4863 18.2422 18.6113C18.4141 18.7324 18.6133 18.8223 18.8398 18.8809C19.0703 18.9395 19.3164 18.9688 19.5781 18.9688C19.9219 18.9688 20.209 18.9199 20.4395 18.8223C20.6738 18.7246 20.8496 18.5879 20.9668 18.4121C21.084 18.2363 21.1426 18.0332 21.1426 17.8027Z",
|
|
7330
7477
|
fill: color
|
|
7331
7478
|
}
|
|
7332
7479
|
),
|
|
7333
|
-
/* @__PURE__ */
|
|
7480
|
+
/* @__PURE__ */ jsx42(
|
|
7334
7481
|
"path",
|
|
7335
7482
|
{
|
|
7336
7483
|
d: "M15.4512 18.834V20H10.9219V18.834H15.4512ZM11.3379 11.4688V20H9.86719V11.4688H11.3379ZM14.8594 15.0312V16.1797H10.9219V15.0312H14.8594ZM15.4219 11.4688V12.6406H10.9219V11.4688H15.4219Z",
|
|
@@ -7342,8 +7489,8 @@ var ChatES = ({ size, color }) => /* @__PURE__ */ jsxs33(
|
|
|
7342
7489
|
);
|
|
7343
7490
|
|
|
7344
7491
|
// src/assets/icons/subjects/ChatPT.tsx
|
|
7345
|
-
import { jsx as
|
|
7346
|
-
var ChatPT = ({ size, color }) => /* @__PURE__ */
|
|
7492
|
+
import { jsx as jsx43, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7493
|
+
var ChatPT = ({ size, color }) => /* @__PURE__ */ jsxs35(
|
|
7347
7494
|
"svg",
|
|
7348
7495
|
{
|
|
7349
7496
|
width: size,
|
|
@@ -7352,21 +7499,21 @@ var ChatPT = ({ size, color }) => /* @__PURE__ */ jsxs34(
|
|
|
7352
7499
|
fill: "none",
|
|
7353
7500
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7354
7501
|
children: [
|
|
7355
|
-
/* @__PURE__ */
|
|
7502
|
+
/* @__PURE__ */ jsx43(
|
|
7356
7503
|
"path",
|
|
7357
7504
|
{
|
|
7358
7505
|
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
7359
7506
|
fill: color
|
|
7360
7507
|
}
|
|
7361
7508
|
),
|
|
7362
|
-
/* @__PURE__ */
|
|
7509
|
+
/* @__PURE__ */ jsx43(
|
|
7363
7510
|
"path",
|
|
7364
7511
|
{
|
|
7365
7512
|
d: "M21.1758 12V20.5312H19.7168V12H21.1758ZM23.8535 12V13.1719H17.0625V12H23.8535Z",
|
|
7366
7513
|
fill: color
|
|
7367
7514
|
}
|
|
7368
7515
|
),
|
|
7369
|
-
/* @__PURE__ */
|
|
7516
|
+
/* @__PURE__ */ jsx43(
|
|
7370
7517
|
"path",
|
|
7371
7518
|
{
|
|
7372
7519
|
d: "M13.2402 17.3496H11.0195V16.1836H13.2402C13.627 16.1836 13.9395 16.1211 14.1777 15.9961C14.416 15.8711 14.5898 15.6992 14.6992 15.4805C14.8125 15.2578 14.8691 15.0039 14.8691 14.7188C14.8691 14.4492 14.8125 14.1973 14.6992 13.9629C14.5898 13.7246 14.416 13.5332 14.1777 13.3887C13.9395 13.2441 13.627 13.1719 13.2402 13.1719H11.4707V20.5312H10V12H13.2402C13.9004 12 14.4609 12.1172 14.9219 12.3516C15.3867 12.582 15.7402 12.9023 15.9824 13.3125C16.2246 13.7188 16.3457 14.1836 16.3457 14.707C16.3457 15.2578 16.2246 15.7305 15.9824 16.125C15.7402 16.5195 15.3867 16.8223 14.9219 17.0332C14.4609 17.2441 13.9004 17.3496 13.2402 17.3496Z",
|
|
@@ -7378,11 +7525,11 @@ var ChatPT = ({ size, color }) => /* @__PURE__ */ jsxs34(
|
|
|
7378
7525
|
);
|
|
7379
7526
|
|
|
7380
7527
|
// src/assets/icons/subjects/HeadCircuit.tsx
|
|
7381
|
-
import { jsx as
|
|
7528
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
7382
7529
|
var HeadCircuit = ({
|
|
7383
7530
|
size,
|
|
7384
7531
|
color
|
|
7385
|
-
}) => /* @__PURE__ */
|
|
7532
|
+
}) => /* @__PURE__ */ jsx44(
|
|
7386
7533
|
"svg",
|
|
7387
7534
|
{
|
|
7388
7535
|
width: size,
|
|
@@ -7390,7 +7537,7 @@ var HeadCircuit = ({
|
|
|
7390
7537
|
viewBox: "0 0 32 32",
|
|
7391
7538
|
fill: "none",
|
|
7392
7539
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7393
|
-
children: /* @__PURE__ */
|
|
7540
|
+
children: /* @__PURE__ */ jsx44(
|
|
7394
7541
|
"path",
|
|
7395
7542
|
{
|
|
7396
7543
|
d: "M24.0625 21.4338C25.327 20.3715 26.3372 19.0392 27.0187 17.5348C27.7001 16.0304 28.0354 14.3924 28 12.7413C27.875 7.02751 23.2987 2.31626 17.595 2.01626C16.1233 1.93616 14.6506 2.15261 13.2642 2.65277C11.8778 3.15293 10.6061 3.92659 9.52453 4.92781C8.44297 5.92903 7.57365 7.13739 6.96819 8.48112C6.36272 9.82485 6.03347 11.2766 5.99997 12.75L3.19372 18.1475C3.18247 18.17 3.17122 18.1925 3.16122 18.215C2.96003 18.6839 2.94569 19.212 3.12114 19.6912C3.29659 20.1704 3.64855 20.5644 4.10497 20.7925L4.13622 20.8063L6.99997 22.1175V26C6.99997 26.5304 7.21068 27.0392 7.58576 27.4142C7.96083 27.7893 8.46954 28 8.99997 28H15C15.2652 28 15.5195 27.8947 15.7071 27.7071C15.8946 27.5196 16 27.2652 16 27C16 26.7348 15.8946 26.4804 15.7071 26.2929C15.5195 26.1054 15.2652 26 15 26H8.99997V21.4763C9.00011 21.2846 8.94517 21.0969 8.84168 20.9356C8.73818 20.7742 8.5905 20.646 8.41622 20.5663L4.99997 19L7.88372 13.4575C7.95889 13.3166 7.99878 13.1597 7.99997 13C7.99968 10.9604 8.69216 8.98124 9.96395 7.38674C11.2357 5.79224 13.0114 4.677 15 4.22376V6.17251C14.3328 6.4084 13.7704 6.87258 13.4123 7.48299C13.0543 8.0934 12.9235 8.81075 13.0432 9.50824C13.1628 10.2057 13.5252 10.8385 14.0663 11.2946C14.6074 11.7508 15.2923 12.0009 16 12.0009C16.7077 12.0009 17.3926 11.7508 17.9336 11.2946C18.4747 10.8385 18.8371 10.2057 18.9568 9.50824C19.0764 8.81075 18.9457 8.0934 18.5876 7.48299C18.2295 6.87258 17.6672 6.4084 17 6.17251V4.00001C17.1625 4.00001 17.325 4.00001 17.4875 4.01251C19.2608 4.11409 20.9649 4.73627 22.3864 5.80124C23.808 6.86621 24.8841 8.32669 25.48 10H23C22.8533 9.99995 22.7084 10.0322 22.5755 10.0944C22.4426 10.1566 22.3251 10.2473 22.2312 10.36L19.0425 14.1875C18.3774 13.9397 17.6462 13.9351 16.9781 14.1744C16.3099 14.4138 15.748 14.8817 15.3916 15.4954C15.0352 16.1092 14.9073 16.8292 15.0306 17.5281C15.1538 18.227 15.5203 18.8598 16.0652 19.3146C16.61 19.7694 17.2981 20.0168 18.0078 20.0132C18.7175 20.0095 19.4031 19.755 19.9432 19.2947C20.4834 18.8343 20.8433 18.1977 20.9594 17.4976C21.0754 16.7974 20.9402 16.0788 20.5775 15.4688L23.4687 12H25.9425C25.9725 12.26 25.9908 12.5225 25.9975 12.7875C26.0286 14.2198 25.7187 15.639 25.0931 16.9278C24.4676 18.2167 23.5445 19.3383 22.4 20.2C22.2589 20.3057 22.1484 20.4469 22.0794 20.6091C22.0105 20.7713 21.9857 20.9489 22.0075 21.1238L23.0075 29.1238C23.0379 29.3653 23.1554 29.5874 23.3379 29.7485C23.5203 29.9095 23.7553 29.9985 23.9987 29.9988C24.0405 29.9988 24.0822 29.9962 24.1237 29.9913C24.2541 29.975 24.3799 29.9333 24.4942 29.8684C24.6084 29.8035 24.7087 29.7168 24.7893 29.6131C24.87 29.5094 24.9295 29.3909 24.9643 29.2643C24.9992 29.1376 25.0087 29.0054 24.9925 28.875L24.0625 21.4338ZM16 10C15.8022 10 15.6088 9.94136 15.4444 9.83148C15.28 9.7216 15.1518 9.56542 15.0761 9.38269C15.0004 9.19997 14.9806 8.9989 15.0192 8.80492C15.0578 8.61094 15.153 8.43275 15.2929 8.2929C15.4327 8.15305 15.6109 8.05781 15.8049 8.01922C15.9989 7.98064 16.1999 8.00044 16.3827 8.07613C16.5654 8.15182 16.7216 8.27999 16.8314 8.44444C16.9413 8.60889 17 8.80223 17 9.00001C17 9.26523 16.8946 9.51958 16.7071 9.70712C16.5195 9.89465 16.2652 10 16 10ZM18 18C17.8022 18 17.6088 17.9414 17.4444 17.8315C17.28 17.7216 17.1518 17.5654 17.0761 17.3827C17.0004 17.2 16.9806 16.9989 17.0192 16.8049C17.0578 16.6109 17.153 16.4328 17.2929 16.2929C17.4327 16.153 17.6109 16.0578 17.8049 16.0192C17.9989 15.9806 18.1999 16.0004 18.3827 16.0761C18.5654 16.1518 18.7216 16.28 18.8314 16.4444C18.9413 16.6089 19 16.8022 19 17C19 17.2652 18.8946 17.5196 18.7071 17.7071C18.5195 17.8947 18.2652 18 18 18Z",
|
|
@@ -7401,11 +7548,11 @@ var HeadCircuit = ({
|
|
|
7401
7548
|
);
|
|
7402
7549
|
|
|
7403
7550
|
// src/assets/icons/subjects/Microscope.tsx
|
|
7404
|
-
import { jsx as
|
|
7551
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
7405
7552
|
var Microscope = ({
|
|
7406
7553
|
size,
|
|
7407
7554
|
color
|
|
7408
|
-
}) => /* @__PURE__ */
|
|
7555
|
+
}) => /* @__PURE__ */ jsx45(
|
|
7409
7556
|
"svg",
|
|
7410
7557
|
{
|
|
7411
7558
|
width: size,
|
|
@@ -7413,7 +7560,7 @@ var Microscope = ({
|
|
|
7413
7560
|
viewBox: "0 0 32 32",
|
|
7414
7561
|
fill: "none",
|
|
7415
7562
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7416
|
-
children: /* @__PURE__ */
|
|
7563
|
+
children: /* @__PURE__ */ jsx45(
|
|
7417
7564
|
"path",
|
|
7418
7565
|
{
|
|
7419
7566
|
d: "M28 26H25.4925C26.7637 24.4552 27.5898 22.5932 27.882 20.6142C28.1743 18.6351 27.9216 16.6138 27.1511 14.7676C26.3806 12.9213 25.1215 11.32 23.5092 10.1358C21.8968 8.95153 19.9922 8.22913 18 8.04625V4C18 3.46957 17.7893 2.96086 17.4142 2.58579C17.0391 2.21071 16.5304 2 16 2H10C9.46957 2 8.96086 2.21071 8.58579 2.58579C8.21071 2.96086 8 3.46957 8 4V17C8 17.5304 8.21071 18.0391 8.58579 18.4142C8.96086 18.7893 9.46957 19 10 19H16C16.5304 19 17.0391 18.7893 17.4142 18.4142C17.7893 18.0391 18 17.5304 18 17V10.0575C19.7643 10.2552 21.4306 10.9703 22.7895 12.1128C24.1483 13.2553 25.1389 14.7742 25.6366 16.4783C26.1343 18.1824 26.1169 19.9957 25.5866 21.69C25.0563 23.3842 24.0368 24.8838 22.6562 26H4C3.73478 26 3.48043 26.1054 3.29289 26.2929C3.10536 26.4804 3 26.7348 3 27C3 27.2652 3.10536 27.5196 3.29289 27.7071C3.48043 27.8946 3.73478 28 4 28H28C28.2652 28 28.5196 27.8946 28.7071 27.7071C28.8946 27.5196 29 27.2652 29 27C29 26.7348 28.8946 26.4804 28.7071 26.2929C28.5196 26.1054 28.2652 26 28 26ZM16 17H10V4H16V17ZM9 23C8.73478 23 8.48043 22.8946 8.29289 22.7071C8.10536 22.5196 8 22.2652 8 22C8 21.7348 8.10536 21.4804 8.29289 21.2929C8.48043 21.1054 8.73478 21 9 21H17C17.2652 21 17.5196 21.1054 17.7071 21.2929C17.8946 21.4804 18 21.7348 18 22C18 22.2652 17.8946 22.5196 17.7071 22.7071C17.5196 22.8946 17.2652 23 17 23H9Z",
|
|
@@ -7458,92 +7605,92 @@ import {
|
|
|
7458
7605
|
Person,
|
|
7459
7606
|
Scroll
|
|
7460
7607
|
} from "phosphor-react";
|
|
7461
|
-
import { jsx as
|
|
7608
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
7462
7609
|
var SubjectInfo = {
|
|
7463
7610
|
["F\xEDsica" /* FISICA */]: {
|
|
7464
|
-
icon: /* @__PURE__ */
|
|
7611
|
+
icon: /* @__PURE__ */ jsx46(Atom, { size: 17, color: "currentColor" }),
|
|
7465
7612
|
colorClass: "bg-subject-1",
|
|
7466
7613
|
name: "F\xEDsica" /* FISICA */
|
|
7467
7614
|
},
|
|
7468
7615
|
["Hist\xF3ria" /* HISTORIA */]: {
|
|
7469
|
-
icon: /* @__PURE__ */
|
|
7616
|
+
icon: /* @__PURE__ */ jsx46(Scroll, { size: 17, color: "currentColor" }),
|
|
7470
7617
|
colorClass: "bg-subject-2",
|
|
7471
7618
|
name: "Hist\xF3ria" /* HISTORIA */
|
|
7472
7619
|
},
|
|
7473
7620
|
["Literatura" /* LITERATURA */]: {
|
|
7474
|
-
icon: /* @__PURE__ */
|
|
7621
|
+
icon: /* @__PURE__ */ jsx46(BookOpenText, { size: 17, color: "currentColor" }),
|
|
7475
7622
|
colorClass: "bg-subject-3",
|
|
7476
7623
|
name: "Literatura" /* LITERATURA */
|
|
7477
7624
|
},
|
|
7478
7625
|
["Geografia" /* GEOGRAFIA */]: {
|
|
7479
|
-
icon: /* @__PURE__ */
|
|
7626
|
+
icon: /* @__PURE__ */ jsx46(GlobeHemisphereWest, { size: 17, color: "currentColor" }),
|
|
7480
7627
|
colorClass: "bg-subject-4",
|
|
7481
7628
|
name: "Geografia" /* GEOGRAFIA */
|
|
7482
7629
|
},
|
|
7483
7630
|
["Biologia" /* BIOLOGIA */]: {
|
|
7484
|
-
icon: /* @__PURE__ */
|
|
7631
|
+
icon: /* @__PURE__ */ jsx46(Microscope, { size: 17, color: "currentColor" }),
|
|
7485
7632
|
colorClass: "bg-subject-5",
|
|
7486
7633
|
name: "Biologia" /* BIOLOGIA */
|
|
7487
7634
|
},
|
|
7488
7635
|
["Portugu\xEAs" /* PORTUGUES */]: {
|
|
7489
|
-
icon: /* @__PURE__ */
|
|
7636
|
+
icon: /* @__PURE__ */ jsx46(ChatPT, { size: 17, color: "currentColor" }),
|
|
7490
7637
|
colorClass: "bg-subject-6",
|
|
7491
7638
|
name: "Portugu\xEAs" /* PORTUGUES */
|
|
7492
7639
|
},
|
|
7493
7640
|
["Qu\xEDmica" /* QUIMICA */]: {
|
|
7494
|
-
icon: /* @__PURE__ */
|
|
7641
|
+
icon: /* @__PURE__ */ jsx46(Flask, { size: 17, color: "currentColor" }),
|
|
7495
7642
|
colorClass: "bg-subject-7",
|
|
7496
7643
|
name: "Qu\xEDmica" /* QUIMICA */
|
|
7497
7644
|
},
|
|
7498
7645
|
["Artes" /* ARTES */]: {
|
|
7499
|
-
icon: /* @__PURE__ */
|
|
7646
|
+
icon: /* @__PURE__ */ jsx46(Palette, { size: 17, color: "currentColor" }),
|
|
7500
7647
|
colorClass: "bg-subject-8",
|
|
7501
7648
|
name: "Artes" /* ARTES */
|
|
7502
7649
|
},
|
|
7503
7650
|
["Matem\xE1tica" /* MATEMATICA */]: {
|
|
7504
|
-
icon: /* @__PURE__ */
|
|
7651
|
+
icon: /* @__PURE__ */ jsx46(MathOperations, { size: 17, color: "currentColor" }),
|
|
7505
7652
|
colorClass: "bg-subject-9",
|
|
7506
7653
|
name: "Matem\xE1tica" /* MATEMATICA */
|
|
7507
7654
|
},
|
|
7508
7655
|
["Filosofia" /* FILOSOFIA */]: {
|
|
7509
|
-
icon: /* @__PURE__ */
|
|
7656
|
+
icon: /* @__PURE__ */ jsx46(HeadCircuit, { size: 17, color: "currentColor" }),
|
|
7510
7657
|
colorClass: "bg-subject-10",
|
|
7511
7658
|
name: "Filosofia" /* FILOSOFIA */
|
|
7512
7659
|
},
|
|
7513
7660
|
["Espanhol" /* ESPANHOL */]: {
|
|
7514
|
-
icon: /* @__PURE__ */
|
|
7661
|
+
icon: /* @__PURE__ */ jsx46(ChatES, { size: 17, color: "currentColor" }),
|
|
7515
7662
|
colorClass: "bg-subject-11",
|
|
7516
7663
|
name: "Espanhol" /* ESPANHOL */
|
|
7517
7664
|
},
|
|
7518
7665
|
["Reda\xE7\xE3o" /* REDACAO */]: {
|
|
7519
|
-
icon: /* @__PURE__ */
|
|
7666
|
+
icon: /* @__PURE__ */ jsx46(ArticleNyTimes, { size: 17, color: "currentColor" }),
|
|
7520
7667
|
colorClass: "bg-subject-12",
|
|
7521
7668
|
name: "Reda\xE7\xE3o" /* REDACAO */
|
|
7522
7669
|
},
|
|
7523
7670
|
["Sociologia" /* SOCIOLOGIA */]: {
|
|
7524
|
-
icon: /* @__PURE__ */
|
|
7671
|
+
icon: /* @__PURE__ */ jsx46(Person, { size: 17, color: "currentColor" }),
|
|
7525
7672
|
colorClass: "bg-subject-13",
|
|
7526
7673
|
name: "Sociologia" /* SOCIOLOGIA */
|
|
7527
7674
|
},
|
|
7528
7675
|
["Ingl\xEAs" /* INGLES */]: {
|
|
7529
|
-
icon: /* @__PURE__ */
|
|
7676
|
+
icon: /* @__PURE__ */ jsx46(ChatEN, { size: 17, color: "currentColor" }),
|
|
7530
7677
|
colorClass: "bg-subject-14",
|
|
7531
7678
|
name: "Ingl\xEAs" /* INGLES */
|
|
7532
7679
|
},
|
|
7533
7680
|
["Ed. F\xEDsica" /* EDUCACAO_FISICA */]: {
|
|
7534
|
-
icon: /* @__PURE__ */
|
|
7681
|
+
icon: /* @__PURE__ */ jsx46(DribbbleLogo, { size: 17, color: "currentColor" }),
|
|
7535
7682
|
colorClass: "bg-subject-15",
|
|
7536
7683
|
name: "Ed. F\xEDsica" /* EDUCACAO_FISICA */
|
|
7537
7684
|
},
|
|
7538
7685
|
["Trilhas" /* TRILHAS */]: {
|
|
7539
|
-
icon: /* @__PURE__ */
|
|
7686
|
+
icon: /* @__PURE__ */ jsx46(BookBookmark, { size: 17, color: "currentColor" }),
|
|
7540
7687
|
colorClass: "bg-subject-16",
|
|
7541
7688
|
name: "Trilhas" /* TRILHAS */
|
|
7542
7689
|
}
|
|
7543
7690
|
};
|
|
7544
7691
|
var getSubjectInfo = (subject) => {
|
|
7545
7692
|
return SubjectInfo[subject] || {
|
|
7546
|
-
icon: /* @__PURE__ */
|
|
7693
|
+
icon: /* @__PURE__ */ jsx46(Book, { size: 17, color: "currentColor" }),
|
|
7547
7694
|
colorClass: "bg-subject-16",
|
|
7548
7695
|
name: subject
|
|
7549
7696
|
};
|
|
@@ -7675,7 +7822,7 @@ var createNotificationsHook = (apiClient) => {
|
|
|
7675
7822
|
};
|
|
7676
7823
|
|
|
7677
7824
|
// src/components/Filter/FilterModal.tsx
|
|
7678
|
-
import { jsx as
|
|
7825
|
+
import { jsx as jsx47, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7679
7826
|
var FilterModal = ({
|
|
7680
7827
|
isOpen,
|
|
7681
7828
|
onClose,
|
|
@@ -7703,20 +7850,20 @@ var FilterModal = ({
|
|
|
7703
7850
|
const handleClear = () => {
|
|
7704
7851
|
onClear();
|
|
7705
7852
|
};
|
|
7706
|
-
return /* @__PURE__ */
|
|
7853
|
+
return /* @__PURE__ */ jsx47(
|
|
7707
7854
|
Modal_default,
|
|
7708
7855
|
{
|
|
7709
7856
|
isOpen,
|
|
7710
7857
|
onClose,
|
|
7711
7858
|
title,
|
|
7712
7859
|
size,
|
|
7713
|
-
footer: /* @__PURE__ */
|
|
7714
|
-
/* @__PURE__ */
|
|
7715
|
-
/* @__PURE__ */
|
|
7860
|
+
footer: /* @__PURE__ */ jsxs36("div", { className: "flex gap-3 justify-end w-full", children: [
|
|
7861
|
+
/* @__PURE__ */ jsx47(Button_default, { variant: "outline", onClick: handleClear, children: clearLabel }),
|
|
7862
|
+
/* @__PURE__ */ jsx47(Button_default, { onClick: handleApply, children: applyLabel })
|
|
7716
7863
|
] }),
|
|
7717
|
-
children: /* @__PURE__ */
|
|
7718
|
-
/* @__PURE__ */
|
|
7719
|
-
config.key === "academic" && /* @__PURE__ */
|
|
7864
|
+
children: /* @__PURE__ */ jsx47("div", { className: "flex flex-col gap-6", children: filterConfigs.map((config, index) => /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-4", children: [
|
|
7865
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-2 text-text-400 text-sm font-medium uppercase", children: [
|
|
7866
|
+
config.key === "academic" && /* @__PURE__ */ jsxs36(
|
|
7720
7867
|
"svg",
|
|
7721
7868
|
{
|
|
7722
7869
|
width: "16",
|
|
@@ -7726,7 +7873,7 @@ var FilterModal = ({
|
|
|
7726
7873
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7727
7874
|
className: "text-text-400",
|
|
7728
7875
|
children: [
|
|
7729
|
-
/* @__PURE__ */
|
|
7876
|
+
/* @__PURE__ */ jsx47(
|
|
7730
7877
|
"path",
|
|
7731
7878
|
{
|
|
7732
7879
|
d: "M8 2L2 5.33333L8 8.66667L14 5.33333L8 2Z",
|
|
@@ -7736,7 +7883,7 @@ var FilterModal = ({
|
|
|
7736
7883
|
strokeLinejoin: "round"
|
|
7737
7884
|
}
|
|
7738
7885
|
),
|
|
7739
|
-
/* @__PURE__ */
|
|
7886
|
+
/* @__PURE__ */ jsx47(
|
|
7740
7887
|
"path",
|
|
7741
7888
|
{
|
|
7742
7889
|
d: "M2 10.6667L8 14L14 10.6667",
|
|
@@ -7746,7 +7893,7 @@ var FilterModal = ({
|
|
|
7746
7893
|
strokeLinejoin: "round"
|
|
7747
7894
|
}
|
|
7748
7895
|
),
|
|
7749
|
-
/* @__PURE__ */
|
|
7896
|
+
/* @__PURE__ */ jsx47(
|
|
7750
7897
|
"path",
|
|
7751
7898
|
{
|
|
7752
7899
|
d: "M2 8L8 11.3333L14 8",
|
|
@@ -7759,7 +7906,7 @@ var FilterModal = ({
|
|
|
7759
7906
|
]
|
|
7760
7907
|
}
|
|
7761
7908
|
),
|
|
7762
|
-
config.key === "content" && /* @__PURE__ */
|
|
7909
|
+
config.key === "content" && /* @__PURE__ */ jsxs36(
|
|
7763
7910
|
"svg",
|
|
7764
7911
|
{
|
|
7765
7912
|
width: "16",
|
|
@@ -7769,7 +7916,7 @@ var FilterModal = ({
|
|
|
7769
7916
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7770
7917
|
className: "text-text-400",
|
|
7771
7918
|
children: [
|
|
7772
|
-
/* @__PURE__ */
|
|
7919
|
+
/* @__PURE__ */ jsx47(
|
|
7773
7920
|
"path",
|
|
7774
7921
|
{
|
|
7775
7922
|
d: "M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z",
|
|
@@ -7779,7 +7926,7 @@ var FilterModal = ({
|
|
|
7779
7926
|
strokeLinejoin: "round"
|
|
7780
7927
|
}
|
|
7781
7928
|
),
|
|
7782
|
-
/* @__PURE__ */
|
|
7929
|
+
/* @__PURE__ */ jsx47(
|
|
7783
7930
|
"path",
|
|
7784
7931
|
{
|
|
7785
7932
|
d: "M2 6H14",
|
|
@@ -7789,7 +7936,7 @@ var FilterModal = ({
|
|
|
7789
7936
|
strokeLinejoin: "round"
|
|
7790
7937
|
}
|
|
7791
7938
|
),
|
|
7792
|
-
/* @__PURE__ */
|
|
7939
|
+
/* @__PURE__ */ jsx47(
|
|
7793
7940
|
"path",
|
|
7794
7941
|
{
|
|
7795
7942
|
d: "M6 2V14",
|
|
@@ -7802,9 +7949,9 @@ var FilterModal = ({
|
|
|
7802
7949
|
]
|
|
7803
7950
|
}
|
|
7804
7951
|
),
|
|
7805
|
-
/* @__PURE__ */
|
|
7952
|
+
/* @__PURE__ */ jsx47("span", { children: config.label })
|
|
7806
7953
|
] }),
|
|
7807
|
-
/* @__PURE__ */
|
|
7954
|
+
/* @__PURE__ */ jsx47(
|
|
7808
7955
|
CheckboxGroup,
|
|
7809
7956
|
{
|
|
7810
7957
|
categories: config.categories,
|
|
@@ -7916,13 +8063,13 @@ import {
|
|
|
7916
8063
|
useEffect as useEffect19,
|
|
7917
8064
|
useRef as useRef8,
|
|
7918
8065
|
forwardRef as forwardRef15,
|
|
7919
|
-
isValidElement as
|
|
7920
|
-
Children as
|
|
7921
|
-
cloneElement as
|
|
8066
|
+
isValidElement as isValidElement5,
|
|
8067
|
+
Children as Children5,
|
|
8068
|
+
cloneElement as cloneElement5,
|
|
7922
8069
|
useId as useId8
|
|
7923
8070
|
} from "react";
|
|
7924
8071
|
import { CaretDown as CaretDown2, Check as Check4, WarningCircle as WarningCircle5 } from "phosphor-react";
|
|
7925
|
-
import { Fragment as Fragment7, jsx as
|
|
8072
|
+
import { Fragment as Fragment7, jsx as jsx48, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7926
8073
|
var VARIANT_CLASSES4 = {
|
|
7927
8074
|
outlined: "border-2 rounded-lg focus:border-primary-950",
|
|
7928
8075
|
underlined: "border-b-2 focus:border-primary-950",
|
|
@@ -7980,13 +8127,13 @@ function getLabelAsNode(children) {
|
|
|
7980
8127
|
if (typeof children === "string" || typeof children === "number") {
|
|
7981
8128
|
return children;
|
|
7982
8129
|
}
|
|
7983
|
-
const flattened =
|
|
8130
|
+
const flattened = Children5.toArray(children);
|
|
7984
8131
|
if (flattened.length === 1) return flattened[0];
|
|
7985
|
-
return /* @__PURE__ */
|
|
8132
|
+
return /* @__PURE__ */ jsx48(Fragment7, { children: flattened });
|
|
7986
8133
|
}
|
|
7987
8134
|
var injectStore4 = (children, store, size, selectId) => {
|
|
7988
|
-
return
|
|
7989
|
-
if (
|
|
8135
|
+
return Children5.map(children, (child) => {
|
|
8136
|
+
if (isValidElement5(child)) {
|
|
7990
8137
|
const typedChild = child;
|
|
7991
8138
|
const newProps = {
|
|
7992
8139
|
store
|
|
@@ -8003,7 +8150,7 @@ var injectStore4 = (children, store, size, selectId) => {
|
|
|
8003
8150
|
selectId
|
|
8004
8151
|
);
|
|
8005
8152
|
}
|
|
8006
|
-
return
|
|
8153
|
+
return cloneElement5(typedChild, newProps);
|
|
8007
8154
|
}
|
|
8008
8155
|
return child;
|
|
8009
8156
|
});
|
|
@@ -8030,8 +8177,8 @@ var Select = ({
|
|
|
8030
8177
|
const findLabelForValue = (children2, targetValue) => {
|
|
8031
8178
|
let found = null;
|
|
8032
8179
|
const search = (nodes) => {
|
|
8033
|
-
|
|
8034
|
-
if (!
|
|
8180
|
+
Children5.forEach(nodes, (child) => {
|
|
8181
|
+
if (!isValidElement5(child)) return;
|
|
8035
8182
|
const typedChild = child;
|
|
8036
8183
|
if (typedChild.type === SelectItem && typedChild.props.value === targetValue) {
|
|
8037
8184
|
if (typeof typedChild.props.children === "string")
|
|
@@ -8093,8 +8240,8 @@ var Select = ({
|
|
|
8093
8240
|
}
|
|
8094
8241
|
}, [propValue]);
|
|
8095
8242
|
const sizeClasses = SIZE_CLASSES12[size];
|
|
8096
|
-
return /* @__PURE__ */
|
|
8097
|
-
label && /* @__PURE__ */
|
|
8243
|
+
return /* @__PURE__ */ jsxs37("div", { className: cn("w-full", className), children: [
|
|
8244
|
+
label && /* @__PURE__ */ jsx48(
|
|
8098
8245
|
"label",
|
|
8099
8246
|
{
|
|
8100
8247
|
htmlFor: selectId,
|
|
@@ -8102,11 +8249,11 @@ var Select = ({
|
|
|
8102
8249
|
children: label
|
|
8103
8250
|
}
|
|
8104
8251
|
),
|
|
8105
|
-
/* @__PURE__ */
|
|
8106
|
-
(helperText || errorMessage) && /* @__PURE__ */
|
|
8107
|
-
helperText && /* @__PURE__ */
|
|
8108
|
-
errorMessage && /* @__PURE__ */
|
|
8109
|
-
/* @__PURE__ */
|
|
8252
|
+
/* @__PURE__ */ jsx48("div", { className: cn("relative w-full"), ref: selectRef, children: injectStore4(children, store, size, selectId) }),
|
|
8253
|
+
(helperText || errorMessage) && /* @__PURE__ */ jsxs37("div", { className: "mt-1.5 gap-1.5", children: [
|
|
8254
|
+
helperText && /* @__PURE__ */ jsx48("p", { className: "text-sm text-text-500", children: helperText }),
|
|
8255
|
+
errorMessage && /* @__PURE__ */ jsxs37("p", { className: "flex gap-1 items-center text-sm text-indicator-error", children: [
|
|
8256
|
+
/* @__PURE__ */ jsx48(WarningCircle5, { size: 16 }),
|
|
8110
8257
|
" ",
|
|
8111
8258
|
errorMessage
|
|
8112
8259
|
] })
|
|
@@ -8120,7 +8267,7 @@ var SelectValue = ({
|
|
|
8120
8267
|
const store = useSelectStore(externalStore);
|
|
8121
8268
|
const selectedLabel = useStore4(store, (s) => s.selectedLabel);
|
|
8122
8269
|
const value = useStore4(store, (s) => s.value);
|
|
8123
|
-
return /* @__PURE__ */
|
|
8270
|
+
return /* @__PURE__ */ jsx48("span", { className: "text-inherit flex gap-2 items-center", children: selectedLabel || placeholder || value });
|
|
8124
8271
|
};
|
|
8125
8272
|
var SelectTrigger = forwardRef15(
|
|
8126
8273
|
({
|
|
@@ -8139,7 +8286,7 @@ var SelectTrigger = forwardRef15(
|
|
|
8139
8286
|
const variantClasses = VARIANT_CLASSES4[variant];
|
|
8140
8287
|
const heightClasses = HEIGHT_CLASSES[size];
|
|
8141
8288
|
const paddingClasses = PADDING_CLASSES[size];
|
|
8142
|
-
return /* @__PURE__ */
|
|
8289
|
+
return /* @__PURE__ */ jsxs37(
|
|
8143
8290
|
"button",
|
|
8144
8291
|
{
|
|
8145
8292
|
ref,
|
|
@@ -8161,7 +8308,7 @@ var SelectTrigger = forwardRef15(
|
|
|
8161
8308
|
...props,
|
|
8162
8309
|
children: [
|
|
8163
8310
|
props.children,
|
|
8164
|
-
/* @__PURE__ */
|
|
8311
|
+
/* @__PURE__ */ jsx48(
|
|
8165
8312
|
CaretDown2,
|
|
8166
8313
|
{
|
|
8167
8314
|
className: cn(
|
|
@@ -8189,7 +8336,7 @@ var SelectContent = forwardRef15(
|
|
|
8189
8336
|
const open = useStore4(store, (s) => s.open);
|
|
8190
8337
|
if (!open) return null;
|
|
8191
8338
|
const getPositionClasses = () => `w-full min-w-full absolute ${SIDE_CLASSES2[side]} ${ALIGN_CLASSES2[align]}`;
|
|
8192
|
-
return /* @__PURE__ */
|
|
8339
|
+
return /* @__PURE__ */ jsx48(
|
|
8193
8340
|
"div",
|
|
8194
8341
|
{
|
|
8195
8342
|
role: "menu",
|
|
@@ -8233,7 +8380,7 @@ var SelectItem = forwardRef15(
|
|
|
8233
8380
|
}
|
|
8234
8381
|
props.onClick?.(e);
|
|
8235
8382
|
};
|
|
8236
|
-
return /* @__PURE__ */
|
|
8383
|
+
return /* @__PURE__ */ jsxs37(
|
|
8237
8384
|
"div",
|
|
8238
8385
|
{
|
|
8239
8386
|
role: "menuitem",
|
|
@@ -8253,7 +8400,7 @@ var SelectItem = forwardRef15(
|
|
|
8253
8400
|
tabIndex: disabled ? -1 : 0,
|
|
8254
8401
|
...props,
|
|
8255
8402
|
children: [
|
|
8256
|
-
/* @__PURE__ */
|
|
8403
|
+
/* @__PURE__ */ jsx48("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: selectedValue === value && /* @__PURE__ */ jsx48(Check4, { className: "" }) }),
|
|
8257
8404
|
children
|
|
8258
8405
|
]
|
|
8259
8406
|
}
|
|
@@ -8269,13 +8416,13 @@ import {
|
|
|
8269
8416
|
useEffect as useEffect20,
|
|
8270
8417
|
useRef as useRef9,
|
|
8271
8418
|
forwardRef as forwardRef16,
|
|
8272
|
-
isValidElement as
|
|
8273
|
-
Children as
|
|
8274
|
-
cloneElement as
|
|
8419
|
+
isValidElement as isValidElement6,
|
|
8420
|
+
Children as Children6,
|
|
8421
|
+
cloneElement as cloneElement6,
|
|
8275
8422
|
useState as useState17
|
|
8276
8423
|
} from "react";
|
|
8277
8424
|
import { CaretLeft as CaretLeft3, CaretRight as CaretRight4 } from "phosphor-react";
|
|
8278
|
-
import { jsx as
|
|
8425
|
+
import { jsx as jsx49, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
8279
8426
|
var createMenuStore = (onValueChange) => create9((set) => ({
|
|
8280
8427
|
value: "",
|
|
8281
8428
|
setValue: (value) => {
|
|
@@ -8313,7 +8460,7 @@ var Menu = forwardRef16(
|
|
|
8313
8460
|
}, [defaultValue, propValue, setValue]);
|
|
8314
8461
|
const baseClasses = variant === "menu-overflow" ? "w-fit py-2 flex flex-row items-center justify-center" : "w-full py-2 flex flex-row items-center justify-center";
|
|
8315
8462
|
const variantClasses = VARIANT_CLASSES5[variant];
|
|
8316
|
-
return /* @__PURE__ */
|
|
8463
|
+
return /* @__PURE__ */ jsx49(
|
|
8317
8464
|
"div",
|
|
8318
8465
|
{
|
|
8319
8466
|
ref,
|
|
@@ -8333,7 +8480,7 @@ var MenuContent = forwardRef16(
|
|
|
8333
8480
|
({ className, children, variant = "menu", ...props }, ref) => {
|
|
8334
8481
|
const baseClasses = "w-full flex flex-row items-center gap-2";
|
|
8335
8482
|
const variantClasses = variant === "menu2" || variant === "menu-overflow" ? "overflow-x-auto scroll-smooth" : "";
|
|
8336
|
-
return /* @__PURE__ */
|
|
8483
|
+
return /* @__PURE__ */ jsx49(
|
|
8337
8484
|
"ul",
|
|
8338
8485
|
{
|
|
8339
8486
|
ref,
|
|
@@ -8385,7 +8532,7 @@ var MenuItem = forwardRef16(
|
|
|
8385
8532
|
...props
|
|
8386
8533
|
};
|
|
8387
8534
|
const variants = {
|
|
8388
|
-
menu: /* @__PURE__ */
|
|
8535
|
+
menu: /* @__PURE__ */ jsx49(
|
|
8389
8536
|
"li",
|
|
8390
8537
|
{
|
|
8391
8538
|
"data-variant": "menu",
|
|
@@ -8400,7 +8547,7 @@ var MenuItem = forwardRef16(
|
|
|
8400
8547
|
children
|
|
8401
8548
|
}
|
|
8402
8549
|
),
|
|
8403
|
-
menu2: /* @__PURE__ */
|
|
8550
|
+
menu2: /* @__PURE__ */ jsxs38(
|
|
8404
8551
|
"li",
|
|
8405
8552
|
{
|
|
8406
8553
|
"data-variant": "menu2",
|
|
@@ -8411,7 +8558,7 @@ var MenuItem = forwardRef16(
|
|
|
8411
8558
|
`,
|
|
8412
8559
|
...commonProps,
|
|
8413
8560
|
children: [
|
|
8414
|
-
/* @__PURE__ */
|
|
8561
|
+
/* @__PURE__ */ jsx49(
|
|
8415
8562
|
"span",
|
|
8416
8563
|
{
|
|
8417
8564
|
className: cn(
|
|
@@ -8421,11 +8568,11 @@ var MenuItem = forwardRef16(
|
|
|
8421
8568
|
children
|
|
8422
8569
|
}
|
|
8423
8570
|
),
|
|
8424
|
-
selectedValue === value && /* @__PURE__ */
|
|
8571
|
+
selectedValue === value && /* @__PURE__ */ jsx49("div", { className: "h-1 w-full bg-primary-950 rounded-lg" })
|
|
8425
8572
|
]
|
|
8426
8573
|
}
|
|
8427
8574
|
),
|
|
8428
|
-
"menu-overflow": /* @__PURE__ */
|
|
8575
|
+
"menu-overflow": /* @__PURE__ */ jsxs38(
|
|
8429
8576
|
"li",
|
|
8430
8577
|
{
|
|
8431
8578
|
"data-variant": "menu-overflow",
|
|
@@ -8436,7 +8583,7 @@ var MenuItem = forwardRef16(
|
|
|
8436
8583
|
`,
|
|
8437
8584
|
...commonProps,
|
|
8438
8585
|
children: [
|
|
8439
|
-
/* @__PURE__ */
|
|
8586
|
+
/* @__PURE__ */ jsx49(
|
|
8440
8587
|
"span",
|
|
8441
8588
|
{
|
|
8442
8589
|
className: cn(
|
|
@@ -8446,11 +8593,11 @@ var MenuItem = forwardRef16(
|
|
|
8446
8593
|
children
|
|
8447
8594
|
}
|
|
8448
8595
|
),
|
|
8449
|
-
selectedValue === value && /* @__PURE__ */
|
|
8596
|
+
selectedValue === value && /* @__PURE__ */ jsx49("div", { className: "h-1 w-full bg-primary-950 rounded-lg" })
|
|
8450
8597
|
]
|
|
8451
8598
|
}
|
|
8452
8599
|
),
|
|
8453
|
-
breadcrumb: /* @__PURE__ */
|
|
8600
|
+
breadcrumb: /* @__PURE__ */ jsxs38(
|
|
8454
8601
|
"li",
|
|
8455
8602
|
{
|
|
8456
8603
|
"data-variant": "breadcrumb",
|
|
@@ -8462,7 +8609,7 @@ var MenuItem = forwardRef16(
|
|
|
8462
8609
|
`,
|
|
8463
8610
|
...commonProps,
|
|
8464
8611
|
children: [
|
|
8465
|
-
/* @__PURE__ */
|
|
8612
|
+
/* @__PURE__ */ jsx49(
|
|
8466
8613
|
"span",
|
|
8467
8614
|
{
|
|
8468
8615
|
className: cn(
|
|
@@ -8472,7 +8619,7 @@ var MenuItem = forwardRef16(
|
|
|
8472
8619
|
children
|
|
8473
8620
|
}
|
|
8474
8621
|
),
|
|
8475
|
-
separator && /* @__PURE__ */
|
|
8622
|
+
separator && /* @__PURE__ */ jsx49(
|
|
8476
8623
|
CaretRight4,
|
|
8477
8624
|
{
|
|
8478
8625
|
size: 16,
|
|
@@ -8527,25 +8674,25 @@ var MenuOverflow = ({
|
|
|
8527
8674
|
window.removeEventListener("resize", checkScroll);
|
|
8528
8675
|
};
|
|
8529
8676
|
}, []);
|
|
8530
|
-
return /* @__PURE__ */
|
|
8677
|
+
return /* @__PURE__ */ jsxs38(
|
|
8531
8678
|
"div",
|
|
8532
8679
|
{
|
|
8533
8680
|
"data-testid": "menu-overflow-wrapper",
|
|
8534
8681
|
className: cn("relative w-full overflow-hidden", className),
|
|
8535
8682
|
children: [
|
|
8536
|
-
showLeftArrow && /* @__PURE__ */
|
|
8683
|
+
showLeftArrow && /* @__PURE__ */ jsxs38(
|
|
8537
8684
|
"button",
|
|
8538
8685
|
{
|
|
8539
8686
|
onClick: () => internalScroll(containerRef.current, "left"),
|
|
8540
8687
|
className: "absolute left-0 top-1/2 -translate-y-1/2 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-md cursor-pointer",
|
|
8541
8688
|
"data-testid": "scroll-left-button",
|
|
8542
8689
|
children: [
|
|
8543
|
-
/* @__PURE__ */
|
|
8544
|
-
/* @__PURE__ */
|
|
8690
|
+
/* @__PURE__ */ jsx49(CaretLeft3, { size: 16 }),
|
|
8691
|
+
/* @__PURE__ */ jsx49("span", { className: "sr-only", children: "Scroll left" })
|
|
8545
8692
|
]
|
|
8546
8693
|
}
|
|
8547
8694
|
),
|
|
8548
|
-
/* @__PURE__ */
|
|
8695
|
+
/* @__PURE__ */ jsx49(
|
|
8549
8696
|
Menu,
|
|
8550
8697
|
{
|
|
8551
8698
|
defaultValue,
|
|
@@ -8553,18 +8700,18 @@ var MenuOverflow = ({
|
|
|
8553
8700
|
value,
|
|
8554
8701
|
variant: "menu2",
|
|
8555
8702
|
...props,
|
|
8556
|
-
children: /* @__PURE__ */
|
|
8703
|
+
children: /* @__PURE__ */ jsx49(MenuContent, { ref: containerRef, variant: "menu2", children })
|
|
8557
8704
|
}
|
|
8558
8705
|
),
|
|
8559
|
-
showRightArrow && /* @__PURE__ */
|
|
8706
|
+
showRightArrow && /* @__PURE__ */ jsxs38(
|
|
8560
8707
|
"button",
|
|
8561
8708
|
{
|
|
8562
8709
|
onClick: () => internalScroll(containerRef.current, "right"),
|
|
8563
8710
|
className: "absolute right-0 top-1/2 -translate-y-1/2 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-md cursor-pointer",
|
|
8564
8711
|
"data-testid": "scroll-right-button",
|
|
8565
8712
|
children: [
|
|
8566
|
-
/* @__PURE__ */
|
|
8567
|
-
/* @__PURE__ */
|
|
8713
|
+
/* @__PURE__ */ jsx49(CaretRight4, { size: 16 }),
|
|
8714
|
+
/* @__PURE__ */ jsx49("span", { className: "sr-only", children: "Scroll right" })
|
|
8568
8715
|
]
|
|
8569
8716
|
}
|
|
8570
8717
|
)
|
|
@@ -8572,11 +8719,11 @@ var MenuOverflow = ({
|
|
|
8572
8719
|
}
|
|
8573
8720
|
);
|
|
8574
8721
|
};
|
|
8575
|
-
var injectStore5 = (children, store) =>
|
|
8576
|
-
if (!
|
|
8722
|
+
var injectStore5 = (children, store) => Children6.map(children, (child) => {
|
|
8723
|
+
if (!isValidElement6(child)) return child;
|
|
8577
8724
|
const typedChild = child;
|
|
8578
8725
|
const shouldInject = typedChild.type === MenuItem;
|
|
8579
|
-
return
|
|
8726
|
+
return cloneElement6(typedChild, {
|
|
8580
8727
|
...shouldInject ? { store } : {},
|
|
8581
8728
|
...typedChild.props.children ? { children: injectStore5(typedChild.props.children, store) } : {}
|
|
8582
8729
|
});
|
|
@@ -8605,9 +8752,9 @@ import {
|
|
|
8605
8752
|
} from "phosphor-react";
|
|
8606
8753
|
|
|
8607
8754
|
// src/components/IconRender/IconRender.tsx
|
|
8608
|
-
import { cloneElement as
|
|
8755
|
+
import { cloneElement as cloneElement7 } from "react";
|
|
8609
8756
|
import * as PhosphorIcons from "phosphor-react";
|
|
8610
|
-
import { jsx as
|
|
8757
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
8611
8758
|
var IconRender = ({
|
|
8612
8759
|
iconName,
|
|
8613
8760
|
color = "#000000",
|
|
@@ -8617,18 +8764,18 @@ var IconRender = ({
|
|
|
8617
8764
|
if (typeof iconName === "string") {
|
|
8618
8765
|
switch (iconName) {
|
|
8619
8766
|
case "Chat_PT":
|
|
8620
|
-
return /* @__PURE__ */
|
|
8767
|
+
return /* @__PURE__ */ jsx50(ChatPT, { size, color });
|
|
8621
8768
|
case "Chat_EN":
|
|
8622
|
-
return /* @__PURE__ */
|
|
8769
|
+
return /* @__PURE__ */ jsx50(ChatEN, { size, color });
|
|
8623
8770
|
case "Chat_ES":
|
|
8624
|
-
return /* @__PURE__ */
|
|
8771
|
+
return /* @__PURE__ */ jsx50(ChatES, { size, color });
|
|
8625
8772
|
default: {
|
|
8626
8773
|
const IconComponent = PhosphorIcons[iconName] || PhosphorIcons.Question;
|
|
8627
|
-
return /* @__PURE__ */
|
|
8774
|
+
return /* @__PURE__ */ jsx50(IconComponent, { size, color, weight });
|
|
8628
8775
|
}
|
|
8629
8776
|
}
|
|
8630
8777
|
} else {
|
|
8631
|
-
return
|
|
8778
|
+
return cloneElement7(iconName, {
|
|
8632
8779
|
size,
|
|
8633
8780
|
color: "currentColor"
|
|
8634
8781
|
});
|
|
@@ -8637,7 +8784,7 @@ var IconRender = ({
|
|
|
8637
8784
|
var IconRender_default = IconRender;
|
|
8638
8785
|
|
|
8639
8786
|
// src/components/Card/Card.tsx
|
|
8640
|
-
import { Fragment as Fragment9, jsx as
|
|
8787
|
+
import { Fragment as Fragment9, jsx as jsx51, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
8641
8788
|
var CARD_BASE_CLASSES = {
|
|
8642
8789
|
default: "w-full bg-background border border-border-50 rounded-xl",
|
|
8643
8790
|
compact: "w-full bg-background border border-border-50 rounded-lg",
|
|
@@ -8679,7 +8826,7 @@ var CardBase = forwardRef17(
|
|
|
8679
8826
|
const minHeightClasses = CARD_MIN_HEIGHT_CLASSES[minHeight];
|
|
8680
8827
|
const layoutClasses = CARD_LAYOUT_CLASSES[layout];
|
|
8681
8828
|
const cursorClasses = CARD_CURSOR_CLASSES[cursor];
|
|
8682
|
-
return /* @__PURE__ */
|
|
8829
|
+
return /* @__PURE__ */ jsx51(
|
|
8683
8830
|
"div",
|
|
8684
8831
|
{
|
|
8685
8832
|
ref,
|
|
@@ -8737,7 +8884,7 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8737
8884
|
const actionIconClasses = ACTION_ICON_CLASSES[action];
|
|
8738
8885
|
const actionSubTitleClasses = ACTION_SUBTITLE_CLASSES[action];
|
|
8739
8886
|
const actionHeaderClasses = ACTION_HEADER_CLASSES[action];
|
|
8740
|
-
return /* @__PURE__ */
|
|
8887
|
+
return /* @__PURE__ */ jsxs39(
|
|
8741
8888
|
"div",
|
|
8742
8889
|
{
|
|
8743
8890
|
ref,
|
|
@@ -8747,7 +8894,7 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8747
8894
|
),
|
|
8748
8895
|
...props,
|
|
8749
8896
|
children: [
|
|
8750
|
-
/* @__PURE__ */
|
|
8897
|
+
/* @__PURE__ */ jsxs39(
|
|
8751
8898
|
"div",
|
|
8752
8899
|
{
|
|
8753
8900
|
className: cn(
|
|
@@ -8756,7 +8903,7 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8756
8903
|
extended ? "rounded-t-xl" : "rounded-xl"
|
|
8757
8904
|
),
|
|
8758
8905
|
children: [
|
|
8759
|
-
/* @__PURE__ */
|
|
8906
|
+
/* @__PURE__ */ jsx51(
|
|
8760
8907
|
"span",
|
|
8761
8908
|
{
|
|
8762
8909
|
className: cn(
|
|
@@ -8766,7 +8913,7 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8766
8913
|
children: icon
|
|
8767
8914
|
}
|
|
8768
8915
|
),
|
|
8769
|
-
/* @__PURE__ */
|
|
8916
|
+
/* @__PURE__ */ jsx51(
|
|
8770
8917
|
Text_default,
|
|
8771
8918
|
{
|
|
8772
8919
|
size: "2xs",
|
|
@@ -8775,7 +8922,7 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8775
8922
|
children: title
|
|
8776
8923
|
}
|
|
8777
8924
|
),
|
|
8778
|
-
/* @__PURE__ */
|
|
8925
|
+
/* @__PURE__ */ jsx51(
|
|
8779
8926
|
"p",
|
|
8780
8927
|
{
|
|
8781
8928
|
className: cn("text-lg font-bold truncate", actionSubTitleClasses),
|
|
@@ -8785,8 +8932,8 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8785
8932
|
]
|
|
8786
8933
|
}
|
|
8787
8934
|
),
|
|
8788
|
-
extended && /* @__PURE__ */
|
|
8789
|
-
/* @__PURE__ */
|
|
8935
|
+
extended && /* @__PURE__ */ jsxs39("div", { className: "flex flex-col items-center gap-2.5 pb-9.5 pt-2.5", children: [
|
|
8936
|
+
/* @__PURE__ */ jsx51(
|
|
8790
8937
|
"p",
|
|
8791
8938
|
{
|
|
8792
8939
|
className: cn(
|
|
@@ -8796,7 +8943,7 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8796
8943
|
children: header
|
|
8797
8944
|
}
|
|
8798
8945
|
),
|
|
8799
|
-
/* @__PURE__ */
|
|
8946
|
+
/* @__PURE__ */ jsx51(Badge_default, { size: "large", action: "info", children: description })
|
|
8800
8947
|
] })
|
|
8801
8948
|
]
|
|
8802
8949
|
}
|
|
@@ -8815,7 +8962,7 @@ var CardQuestions = forwardRef17(
|
|
|
8815
8962
|
const isDone = state === "done";
|
|
8816
8963
|
const stateLabel = isDone ? "Realizado" : "N\xE3o Realizado";
|
|
8817
8964
|
const buttonLabel = isDone ? "Ver Resultado" : "Responder";
|
|
8818
|
-
return /* @__PURE__ */
|
|
8965
|
+
return /* @__PURE__ */ jsxs39(
|
|
8819
8966
|
CardBase,
|
|
8820
8967
|
{
|
|
8821
8968
|
ref,
|
|
@@ -8825,9 +8972,9 @@ var CardQuestions = forwardRef17(
|
|
|
8825
8972
|
className: cn("justify-between gap-4", className),
|
|
8826
8973
|
...props,
|
|
8827
8974
|
children: [
|
|
8828
|
-
/* @__PURE__ */
|
|
8829
|
-
/* @__PURE__ */
|
|
8830
|
-
/* @__PURE__ */
|
|
8975
|
+
/* @__PURE__ */ jsxs39("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
8976
|
+
/* @__PURE__ */ jsx51("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
|
|
8977
|
+
/* @__PURE__ */ jsx51("div", { className: "flex flex-row gap-6 items-center", children: /* @__PURE__ */ jsx51(
|
|
8831
8978
|
Badge_default,
|
|
8832
8979
|
{
|
|
8833
8980
|
size: "medium",
|
|
@@ -8837,7 +8984,7 @@ var CardQuestions = forwardRef17(
|
|
|
8837
8984
|
}
|
|
8838
8985
|
) })
|
|
8839
8986
|
] }),
|
|
8840
|
-
/* @__PURE__ */
|
|
8987
|
+
/* @__PURE__ */ jsx51("span", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx51(
|
|
8841
8988
|
Button_default,
|
|
8842
8989
|
{
|
|
8843
8990
|
size: "extra-small",
|
|
@@ -8868,19 +9015,19 @@ var CardProgress = forwardRef17(
|
|
|
8868
9015
|
}, ref) => {
|
|
8869
9016
|
const isHorizontal = direction === "horizontal";
|
|
8870
9017
|
const contentComponent = {
|
|
8871
|
-
horizontal: /* @__PURE__ */
|
|
8872
|
-
showDates && /* @__PURE__ */
|
|
8873
|
-
initialDate && /* @__PURE__ */
|
|
8874
|
-
/* @__PURE__ */
|
|
8875
|
-
/* @__PURE__ */
|
|
9018
|
+
horizontal: /* @__PURE__ */ jsxs39(Fragment9, { children: [
|
|
9019
|
+
showDates && /* @__PURE__ */ jsxs39("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
9020
|
+
initialDate && /* @__PURE__ */ jsxs39("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
9021
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-800 font-semibold", children: "In\xEDcio" }),
|
|
9022
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-600", children: initialDate })
|
|
8876
9023
|
] }),
|
|
8877
|
-
endDate && /* @__PURE__ */
|
|
8878
|
-
/* @__PURE__ */
|
|
8879
|
-
/* @__PURE__ */
|
|
9024
|
+
endDate && /* @__PURE__ */ jsxs39("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
9025
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-800 font-semibold", children: "Fim" }),
|
|
9026
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-600", children: endDate })
|
|
8880
9027
|
] })
|
|
8881
9028
|
] }),
|
|
8882
|
-
/* @__PURE__ */
|
|
8883
|
-
/* @__PURE__ */
|
|
9029
|
+
/* @__PURE__ */ jsxs39("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
9030
|
+
/* @__PURE__ */ jsx51(
|
|
8884
9031
|
ProgressBar_default,
|
|
8885
9032
|
{
|
|
8886
9033
|
size: "small",
|
|
@@ -8889,7 +9036,7 @@ var CardProgress = forwardRef17(
|
|
|
8889
9036
|
"data-testid": "progress-bar"
|
|
8890
9037
|
}
|
|
8891
9038
|
),
|
|
8892
|
-
/* @__PURE__ */
|
|
9039
|
+
/* @__PURE__ */ jsxs39(
|
|
8893
9040
|
Text_default,
|
|
8894
9041
|
{
|
|
8895
9042
|
size: "xs",
|
|
@@ -8905,9 +9052,9 @@ var CardProgress = forwardRef17(
|
|
|
8905
9052
|
)
|
|
8906
9053
|
] })
|
|
8907
9054
|
] }),
|
|
8908
|
-
vertical: /* @__PURE__ */
|
|
9055
|
+
vertical: /* @__PURE__ */ jsx51("p", { className: "text-sm text-text-800", children: subhead })
|
|
8909
9056
|
};
|
|
8910
|
-
return /* @__PURE__ */
|
|
9057
|
+
return /* @__PURE__ */ jsxs39(
|
|
8911
9058
|
CardBase,
|
|
8912
9059
|
{
|
|
8913
9060
|
ref,
|
|
@@ -8918,7 +9065,7 @@ var CardProgress = forwardRef17(
|
|
|
8918
9065
|
className: cn(isHorizontal ? "h-20" : "", className),
|
|
8919
9066
|
...props,
|
|
8920
9067
|
children: [
|
|
8921
|
-
/* @__PURE__ */
|
|
9068
|
+
/* @__PURE__ */ jsx51(
|
|
8922
9069
|
"div",
|
|
8923
9070
|
{
|
|
8924
9071
|
className: cn(
|
|
@@ -8931,7 +9078,7 @@ var CardProgress = forwardRef17(
|
|
|
8931
9078
|
children: icon
|
|
8932
9079
|
}
|
|
8933
9080
|
),
|
|
8934
|
-
/* @__PURE__ */
|
|
9081
|
+
/* @__PURE__ */ jsxs39(
|
|
8935
9082
|
"div",
|
|
8936
9083
|
{
|
|
8937
9084
|
className: cn(
|
|
@@ -8939,7 +9086,7 @@ var CardProgress = forwardRef17(
|
|
|
8939
9086
|
!isHorizontal && "gap-4"
|
|
8940
9087
|
),
|
|
8941
9088
|
children: [
|
|
8942
|
-
/* @__PURE__ */
|
|
9089
|
+
/* @__PURE__ */ jsx51(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
|
|
8943
9090
|
contentComponent[direction]
|
|
8944
9091
|
]
|
|
8945
9092
|
}
|
|
@@ -8959,7 +9106,7 @@ var CardTopic = forwardRef17(
|
|
|
8959
9106
|
className = "",
|
|
8960
9107
|
...props
|
|
8961
9108
|
}, ref) => {
|
|
8962
|
-
return /* @__PURE__ */
|
|
9109
|
+
return /* @__PURE__ */ jsxs39(
|
|
8963
9110
|
CardBase,
|
|
8964
9111
|
{
|
|
8965
9112
|
ref,
|
|
@@ -8970,13 +9117,13 @@ var CardTopic = forwardRef17(
|
|
|
8970
9117
|
className: cn("justify-center gap-2 py-2 px-4", className),
|
|
8971
9118
|
...props,
|
|
8972
9119
|
children: [
|
|
8973
|
-
subHead && /* @__PURE__ */
|
|
8974
|
-
/* @__PURE__ */
|
|
8975
|
-
index < subHead.length - 1 && /* @__PURE__ */
|
|
9120
|
+
subHead && /* @__PURE__ */ jsx51("span", { className: "text-text-600 text-2xs flex flex-row gap-1", children: subHead.map((text, index) => /* @__PURE__ */ jsxs39(Fragment8, { children: [
|
|
9121
|
+
/* @__PURE__ */ jsx51("p", { children: text }),
|
|
9122
|
+
index < subHead.length - 1 && /* @__PURE__ */ jsx51("p", { children: "\u2022" })
|
|
8976
9123
|
] }, `${text} - ${index}`)) }),
|
|
8977
|
-
/* @__PURE__ */
|
|
8978
|
-
/* @__PURE__ */
|
|
8979
|
-
/* @__PURE__ */
|
|
9124
|
+
/* @__PURE__ */ jsx51("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
|
|
9125
|
+
/* @__PURE__ */ jsxs39("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
9126
|
+
/* @__PURE__ */ jsx51(
|
|
8980
9127
|
ProgressBar_default,
|
|
8981
9128
|
{
|
|
8982
9129
|
size: "small",
|
|
@@ -8985,7 +9132,7 @@ var CardTopic = forwardRef17(
|
|
|
8985
9132
|
"data-testid": "progress-bar"
|
|
8986
9133
|
}
|
|
8987
9134
|
),
|
|
8988
|
-
showPercentage && /* @__PURE__ */
|
|
9135
|
+
showPercentage && /* @__PURE__ */ jsxs39(
|
|
8989
9136
|
Text_default,
|
|
8990
9137
|
{
|
|
8991
9138
|
size: "xs",
|
|
@@ -9019,7 +9166,7 @@ var CardPerformance = forwardRef17(
|
|
|
9019
9166
|
...props
|
|
9020
9167
|
}, ref) => {
|
|
9021
9168
|
const hasProgress = progress !== void 0;
|
|
9022
|
-
return /* @__PURE__ */
|
|
9169
|
+
return /* @__PURE__ */ jsxs39(
|
|
9023
9170
|
CardBase,
|
|
9024
9171
|
{
|
|
9025
9172
|
ref,
|
|
@@ -9033,10 +9180,10 @@ var CardPerformance = forwardRef17(
|
|
|
9033
9180
|
onClick: () => actionVariant == "caret" && onClickButton?.(valueButton),
|
|
9034
9181
|
...props,
|
|
9035
9182
|
children: [
|
|
9036
|
-
/* @__PURE__ */
|
|
9037
|
-
/* @__PURE__ */
|
|
9038
|
-
/* @__PURE__ */
|
|
9039
|
-
actionVariant === "button" && /* @__PURE__ */
|
|
9183
|
+
/* @__PURE__ */ jsxs39("div", { className: "w-full flex flex-col justify-between gap-2", children: [
|
|
9184
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-row justify-between items-center gap-2", children: [
|
|
9185
|
+
/* @__PURE__ */ jsx51("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
9186
|
+
actionVariant === "button" && /* @__PURE__ */ jsx51(
|
|
9040
9187
|
Button_default,
|
|
9041
9188
|
{
|
|
9042
9189
|
variant: "outline",
|
|
@@ -9047,16 +9194,16 @@ var CardPerformance = forwardRef17(
|
|
|
9047
9194
|
}
|
|
9048
9195
|
)
|
|
9049
9196
|
] }),
|
|
9050
|
-
/* @__PURE__ */
|
|
9197
|
+
/* @__PURE__ */ jsx51("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ jsx51(
|
|
9051
9198
|
ProgressBar_default,
|
|
9052
9199
|
{
|
|
9053
9200
|
value: progress,
|
|
9054
9201
|
label: `${progress}% ${labelProgress}`,
|
|
9055
9202
|
variant: progressVariant
|
|
9056
9203
|
}
|
|
9057
|
-
) : /* @__PURE__ */
|
|
9204
|
+
) : /* @__PURE__ */ jsx51("p", { className: "text-xs text-text-600 truncate", children: description }) })
|
|
9058
9205
|
] }),
|
|
9059
|
-
actionVariant == "caret" && /* @__PURE__ */
|
|
9206
|
+
actionVariant == "caret" && /* @__PURE__ */ jsx51(
|
|
9060
9207
|
CaretRight5,
|
|
9061
9208
|
{
|
|
9062
9209
|
className: "size-4.5 text-text-800 cursor-pointer",
|
|
@@ -9080,7 +9227,7 @@ var CardResults = forwardRef17(
|
|
|
9080
9227
|
...props
|
|
9081
9228
|
}, ref) => {
|
|
9082
9229
|
const isRow = direction == "row";
|
|
9083
|
-
return /* @__PURE__ */
|
|
9230
|
+
return /* @__PURE__ */ jsxs39(
|
|
9084
9231
|
CardBase,
|
|
9085
9232
|
{
|
|
9086
9233
|
ref,
|
|
@@ -9090,7 +9237,7 @@ var CardResults = forwardRef17(
|
|
|
9090
9237
|
className: cn("items-stretch cursor-pointer pr-4", className),
|
|
9091
9238
|
...props,
|
|
9092
9239
|
children: [
|
|
9093
|
-
/* @__PURE__ */
|
|
9240
|
+
/* @__PURE__ */ jsx51(
|
|
9094
9241
|
"div",
|
|
9095
9242
|
{
|
|
9096
9243
|
className: cn(
|
|
@@ -9099,11 +9246,11 @@ var CardResults = forwardRef17(
|
|
|
9099
9246
|
style: {
|
|
9100
9247
|
backgroundColor: color
|
|
9101
9248
|
},
|
|
9102
|
-
children: /* @__PURE__ */
|
|
9249
|
+
children: /* @__PURE__ */ jsx51(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
|
|
9103
9250
|
}
|
|
9104
9251
|
),
|
|
9105
|
-
/* @__PURE__ */
|
|
9106
|
-
/* @__PURE__ */
|
|
9252
|
+
/* @__PURE__ */ jsxs39("div", { className: "w-full flex flex-row justify-between items-center", children: [
|
|
9253
|
+
/* @__PURE__ */ jsxs39(
|
|
9107
9254
|
"div",
|
|
9108
9255
|
{
|
|
9109
9256
|
className: cn(
|
|
@@ -9111,28 +9258,28 @@ var CardResults = forwardRef17(
|
|
|
9111
9258
|
isRow ? "flex-row items-center gap-2" : "flex-col"
|
|
9112
9259
|
),
|
|
9113
9260
|
children: [
|
|
9114
|
-
/* @__PURE__ */
|
|
9115
|
-
/* @__PURE__ */
|
|
9116
|
-
/* @__PURE__ */
|
|
9261
|
+
/* @__PURE__ */ jsx51("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
|
|
9262
|
+
/* @__PURE__ */ jsxs39("span", { className: "flex flex-wrap flex-row gap-1 items-center", children: [
|
|
9263
|
+
/* @__PURE__ */ jsxs39(
|
|
9117
9264
|
Badge_default,
|
|
9118
9265
|
{
|
|
9119
9266
|
action: "success",
|
|
9120
9267
|
variant: "solid",
|
|
9121
9268
|
size: "large",
|
|
9122
|
-
iconLeft: /* @__PURE__ */
|
|
9269
|
+
iconLeft: /* @__PURE__ */ jsx51(CheckCircle3, {}),
|
|
9123
9270
|
children: [
|
|
9124
9271
|
correct_answers,
|
|
9125
9272
|
" Corretas"
|
|
9126
9273
|
]
|
|
9127
9274
|
}
|
|
9128
9275
|
),
|
|
9129
|
-
/* @__PURE__ */
|
|
9276
|
+
/* @__PURE__ */ jsxs39(
|
|
9130
9277
|
Badge_default,
|
|
9131
9278
|
{
|
|
9132
9279
|
action: "error",
|
|
9133
9280
|
variant: "solid",
|
|
9134
9281
|
size: "large",
|
|
9135
|
-
iconLeft: /* @__PURE__ */
|
|
9282
|
+
iconLeft: /* @__PURE__ */ jsx51(XCircle2, {}),
|
|
9136
9283
|
children: [
|
|
9137
9284
|
incorrect_answers,
|
|
9138
9285
|
" Incorretas"
|
|
@@ -9143,7 +9290,7 @@ var CardResults = forwardRef17(
|
|
|
9143
9290
|
]
|
|
9144
9291
|
}
|
|
9145
9292
|
),
|
|
9146
|
-
/* @__PURE__ */
|
|
9293
|
+
/* @__PURE__ */ jsx51(CaretRight5, { className: "min-w-6 min-h-6 text-text-800" })
|
|
9147
9294
|
] })
|
|
9148
9295
|
]
|
|
9149
9296
|
}
|
|
@@ -9169,13 +9316,13 @@ var CardStatus = forwardRef17(
|
|
|
9169
9316
|
const getIconBadge = (status2) => {
|
|
9170
9317
|
switch (status2) {
|
|
9171
9318
|
case "correct":
|
|
9172
|
-
return /* @__PURE__ */
|
|
9319
|
+
return /* @__PURE__ */ jsx51(CheckCircle3, {});
|
|
9173
9320
|
case "incorrect":
|
|
9174
|
-
return /* @__PURE__ */
|
|
9321
|
+
return /* @__PURE__ */ jsx51(XCircle2, {});
|
|
9175
9322
|
case "pending":
|
|
9176
|
-
return /* @__PURE__ */
|
|
9323
|
+
return /* @__PURE__ */ jsx51(Clock, {});
|
|
9177
9324
|
default:
|
|
9178
|
-
return /* @__PURE__ */
|
|
9325
|
+
return /* @__PURE__ */ jsx51(XCircle2, {});
|
|
9179
9326
|
}
|
|
9180
9327
|
};
|
|
9181
9328
|
const getActionBadge = (status2) => {
|
|
@@ -9190,7 +9337,7 @@ var CardStatus = forwardRef17(
|
|
|
9190
9337
|
return "info";
|
|
9191
9338
|
}
|
|
9192
9339
|
};
|
|
9193
|
-
return /* @__PURE__ */
|
|
9340
|
+
return /* @__PURE__ */ jsx51(
|
|
9194
9341
|
CardBase,
|
|
9195
9342
|
{
|
|
9196
9343
|
ref,
|
|
@@ -9199,10 +9346,10 @@ var CardStatus = forwardRef17(
|
|
|
9199
9346
|
minHeight: "medium",
|
|
9200
9347
|
className: cn("items-center cursor-pointer", className),
|
|
9201
9348
|
...props,
|
|
9202
|
-
children: /* @__PURE__ */
|
|
9203
|
-
/* @__PURE__ */
|
|
9204
|
-
/* @__PURE__ */
|
|
9205
|
-
status && /* @__PURE__ */
|
|
9349
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
9350
|
+
/* @__PURE__ */ jsx51("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
9351
|
+
/* @__PURE__ */ jsxs39("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
9352
|
+
status && /* @__PURE__ */ jsx51(
|
|
9206
9353
|
Badge_default,
|
|
9207
9354
|
{
|
|
9208
9355
|
action: getActionBadge(status),
|
|
@@ -9212,9 +9359,9 @@ var CardStatus = forwardRef17(
|
|
|
9212
9359
|
children: getLabelBadge(status)
|
|
9213
9360
|
}
|
|
9214
9361
|
),
|
|
9215
|
-
label && /* @__PURE__ */
|
|
9362
|
+
label && /* @__PURE__ */ jsx51("p", { className: "text-sm text-text-800", children: label })
|
|
9216
9363
|
] }),
|
|
9217
|
-
/* @__PURE__ */
|
|
9364
|
+
/* @__PURE__ */ jsx51(CaretRight5, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
9218
9365
|
] })
|
|
9219
9366
|
}
|
|
9220
9367
|
);
|
|
@@ -9222,7 +9369,7 @@ var CardStatus = forwardRef17(
|
|
|
9222
9369
|
);
|
|
9223
9370
|
var CardSettings = forwardRef17(
|
|
9224
9371
|
({ header, className, icon, ...props }, ref) => {
|
|
9225
|
-
return /* @__PURE__ */
|
|
9372
|
+
return /* @__PURE__ */ jsxs39(
|
|
9226
9373
|
CardBase,
|
|
9227
9374
|
{
|
|
9228
9375
|
ref,
|
|
@@ -9235,9 +9382,9 @@ var CardSettings = forwardRef17(
|
|
|
9235
9382
|
),
|
|
9236
9383
|
...props,
|
|
9237
9384
|
children: [
|
|
9238
|
-
/* @__PURE__ */
|
|
9239
|
-
/* @__PURE__ */
|
|
9240
|
-
/* @__PURE__ */
|
|
9385
|
+
/* @__PURE__ */ jsx51("span", { className: "[&>svg]:size-6", children: icon }),
|
|
9386
|
+
/* @__PURE__ */ jsx51("p", { className: "w-full text-sm truncate", children: header }),
|
|
9387
|
+
/* @__PURE__ */ jsx51(CaretRight5, { size: 24, className: "cursor-pointer" })
|
|
9241
9388
|
]
|
|
9242
9389
|
}
|
|
9243
9390
|
);
|
|
@@ -9245,7 +9392,7 @@ var CardSettings = forwardRef17(
|
|
|
9245
9392
|
);
|
|
9246
9393
|
var CardSupport = forwardRef17(
|
|
9247
9394
|
({ header, className, direction = "col", children, ...props }, ref) => {
|
|
9248
|
-
return /* @__PURE__ */
|
|
9395
|
+
return /* @__PURE__ */ jsxs39(
|
|
9249
9396
|
CardBase,
|
|
9250
9397
|
{
|
|
9251
9398
|
ref,
|
|
@@ -9258,7 +9405,7 @@ var CardSupport = forwardRef17(
|
|
|
9258
9405
|
),
|
|
9259
9406
|
...props,
|
|
9260
9407
|
children: [
|
|
9261
|
-
/* @__PURE__ */
|
|
9408
|
+
/* @__PURE__ */ jsxs39(
|
|
9262
9409
|
"div",
|
|
9263
9410
|
{
|
|
9264
9411
|
className: cn(
|
|
@@ -9266,12 +9413,12 @@ var CardSupport = forwardRef17(
|
|
|
9266
9413
|
direction == "col" ? "flex-col" : "flex-row items-center"
|
|
9267
9414
|
),
|
|
9268
9415
|
children: [
|
|
9269
|
-
/* @__PURE__ */
|
|
9270
|
-
/* @__PURE__ */
|
|
9416
|
+
/* @__PURE__ */ jsx51("span", { className: "w-full min-w-0", children: /* @__PURE__ */ jsx51("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
|
|
9417
|
+
/* @__PURE__ */ jsx51("span", { className: "flex flex-row gap-1", children })
|
|
9271
9418
|
]
|
|
9272
9419
|
}
|
|
9273
9420
|
),
|
|
9274
|
-
/* @__PURE__ */
|
|
9421
|
+
/* @__PURE__ */ jsx51(CaretRight5, { className: "text-text-800 cursor-pointer", size: 24 })
|
|
9275
9422
|
]
|
|
9276
9423
|
}
|
|
9277
9424
|
);
|
|
@@ -9291,7 +9438,7 @@ var CardForum = forwardRef17(
|
|
|
9291
9438
|
hour,
|
|
9292
9439
|
...props
|
|
9293
9440
|
}, ref) => {
|
|
9294
|
-
return /* @__PURE__ */
|
|
9441
|
+
return /* @__PURE__ */ jsxs39(
|
|
9295
9442
|
CardBase,
|
|
9296
9443
|
{
|
|
9297
9444
|
ref,
|
|
@@ -9302,7 +9449,7 @@ var CardForum = forwardRef17(
|
|
|
9302
9449
|
className: cn("w-auto h-auto gap-3", className),
|
|
9303
9450
|
...props,
|
|
9304
9451
|
children: [
|
|
9305
|
-
/* @__PURE__ */
|
|
9452
|
+
/* @__PURE__ */ jsx51(
|
|
9306
9453
|
"button",
|
|
9307
9454
|
{
|
|
9308
9455
|
type: "button",
|
|
@@ -9311,18 +9458,18 @@ var CardForum = forwardRef17(
|
|
|
9311
9458
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
9312
9459
|
}
|
|
9313
9460
|
),
|
|
9314
|
-
/* @__PURE__ */
|
|
9315
|
-
/* @__PURE__ */
|
|
9316
|
-
/* @__PURE__ */
|
|
9317
|
-
/* @__PURE__ */
|
|
9461
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
9462
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
9463
|
+
/* @__PURE__ */ jsx51("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
9464
|
+
/* @__PURE__ */ jsxs39("p", { className: "text-xs text-text-600", children: [
|
|
9318
9465
|
"\u2022 ",
|
|
9319
9466
|
date,
|
|
9320
9467
|
" \u2022 ",
|
|
9321
9468
|
hour
|
|
9322
9469
|
] })
|
|
9323
9470
|
] }),
|
|
9324
|
-
/* @__PURE__ */
|
|
9325
|
-
/* @__PURE__ */
|
|
9471
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
9472
|
+
/* @__PURE__ */ jsxs39(
|
|
9326
9473
|
"button",
|
|
9327
9474
|
{
|
|
9328
9475
|
type: "button",
|
|
@@ -9330,8 +9477,8 @@ var CardForum = forwardRef17(
|
|
|
9330
9477
|
onClick: () => onClickComments?.(valueComments),
|
|
9331
9478
|
className: "text-text-600 flex flex-row gap-2 items-center",
|
|
9332
9479
|
children: [
|
|
9333
|
-
/* @__PURE__ */
|
|
9334
|
-
/* @__PURE__ */
|
|
9480
|
+
/* @__PURE__ */ jsx51(ChatCircleText, { "aria-hidden": "true", size: 16 }),
|
|
9481
|
+
/* @__PURE__ */ jsxs39("p", { className: "text-xs", children: [
|
|
9335
9482
|
comments,
|
|
9336
9483
|
" respostas"
|
|
9337
9484
|
] })
|
|
@@ -9434,12 +9581,12 @@ var CardAudio = forwardRef17(
|
|
|
9434
9581
|
};
|
|
9435
9582
|
const getVolumeIcon = () => {
|
|
9436
9583
|
if (volume === 0) {
|
|
9437
|
-
return /* @__PURE__ */
|
|
9584
|
+
return /* @__PURE__ */ jsx51(SpeakerSimpleX, { size: 24 });
|
|
9438
9585
|
}
|
|
9439
9586
|
if (volume < 0.5) {
|
|
9440
|
-
return /* @__PURE__ */
|
|
9587
|
+
return /* @__PURE__ */ jsx51(SpeakerLow, { size: 24 });
|
|
9441
9588
|
}
|
|
9442
|
-
return /* @__PURE__ */
|
|
9589
|
+
return /* @__PURE__ */ jsx51(SpeakerHigh, { size: 24 });
|
|
9443
9590
|
};
|
|
9444
9591
|
useEffect21(() => {
|
|
9445
9592
|
const handleClickOutside = (event) => {
|
|
@@ -9455,7 +9602,7 @@ var CardAudio = forwardRef17(
|
|
|
9455
9602
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
9456
9603
|
};
|
|
9457
9604
|
}, []);
|
|
9458
|
-
return /* @__PURE__ */
|
|
9605
|
+
return /* @__PURE__ */ jsxs39(
|
|
9459
9606
|
CardBase,
|
|
9460
9607
|
{
|
|
9461
9608
|
ref,
|
|
@@ -9468,7 +9615,7 @@ var CardAudio = forwardRef17(
|
|
|
9468
9615
|
),
|
|
9469
9616
|
...props,
|
|
9470
9617
|
children: [
|
|
9471
|
-
/* @__PURE__ */
|
|
9618
|
+
/* @__PURE__ */ jsx51(
|
|
9472
9619
|
"audio",
|
|
9473
9620
|
{
|
|
9474
9621
|
ref: audioRef,
|
|
@@ -9480,7 +9627,7 @@ var CardAudio = forwardRef17(
|
|
|
9480
9627
|
onEnded: handleEnded,
|
|
9481
9628
|
"data-testid": "audio-element",
|
|
9482
9629
|
"aria-label": title,
|
|
9483
|
-
children: tracks ? tracks.map((track) => /* @__PURE__ */
|
|
9630
|
+
children: tracks ? tracks.map((track) => /* @__PURE__ */ jsx51(
|
|
9484
9631
|
"track",
|
|
9485
9632
|
{
|
|
9486
9633
|
kind: track.kind,
|
|
@@ -9490,7 +9637,7 @@ var CardAudio = forwardRef17(
|
|
|
9490
9637
|
default: track.default
|
|
9491
9638
|
},
|
|
9492
9639
|
track.src
|
|
9493
|
-
)) : /* @__PURE__ */
|
|
9640
|
+
)) : /* @__PURE__ */ jsx51(
|
|
9494
9641
|
"track",
|
|
9495
9642
|
{
|
|
9496
9643
|
kind: "captions",
|
|
@@ -9501,7 +9648,7 @@ var CardAudio = forwardRef17(
|
|
|
9501
9648
|
)
|
|
9502
9649
|
}
|
|
9503
9650
|
),
|
|
9504
|
-
/* @__PURE__ */
|
|
9651
|
+
/* @__PURE__ */ jsx51(
|
|
9505
9652
|
"button",
|
|
9506
9653
|
{
|
|
9507
9654
|
type: "button",
|
|
@@ -9509,14 +9656,14 @@ var CardAudio = forwardRef17(
|
|
|
9509
9656
|
disabled: !src,
|
|
9510
9657
|
className: "cursor-pointer text-text-950 hover:text-primary-600 disabled:text-text-400 disabled:cursor-not-allowed",
|
|
9511
9658
|
"aria-label": isPlaying ? "Pausar" : "Reproduzir",
|
|
9512
|
-
children: isPlaying ? /* @__PURE__ */
|
|
9513
|
-
/* @__PURE__ */
|
|
9514
|
-
/* @__PURE__ */
|
|
9515
|
-
] }) }) : /* @__PURE__ */
|
|
9659
|
+
children: isPlaying ? /* @__PURE__ */ jsx51("div", { className: "w-6 h-6 flex items-center justify-center", children: /* @__PURE__ */ jsxs39("div", { className: "flex gap-0.5", children: [
|
|
9660
|
+
/* @__PURE__ */ jsx51("div", { className: "w-1 h-4 bg-current rounded-sm" }),
|
|
9661
|
+
/* @__PURE__ */ jsx51("div", { className: "w-1 h-4 bg-current rounded-sm" })
|
|
9662
|
+
] }) }) : /* @__PURE__ */ jsx51(Play, { size: 24 })
|
|
9516
9663
|
}
|
|
9517
9664
|
),
|
|
9518
|
-
/* @__PURE__ */
|
|
9519
|
-
/* @__PURE__ */
|
|
9665
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-800 text-md font-medium min-w-[2.5rem]", children: formatTime2(currentTime) }),
|
|
9666
|
+
/* @__PURE__ */ jsx51("div", { className: "flex-1 relative", "data-testid": "progress-bar", children: /* @__PURE__ */ jsx51(
|
|
9520
9667
|
"button",
|
|
9521
9668
|
{
|
|
9522
9669
|
type: "button",
|
|
@@ -9531,7 +9678,7 @@ var CardAudio = forwardRef17(
|
|
|
9531
9678
|
}
|
|
9532
9679
|
},
|
|
9533
9680
|
"aria-label": "Barra de progresso do \xE1udio",
|
|
9534
|
-
children: /* @__PURE__ */
|
|
9681
|
+
children: /* @__PURE__ */ jsx51(
|
|
9535
9682
|
"div",
|
|
9536
9683
|
{
|
|
9537
9684
|
className: "h-full bg-primary-600 rounded-full transition-all duration-100",
|
|
@@ -9542,19 +9689,19 @@ var CardAudio = forwardRef17(
|
|
|
9542
9689
|
)
|
|
9543
9690
|
}
|
|
9544
9691
|
) }),
|
|
9545
|
-
/* @__PURE__ */
|
|
9546
|
-
/* @__PURE__ */
|
|
9547
|
-
/* @__PURE__ */
|
|
9692
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-800 text-md font-medium min-w-[2.5rem]", children: formatTime2(duration) }),
|
|
9693
|
+
/* @__PURE__ */ jsxs39("div", { className: "relative h-6", ref: volumeControlRef, children: [
|
|
9694
|
+
/* @__PURE__ */ jsx51(
|
|
9548
9695
|
"button",
|
|
9549
9696
|
{
|
|
9550
9697
|
type: "button",
|
|
9551
9698
|
onClick: toggleVolumeControl,
|
|
9552
9699
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
9553
9700
|
"aria-label": "Controle de volume",
|
|
9554
|
-
children: /* @__PURE__ */
|
|
9701
|
+
children: /* @__PURE__ */ jsx51("div", { className: "w-6 h-6 flex items-center justify-center", children: getVolumeIcon() })
|
|
9555
9702
|
}
|
|
9556
9703
|
),
|
|
9557
|
-
showVolumeControl && /* @__PURE__ */
|
|
9704
|
+
showVolumeControl && /* @__PURE__ */ jsx51(
|
|
9558
9705
|
"button",
|
|
9559
9706
|
{
|
|
9560
9707
|
type: "button",
|
|
@@ -9564,7 +9711,7 @@ var CardAudio = forwardRef17(
|
|
|
9564
9711
|
setShowVolumeControl(false);
|
|
9565
9712
|
}
|
|
9566
9713
|
},
|
|
9567
|
-
children: /* @__PURE__ */
|
|
9714
|
+
children: /* @__PURE__ */ jsx51(
|
|
9568
9715
|
"input",
|
|
9569
9716
|
{
|
|
9570
9717
|
type: "range",
|
|
@@ -9605,22 +9752,22 @@ var CardAudio = forwardRef17(
|
|
|
9605
9752
|
}
|
|
9606
9753
|
)
|
|
9607
9754
|
] }),
|
|
9608
|
-
/* @__PURE__ */
|
|
9609
|
-
/* @__PURE__ */
|
|
9755
|
+
/* @__PURE__ */ jsxs39("div", { className: "relative h-6", ref: speedMenuRef, children: [
|
|
9756
|
+
/* @__PURE__ */ jsx51(
|
|
9610
9757
|
"button",
|
|
9611
9758
|
{
|
|
9612
9759
|
type: "button",
|
|
9613
9760
|
onClick: toggleSpeedMenu,
|
|
9614
9761
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
9615
9762
|
"aria-label": "Op\xE7\xF5es de velocidade",
|
|
9616
|
-
children: /* @__PURE__ */
|
|
9763
|
+
children: /* @__PURE__ */ jsx51(DotsThreeVertical2, { size: 24 })
|
|
9617
9764
|
}
|
|
9618
9765
|
),
|
|
9619
|
-
showSpeedMenu && /* @__PURE__ */
|
|
9766
|
+
showSpeedMenu && /* @__PURE__ */ jsx51("div", { className: "absolute bottom-full right-0 mb-2 p-2 bg-background border border-border-100 rounded-lg shadow-lg min-w-24 z-10", children: /* @__PURE__ */ jsx51("div", { className: "flex flex-col gap-1", children: [
|
|
9620
9767
|
{ speed: 1, label: "1x" },
|
|
9621
9768
|
{ speed: 1.5, label: "1.5x" },
|
|
9622
9769
|
{ speed: 2, label: "2x" }
|
|
9623
|
-
].map(({ speed, label }) => /* @__PURE__ */
|
|
9770
|
+
].map(({ speed, label }) => /* @__PURE__ */ jsx51(
|
|
9624
9771
|
"button",
|
|
9625
9772
|
{
|
|
9626
9773
|
type: "button",
|
|
@@ -9648,7 +9795,7 @@ var SIMULADO_BACKGROUND_CLASSES = {
|
|
|
9648
9795
|
var CardSimulado = forwardRef17(
|
|
9649
9796
|
({ title, duration, info, backgroundColor, className, ...props }, ref) => {
|
|
9650
9797
|
const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
|
|
9651
|
-
return /* @__PURE__ */
|
|
9798
|
+
return /* @__PURE__ */ jsx51(
|
|
9652
9799
|
CardBase,
|
|
9653
9800
|
{
|
|
9654
9801
|
ref,
|
|
@@ -9661,18 +9808,18 @@ var CardSimulado = forwardRef17(
|
|
|
9661
9808
|
className
|
|
9662
9809
|
),
|
|
9663
9810
|
...props,
|
|
9664
|
-
children: /* @__PURE__ */
|
|
9665
|
-
/* @__PURE__ */
|
|
9666
|
-
/* @__PURE__ */
|
|
9667
|
-
/* @__PURE__ */
|
|
9668
|
-
duration && /* @__PURE__ */
|
|
9669
|
-
/* @__PURE__ */
|
|
9670
|
-
/* @__PURE__ */
|
|
9811
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex justify-between items-center w-full gap-4", children: [
|
|
9812
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
9813
|
+
/* @__PURE__ */ jsx51(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
|
|
9814
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex items-center gap-4 text-text-700", children: [
|
|
9815
|
+
duration && /* @__PURE__ */ jsxs39("div", { className: "flex items-center gap-1", children: [
|
|
9816
|
+
/* @__PURE__ */ jsx51(Clock, { size: 16, className: "flex-shrink-0" }),
|
|
9817
|
+
/* @__PURE__ */ jsx51(Text_default, { size: "sm", children: duration })
|
|
9671
9818
|
] }),
|
|
9672
|
-
/* @__PURE__ */
|
|
9819
|
+
/* @__PURE__ */ jsx51(Text_default, { size: "sm", className: "truncate", children: info })
|
|
9673
9820
|
] })
|
|
9674
9821
|
] }),
|
|
9675
|
-
/* @__PURE__ */
|
|
9822
|
+
/* @__PURE__ */ jsx51(
|
|
9676
9823
|
CaretRight5,
|
|
9677
9824
|
{
|
|
9678
9825
|
size: 24,
|
|
@@ -9717,7 +9864,7 @@ var CardTest = forwardRef17(
|
|
|
9717
9864
|
const interactiveClasses = isSelectable ? "cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary-950 focus:ring-offset-2" : "";
|
|
9718
9865
|
const selectedClasses = selected ? "ring-2 ring-primary-950 ring-offset-2" : "";
|
|
9719
9866
|
if (isSelectable) {
|
|
9720
|
-
return /* @__PURE__ */
|
|
9867
|
+
return /* @__PURE__ */ jsx51(
|
|
9721
9868
|
"button",
|
|
9722
9869
|
{
|
|
9723
9870
|
ref,
|
|
@@ -9729,8 +9876,8 @@ var CardTest = forwardRef17(
|
|
|
9729
9876
|
onKeyDown: handleKeyDown,
|
|
9730
9877
|
"aria-pressed": selected,
|
|
9731
9878
|
...props,
|
|
9732
|
-
children: /* @__PURE__ */
|
|
9733
|
-
/* @__PURE__ */
|
|
9879
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
9880
|
+
/* @__PURE__ */ jsx51(
|
|
9734
9881
|
Text_default,
|
|
9735
9882
|
{
|
|
9736
9883
|
size: "md",
|
|
@@ -9739,10 +9886,10 @@ var CardTest = forwardRef17(
|
|
|
9739
9886
|
children: title
|
|
9740
9887
|
}
|
|
9741
9888
|
),
|
|
9742
|
-
/* @__PURE__ */
|
|
9743
|
-
duration && /* @__PURE__ */
|
|
9744
|
-
/* @__PURE__ */
|
|
9745
|
-
/* @__PURE__ */
|
|
9889
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
9890
|
+
duration && /* @__PURE__ */ jsxs39("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
9891
|
+
/* @__PURE__ */ jsx51(Clock, { size: 16, className: "text-text-700" }),
|
|
9892
|
+
/* @__PURE__ */ jsx51(
|
|
9746
9893
|
Text_default,
|
|
9747
9894
|
{
|
|
9748
9895
|
size: "sm",
|
|
@@ -9751,7 +9898,7 @@ var CardTest = forwardRef17(
|
|
|
9751
9898
|
}
|
|
9752
9899
|
)
|
|
9753
9900
|
] }),
|
|
9754
|
-
/* @__PURE__ */
|
|
9901
|
+
/* @__PURE__ */ jsx51(
|
|
9755
9902
|
Text_default,
|
|
9756
9903
|
{
|
|
9757
9904
|
size: "sm",
|
|
@@ -9764,14 +9911,14 @@ var CardTest = forwardRef17(
|
|
|
9764
9911
|
}
|
|
9765
9912
|
);
|
|
9766
9913
|
}
|
|
9767
|
-
return /* @__PURE__ */
|
|
9914
|
+
return /* @__PURE__ */ jsx51(
|
|
9768
9915
|
"div",
|
|
9769
9916
|
{
|
|
9770
9917
|
ref,
|
|
9771
9918
|
className: cn(`${baseClasses} ${className}`.trim()),
|
|
9772
9919
|
...props,
|
|
9773
|
-
children: /* @__PURE__ */
|
|
9774
|
-
/* @__PURE__ */
|
|
9920
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
9921
|
+
/* @__PURE__ */ jsx51(
|
|
9775
9922
|
Text_default,
|
|
9776
9923
|
{
|
|
9777
9924
|
size: "md",
|
|
@@ -9780,10 +9927,10 @@ var CardTest = forwardRef17(
|
|
|
9780
9927
|
children: title
|
|
9781
9928
|
}
|
|
9782
9929
|
),
|
|
9783
|
-
/* @__PURE__ */
|
|
9784
|
-
duration && /* @__PURE__ */
|
|
9785
|
-
/* @__PURE__ */
|
|
9786
|
-
/* @__PURE__ */
|
|
9930
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
9931
|
+
duration && /* @__PURE__ */ jsxs39("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
9932
|
+
/* @__PURE__ */ jsx51(Clock, { size: 16, className: "text-text-700" }),
|
|
9933
|
+
/* @__PURE__ */ jsx51(
|
|
9787
9934
|
Text_default,
|
|
9788
9935
|
{
|
|
9789
9936
|
size: "sm",
|
|
@@ -9792,7 +9939,7 @@ var CardTest = forwardRef17(
|
|
|
9792
9939
|
}
|
|
9793
9940
|
)
|
|
9794
9941
|
] }),
|
|
9795
|
-
/* @__PURE__ */
|
|
9942
|
+
/* @__PURE__ */ jsx51(
|
|
9796
9943
|
Text_default,
|
|
9797
9944
|
{
|
|
9798
9945
|
size: "sm",
|
|
@@ -9829,14 +9976,14 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
9829
9976
|
}
|
|
9830
9977
|
};
|
|
9831
9978
|
var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
9832
|
-
return /* @__PURE__ */
|
|
9979
|
+
return /* @__PURE__ */ jsx51(
|
|
9833
9980
|
"div",
|
|
9834
9981
|
{
|
|
9835
9982
|
ref,
|
|
9836
9983
|
className: cn("w-full max-w-[992px] h-auto", className),
|
|
9837
9984
|
...props,
|
|
9838
|
-
children: /* @__PURE__ */
|
|
9839
|
-
data.map((section, sectionIndex) => /* @__PURE__ */
|
|
9985
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex flex-col gap-0", children: [
|
|
9986
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ jsx51("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxs39(
|
|
9840
9987
|
"div",
|
|
9841
9988
|
{
|
|
9842
9989
|
className: cn(
|
|
@@ -9844,7 +9991,7 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9844
9991
|
sectionIndex === 0 ? "rounded-t-3xl" : ""
|
|
9845
9992
|
),
|
|
9846
9993
|
children: [
|
|
9847
|
-
/* @__PURE__ */
|
|
9994
|
+
/* @__PURE__ */ jsx51(
|
|
9848
9995
|
Text_default,
|
|
9849
9996
|
{
|
|
9850
9997
|
size: "xs",
|
|
@@ -9853,9 +10000,9 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9853
10000
|
children: section.date
|
|
9854
10001
|
}
|
|
9855
10002
|
),
|
|
9856
|
-
/* @__PURE__ */
|
|
10003
|
+
/* @__PURE__ */ jsx51("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
9857
10004
|
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
9858
|
-
return /* @__PURE__ */
|
|
10005
|
+
return /* @__PURE__ */ jsx51(
|
|
9859
10006
|
CardBase,
|
|
9860
10007
|
{
|
|
9861
10008
|
layout: "horizontal",
|
|
@@ -9867,9 +10014,9 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9867
10014
|
transition-shadow duration-200 h-auto min-h-[61px]`
|
|
9868
10015
|
),
|
|
9869
10016
|
onClick: () => onSimulationClick?.(simulation),
|
|
9870
|
-
children: /* @__PURE__ */
|
|
9871
|
-
/* @__PURE__ */
|
|
9872
|
-
/* @__PURE__ */
|
|
10017
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
10018
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-wrap flex-col justify-between sm:flex-row gap-2 flex-1 min-w-0", children: [
|
|
10019
|
+
/* @__PURE__ */ jsx51(
|
|
9873
10020
|
Text_default,
|
|
9874
10021
|
{
|
|
9875
10022
|
size: "lg",
|
|
@@ -9878,8 +10025,8 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9878
10025
|
children: simulation.title
|
|
9879
10026
|
}
|
|
9880
10027
|
),
|
|
9881
|
-
/* @__PURE__ */
|
|
9882
|
-
/* @__PURE__ */
|
|
10028
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex items-center gap-2", children: [
|
|
10029
|
+
/* @__PURE__ */ jsx51(
|
|
9883
10030
|
Badge_default,
|
|
9884
10031
|
{
|
|
9885
10032
|
variant: "examsOutlined",
|
|
@@ -9888,10 +10035,10 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9888
10035
|
children: typeStyles.text
|
|
9889
10036
|
}
|
|
9890
10037
|
),
|
|
9891
|
-
/* @__PURE__ */
|
|
10038
|
+
/* @__PURE__ */ jsx51(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
9892
10039
|
] })
|
|
9893
10040
|
] }),
|
|
9894
|
-
/* @__PURE__ */
|
|
10041
|
+
/* @__PURE__ */ jsx51(
|
|
9895
10042
|
CaretRight5,
|
|
9896
10043
|
{
|
|
9897
10044
|
size: 24,
|
|
@@ -9907,7 +10054,7 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9907
10054
|
]
|
|
9908
10055
|
}
|
|
9909
10056
|
) }, section.date)),
|
|
9910
|
-
data.length > 0 && /* @__PURE__ */
|
|
10057
|
+
data.length > 0 && /* @__PURE__ */ jsx51("div", { className: "w-full h-6 bg-background rounded-b-3xl" })
|
|
9911
10058
|
] })
|
|
9912
10059
|
}
|
|
9913
10060
|
);
|
|
@@ -9915,7 +10062,7 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9915
10062
|
|
|
9916
10063
|
// src/components/StatisticsCard/StatisticsCard.tsx
|
|
9917
10064
|
import { Plus } from "phosphor-react";
|
|
9918
|
-
import { jsx as
|
|
10065
|
+
import { jsx as jsx52, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
9919
10066
|
var VARIANT_STYLES = {
|
|
9920
10067
|
high: "bg-success-background",
|
|
9921
10068
|
medium: "bg-warning-background",
|
|
@@ -9929,12 +10076,12 @@ var VALUE_TEXT_COLORS = {
|
|
|
9929
10076
|
total: "text-info-700"
|
|
9930
10077
|
};
|
|
9931
10078
|
var StatCard = ({ item, showPlaceholder = false }) => {
|
|
9932
|
-
return /* @__PURE__ */
|
|
10079
|
+
return /* @__PURE__ */ jsxs40(
|
|
9933
10080
|
"div",
|
|
9934
10081
|
{
|
|
9935
10082
|
className: `rounded-xl py-[17px] px-6 min-h-[105px] flex flex-col justify-center items-start gap-1 ${VARIANT_STYLES[item.variant]}`,
|
|
9936
10083
|
children: [
|
|
9937
|
-
/* @__PURE__ */
|
|
10084
|
+
/* @__PURE__ */ jsx52(
|
|
9938
10085
|
Text_default,
|
|
9939
10086
|
{
|
|
9940
10087
|
size: "4xl",
|
|
@@ -9943,7 +10090,7 @@ var StatCard = ({ item, showPlaceholder = false }) => {
|
|
|
9943
10090
|
children: showPlaceholder ? "-" : item.value
|
|
9944
10091
|
}
|
|
9945
10092
|
),
|
|
9946
|
-
/* @__PURE__ */
|
|
10093
|
+
/* @__PURE__ */ jsx52(
|
|
9947
10094
|
Text_default,
|
|
9948
10095
|
{
|
|
9949
10096
|
size: "xs",
|
|
@@ -9978,13 +10125,13 @@ var StatisticsCard = ({
|
|
|
9978
10125
|
}) => {
|
|
9979
10126
|
const hasData = data && data.length > 0;
|
|
9980
10127
|
const gridColumnsClass = hasData ? getGridColumnsClass(data.length) : "";
|
|
9981
|
-
return /* @__PURE__ */
|
|
10128
|
+
return /* @__PURE__ */ jsxs40(
|
|
9982
10129
|
"div",
|
|
9983
10130
|
{
|
|
9984
10131
|
className: `bg-background rounded-xl p-4 h-auto lg:h-[185px] flex flex-col gap-2 ${className}`,
|
|
9985
10132
|
children: [
|
|
9986
|
-
/* @__PURE__ */
|
|
9987
|
-
/* @__PURE__ */
|
|
10133
|
+
/* @__PURE__ */ jsxs40("div", { className: "flex flex-row justify-between items-center gap-4", children: [
|
|
10134
|
+
/* @__PURE__ */ jsx52(
|
|
9988
10135
|
Text_default,
|
|
9989
10136
|
{
|
|
9990
10137
|
as: "h3",
|
|
@@ -9995,22 +10142,22 @@ var StatisticsCard = ({
|
|
|
9995
10142
|
children: title
|
|
9996
10143
|
}
|
|
9997
10144
|
),
|
|
9998
|
-
dropdownOptions && dropdownOptions.length > 0 && /* @__PURE__ */
|
|
10145
|
+
dropdownOptions && dropdownOptions.length > 0 && /* @__PURE__ */ jsx52("div", { className: "w-[120px] min-w-[90px] sm:shrink-0", children: /* @__PURE__ */ jsxs40(
|
|
9999
10146
|
Select_default,
|
|
10000
10147
|
{
|
|
10001
10148
|
value: selectedDropdownValue,
|
|
10002
10149
|
onValueChange: onDropdownChange,
|
|
10003
10150
|
size: "medium",
|
|
10004
10151
|
children: [
|
|
10005
|
-
/* @__PURE__ */
|
|
10152
|
+
/* @__PURE__ */ jsx52(
|
|
10006
10153
|
SelectTrigger,
|
|
10007
10154
|
{
|
|
10008
10155
|
className: "border border-border-300 rounded [&>span]:whitespace-nowrap [&>span]:overflow-hidden [&>span]:text-ellipsis",
|
|
10009
10156
|
"aria-label": dropdownAriaLabel,
|
|
10010
|
-
children: /* @__PURE__ */
|
|
10157
|
+
children: /* @__PURE__ */ jsx52(SelectValue, { placeholder: selectPlaceholder })
|
|
10011
10158
|
}
|
|
10012
10159
|
),
|
|
10013
|
-
/* @__PURE__ */
|
|
10160
|
+
/* @__PURE__ */ jsx52(SelectContent, { className: "min-w-[120px]", children: dropdownOptions.map((option) => /* @__PURE__ */ jsx52(
|
|
10014
10161
|
SelectItem,
|
|
10015
10162
|
{
|
|
10016
10163
|
value: option.value,
|
|
@@ -10023,11 +10170,11 @@ var StatisticsCard = ({
|
|
|
10023
10170
|
}
|
|
10024
10171
|
) })
|
|
10025
10172
|
] }),
|
|
10026
|
-
hasData ? /* @__PURE__ */
|
|
10173
|
+
hasData ? /* @__PURE__ */ jsx52(
|
|
10027
10174
|
"div",
|
|
10028
10175
|
{
|
|
10029
10176
|
className: `grid grid-cols-1 sm:grid-cols-2 gap-[13px] ${gridColumnsClass}`,
|
|
10030
|
-
children: data.map((item, index) => /* @__PURE__ */
|
|
10177
|
+
children: data.map((item, index) => /* @__PURE__ */ jsx52(
|
|
10031
10178
|
StatCard,
|
|
10032
10179
|
{
|
|
10033
10180
|
item,
|
|
@@ -10036,8 +10183,8 @@ var StatisticsCard = ({
|
|
|
10036
10183
|
`${item.variant}-${item.label}-${index}`
|
|
10037
10184
|
))
|
|
10038
10185
|
}
|
|
10039
|
-
) : /* @__PURE__ */
|
|
10040
|
-
/* @__PURE__ */
|
|
10186
|
+
) : /* @__PURE__ */ jsxs40("div", { className: "border border-dashed border-border-300 rounded-lg p-6 min-h-[105px] flex flex-col items-center justify-center gap-2", children: [
|
|
10187
|
+
/* @__PURE__ */ jsx52(
|
|
10041
10188
|
Text_default,
|
|
10042
10189
|
{
|
|
10043
10190
|
size: "sm",
|
|
@@ -10046,14 +10193,14 @@ var StatisticsCard = ({
|
|
|
10046
10193
|
children: emptyStateMessage
|
|
10047
10194
|
}
|
|
10048
10195
|
),
|
|
10049
|
-
onEmptyStateButtonClick && /* @__PURE__ */
|
|
10196
|
+
onEmptyStateButtonClick && /* @__PURE__ */ jsx52(
|
|
10050
10197
|
Button_default,
|
|
10051
10198
|
{
|
|
10052
10199
|
variant: "outline",
|
|
10053
10200
|
action: "primary",
|
|
10054
10201
|
size: "small",
|
|
10055
10202
|
onClick: onEmptyStateButtonClick,
|
|
10056
|
-
iconLeft: /* @__PURE__ */
|
|
10203
|
+
iconLeft: /* @__PURE__ */ jsx52(Plus, { size: 16, weight: "bold" }),
|
|
10057
10204
|
children: emptyStateButtonText
|
|
10058
10205
|
}
|
|
10059
10206
|
)
|
|
@@ -10064,7 +10211,7 @@ var StatisticsCard = ({
|
|
|
10064
10211
|
};
|
|
10065
10212
|
|
|
10066
10213
|
// src/components/NotFound/NotFound.tsx
|
|
10067
|
-
import { jsx as
|
|
10214
|
+
import { jsx as jsx53, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
10068
10215
|
var NotFound = ({
|
|
10069
10216
|
title,
|
|
10070
10217
|
description,
|
|
@@ -10107,22 +10254,22 @@ var NotFound = ({
|
|
|
10107
10254
|
const errorTitle = title || getDefaultTitle();
|
|
10108
10255
|
const errorDescription = description || getDefaultDescription();
|
|
10109
10256
|
const errorCode = getErrorCode();
|
|
10110
|
-
return /* @__PURE__ */
|
|
10257
|
+
return /* @__PURE__ */ jsx53(
|
|
10111
10258
|
"div",
|
|
10112
10259
|
{
|
|
10113
10260
|
className: cn(
|
|
10114
10261
|
"flex flex-col w-full h-screen items-center justify-center bg-background-50 px-4",
|
|
10115
10262
|
className
|
|
10116
10263
|
),
|
|
10117
|
-
children: /* @__PURE__ */
|
|
10264
|
+
children: /* @__PURE__ */ jsx53(
|
|
10118
10265
|
"main",
|
|
10119
10266
|
{
|
|
10120
10267
|
role: "main",
|
|
10121
10268
|
"aria-labelledby": "error-title",
|
|
10122
10269
|
"aria-describedby": "error-description",
|
|
10123
10270
|
className: "flex flex-col items-center text-center max-w-md space-y-6",
|
|
10124
|
-
children: /* @__PURE__ */
|
|
10125
|
-
/* @__PURE__ */
|
|
10271
|
+
children: /* @__PURE__ */ jsxs41("section", { "aria-label": `Erro ${errorCode}`, children: [
|
|
10272
|
+
/* @__PURE__ */ jsx53(
|
|
10126
10273
|
"div",
|
|
10127
10274
|
{
|
|
10128
10275
|
className: "text-8xl font-bold text-primary-300 select-none",
|
|
@@ -10130,8 +10277,8 @@ var NotFound = ({
|
|
|
10130
10277
|
children: errorCode
|
|
10131
10278
|
}
|
|
10132
10279
|
),
|
|
10133
|
-
/* @__PURE__ */
|
|
10134
|
-
/* @__PURE__ */
|
|
10280
|
+
/* @__PURE__ */ jsxs41("header", { className: "space-y-2", children: [
|
|
10281
|
+
/* @__PURE__ */ jsx53(
|
|
10135
10282
|
Text_default,
|
|
10136
10283
|
{
|
|
10137
10284
|
size: "xl",
|
|
@@ -10142,9 +10289,9 @@ var NotFound = ({
|
|
|
10142
10289
|
children: errorTitle
|
|
10143
10290
|
}
|
|
10144
10291
|
),
|
|
10145
|
-
/* @__PURE__ */
|
|
10292
|
+
/* @__PURE__ */ jsx53(Text_default, { size: "md", className: "text-text-600", id: "error-description", children: errorDescription })
|
|
10146
10293
|
] }),
|
|
10147
|
-
onButtonClick && /* @__PURE__ */
|
|
10294
|
+
onButtonClick && /* @__PURE__ */ jsx53("nav", { "aria-label": "Navega\xE7\xE3o de erro", children: /* @__PURE__ */ jsx53(
|
|
10148
10295
|
Button_default,
|
|
10149
10296
|
{
|
|
10150
10297
|
onClick: handleButtonClick,
|
|
@@ -10164,35 +10311,6 @@ var NotFound = ({
|
|
|
10164
10311
|
};
|
|
10165
10312
|
var NotFound_default = NotFound;
|
|
10166
10313
|
|
|
10167
|
-
// src/components/NoSearchResult/NoSearchResult.tsx
|
|
10168
|
-
import { jsx as jsx53, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
10169
|
-
var NoSearchResult = ({ image, title, description }) => {
|
|
10170
|
-
const displayTitle = title || "Nenhum resultado encontrado";
|
|
10171
|
-
const displayDescription = description || "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave.";
|
|
10172
|
-
return /* @__PURE__ */ jsxs41("div", { className: "flex flex-row justify-center items-center gap-8 w-full max-w-4xl min-h-96", children: [
|
|
10173
|
-
/* @__PURE__ */ jsx53("div", { className: "w-72 h-72 flex-shrink-0 relative", children: /* @__PURE__ */ jsx53(
|
|
10174
|
-
"img",
|
|
10175
|
-
{
|
|
10176
|
-
src: image,
|
|
10177
|
-
alt: "No search results",
|
|
10178
|
-
className: "w-full h-full object-contain"
|
|
10179
|
-
}
|
|
10180
|
-
) }),
|
|
10181
|
-
/* @__PURE__ */ jsxs41("div", { className: "flex flex-col items-start w-full max-w-md", children: [
|
|
10182
|
-
/* @__PURE__ */ jsx53("div", { className: "flex flex-row justify-between items-end px-6 pt-6 pb-4 w-full rounded-t-xl", children: /* @__PURE__ */ jsx53(
|
|
10183
|
-
Text_default,
|
|
10184
|
-
{
|
|
10185
|
-
as: "h2",
|
|
10186
|
-
className: "text-text-950 font-semibold text-3xl leading-tight w-full flex items-center",
|
|
10187
|
-
children: displayTitle
|
|
10188
|
-
}
|
|
10189
|
-
) }),
|
|
10190
|
-
/* @__PURE__ */ jsx53("div", { className: "flex flex-row justify-center items-center px-6 gap-2 w-full", children: /* @__PURE__ */ jsx53(Text_default, { className: "text-text-600 font-normal text-lg leading-relaxed w-full text-justify", children: displayDescription }) })
|
|
10191
|
-
] })
|
|
10192
|
-
] });
|
|
10193
|
-
};
|
|
10194
|
-
var NoSearchResult_default = NoSearchResult;
|
|
10195
|
-
|
|
10196
10314
|
// src/components/VideoPlayer/VideoPlayer.tsx
|
|
10197
10315
|
import {
|
|
10198
10316
|
useRef as useRef11,
|
|
@@ -11669,10 +11787,10 @@ CardAccordation.displayName = "CardAccordation";
|
|
|
11669
11787
|
|
|
11670
11788
|
// src/components/Accordation/AccordionGroup.tsx
|
|
11671
11789
|
import {
|
|
11672
|
-
Children as
|
|
11673
|
-
cloneElement as
|
|
11790
|
+
Children as Children7,
|
|
11791
|
+
cloneElement as cloneElement8,
|
|
11674
11792
|
forwardRef as forwardRef19,
|
|
11675
|
-
isValidElement as
|
|
11793
|
+
isValidElement as isValidElement7,
|
|
11676
11794
|
useEffect as useEffect25,
|
|
11677
11795
|
useRef as useRef12,
|
|
11678
11796
|
useState as useState24
|
|
@@ -11696,8 +11814,8 @@ function createAccordionGroupStore(type, initialValue, collapsible) {
|
|
|
11696
11814
|
}));
|
|
11697
11815
|
}
|
|
11698
11816
|
var injectStore6 = (children, store, indexRef, onItemToggle) => {
|
|
11699
|
-
return
|
|
11700
|
-
if (!
|
|
11817
|
+
return Children7.map(children, (child) => {
|
|
11818
|
+
if (!isValidElement7(child)) {
|
|
11701
11819
|
return child;
|
|
11702
11820
|
}
|
|
11703
11821
|
const typedChild = child;
|
|
@@ -11724,11 +11842,11 @@ var injectStore6 = (children, store, indexRef, onItemToggle) => {
|
|
|
11724
11842
|
if (displayName === "CardAccordation") {
|
|
11725
11843
|
newProps.children = processedChildren;
|
|
11726
11844
|
} else if (processedChildren !== typedChild.props.children) {
|
|
11727
|
-
return
|
|
11845
|
+
return cloneElement8(typedChild, { children: processedChildren });
|
|
11728
11846
|
}
|
|
11729
11847
|
}
|
|
11730
11848
|
if (Object.keys(newProps).length > 0) {
|
|
11731
|
-
return
|
|
11849
|
+
return cloneElement8(typedChild, newProps);
|
|
11732
11850
|
}
|
|
11733
11851
|
return child;
|
|
11734
11852
|
});
|