analytica-frontend-lib 1.2.13 → 1.2.14
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/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 +763 -652
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +803 -689
- 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
|
@@ -2770,10 +2770,44 @@ import {
|
|
|
2770
2770
|
forwardRef as forwardRef8,
|
|
2771
2771
|
useState as useState8,
|
|
2772
2772
|
useMemo as useMemo6,
|
|
2773
|
-
useEffect as useEffect7
|
|
2773
|
+
useEffect as useEffect7,
|
|
2774
|
+
Children as Children2,
|
|
2775
|
+
isValidElement as isValidElement2,
|
|
2776
|
+
cloneElement as cloneElement2
|
|
2774
2777
|
} from "react";
|
|
2775
2778
|
import { CaretUp, CaretDown } from "phosphor-react";
|
|
2779
|
+
|
|
2780
|
+
// src/components/NoSearchResult/NoSearchResult.tsx
|
|
2776
2781
|
import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2782
|
+
var NoSearchResult = ({ image, title, description }) => {
|
|
2783
|
+
const displayTitle = title || "Nenhum resultado encontrado";
|
|
2784
|
+
const displayDescription = description || "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave.";
|
|
2785
|
+
return /* @__PURE__ */ jsxs17("div", { className: "flex flex-row justify-center items-center gap-8 w-full max-w-4xl min-h-96", children: [
|
|
2786
|
+
/* @__PURE__ */ jsx22("div", { className: "w-72 h-72 flex-shrink-0 relative", children: /* @__PURE__ */ jsx22(
|
|
2787
|
+
"img",
|
|
2788
|
+
{
|
|
2789
|
+
src: image,
|
|
2790
|
+
alt: "No search results",
|
|
2791
|
+
className: "w-full h-full object-contain"
|
|
2792
|
+
}
|
|
2793
|
+
) }),
|
|
2794
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex flex-col items-start w-full max-w-md", children: [
|
|
2795
|
+
/* @__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(
|
|
2796
|
+
Text_default,
|
|
2797
|
+
{
|
|
2798
|
+
as: "h2",
|
|
2799
|
+
className: "text-text-950 font-semibold text-3xl leading-tight w-full flex items-center",
|
|
2800
|
+
children: displayTitle
|
|
2801
|
+
}
|
|
2802
|
+
) }),
|
|
2803
|
+
/* @__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 }) })
|
|
2804
|
+
] })
|
|
2805
|
+
] });
|
|
2806
|
+
};
|
|
2807
|
+
var NoSearchResult_default = NoSearchResult;
|
|
2808
|
+
|
|
2809
|
+
// src/components/Table/Table.tsx
|
|
2810
|
+
import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2777
2811
|
function useTableSort(data, options = {}) {
|
|
2778
2812
|
const { syncWithUrl = false } = options;
|
|
2779
2813
|
const getInitialState = () => {
|
|
@@ -2844,33 +2878,142 @@ function useTableSort(data, options = {}) {
|
|
|
2844
2878
|
return { sortedData, sortColumn, sortDirection, handleSort };
|
|
2845
2879
|
}
|
|
2846
2880
|
var Table = forwardRef8(
|
|
2847
|
-
({
|
|
2848
|
-
"
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2881
|
+
({
|
|
2882
|
+
variant = "default",
|
|
2883
|
+
className,
|
|
2884
|
+
children,
|
|
2885
|
+
searchTerm,
|
|
2886
|
+
noSearchResultImage,
|
|
2887
|
+
noSearchResultTitle = "Nenhum resultado encontrado",
|
|
2888
|
+
noSearchResultDescription = "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave.",
|
|
2889
|
+
emptyStateMessage = "Nenhum dado dispon\xEDvel no momento.",
|
|
2890
|
+
emptyStateButtonText = "Adicionar item",
|
|
2891
|
+
onEmptyStateButtonClick,
|
|
2892
|
+
...props
|
|
2893
|
+
}, ref) => {
|
|
2894
|
+
const isTableBodyEmpty = useMemo6(() => {
|
|
2895
|
+
let foundBody = false;
|
|
2896
|
+
let empty = true;
|
|
2897
|
+
Children2.forEach(children, (child) => {
|
|
2898
|
+
if (isValidElement2(child) && child.type === TableBody) {
|
|
2899
|
+
foundBody = true;
|
|
2900
|
+
const bodyProps = child.props;
|
|
2901
|
+
if (Children2.count(bodyProps?.children) > 0) {
|
|
2902
|
+
empty = false;
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
});
|
|
2906
|
+
return foundBody ? empty : false;
|
|
2907
|
+
}, [children]);
|
|
2908
|
+
const columnCount = useMemo6(() => {
|
|
2909
|
+
let count = 0;
|
|
2910
|
+
Children2.forEach(children, (child) => {
|
|
2911
|
+
if (isValidElement2(child) && child.type === TableHeader) {
|
|
2912
|
+
const headerProps = child.props;
|
|
2913
|
+
Children2.forEach(headerProps.children, (row) => {
|
|
2914
|
+
if (isValidElement2(row) && row.type === TableRow) {
|
|
2915
|
+
const rowProps = row.props;
|
|
2916
|
+
count = Children2.count(rowProps.children);
|
|
2917
|
+
}
|
|
2918
|
+
});
|
|
2919
|
+
}
|
|
2920
|
+
});
|
|
2921
|
+
return count || 1;
|
|
2922
|
+
}, [children]);
|
|
2923
|
+
const hasSearchTerm = searchTerm && searchTerm.trim() !== "";
|
|
2924
|
+
const showNoSearchResult = hasSearchTerm && isTableBodyEmpty;
|
|
2925
|
+
const showEmptyState = !hasSearchTerm && isTableBodyEmpty;
|
|
2926
|
+
if (showNoSearchResult) {
|
|
2927
|
+
return /* @__PURE__ */ jsxs18(
|
|
2928
|
+
"div",
|
|
2856
2929
|
{
|
|
2857
|
-
ref,
|
|
2858
2930
|
className: cn(
|
|
2859
|
-
"
|
|
2860
|
-
|
|
2931
|
+
"relative w-full overflow-x-auto",
|
|
2932
|
+
variant === "default" && "border border-border-200 rounded-xl"
|
|
2861
2933
|
),
|
|
2862
|
-
...props,
|
|
2863
2934
|
children: [
|
|
2864
|
-
/* @__PURE__ */
|
|
2865
|
-
|
|
2935
|
+
/* @__PURE__ */ jsx23(
|
|
2936
|
+
"table",
|
|
2937
|
+
{
|
|
2938
|
+
ref,
|
|
2939
|
+
className: cn(
|
|
2940
|
+
"analytica-table w-full caption-bottom text-sm border-separate border-spacing-0",
|
|
2941
|
+
className
|
|
2942
|
+
),
|
|
2943
|
+
...props,
|
|
2944
|
+
children: Children2.map(children, (child) => {
|
|
2945
|
+
if (isValidElement2(child) && (child.type === TableCaption || child.type === TableHeader)) {
|
|
2946
|
+
return child;
|
|
2947
|
+
}
|
|
2948
|
+
return null;
|
|
2949
|
+
})
|
|
2950
|
+
}
|
|
2951
|
+
),
|
|
2952
|
+
/* @__PURE__ */ jsx23("div", { className: "py-8 flex justify-center", children: noSearchResultImage ? /* @__PURE__ */ jsx23(
|
|
2953
|
+
NoSearchResult_default,
|
|
2954
|
+
{
|
|
2955
|
+
image: noSearchResultImage,
|
|
2956
|
+
title: noSearchResultTitle,
|
|
2957
|
+
description: noSearchResultDescription
|
|
2958
|
+
}
|
|
2959
|
+
) : /* @__PURE__ */ jsxs18("div", { className: "text-center", children: [
|
|
2960
|
+
/* @__PURE__ */ jsx23("p", { className: "text-text-600 text-lg font-semibold mb-2", children: noSearchResultTitle }),
|
|
2961
|
+
/* @__PURE__ */ jsx23("p", { className: "text-text-500 text-sm", children: noSearchResultDescription })
|
|
2962
|
+
] }) })
|
|
2866
2963
|
]
|
|
2867
2964
|
}
|
|
2868
|
-
)
|
|
2965
|
+
);
|
|
2869
2966
|
}
|
|
2870
|
-
|
|
2967
|
+
const modifiedChildren = Children2.map(children, (child) => {
|
|
2968
|
+
if (isValidElement2(child) && child.type === TableBody && showEmptyState) {
|
|
2969
|
+
return cloneElement2(child, {
|
|
2970
|
+
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: [
|
|
2971
|
+
/* @__PURE__ */ jsx23("p", { className: "text-text-600 text-base font-normal", children: emptyStateMessage }),
|
|
2972
|
+
onEmptyStateButtonClick && /* @__PURE__ */ jsx23(
|
|
2973
|
+
Button_default,
|
|
2974
|
+
{
|
|
2975
|
+
variant: "solid",
|
|
2976
|
+
action: "primary",
|
|
2977
|
+
size: "medium",
|
|
2978
|
+
onClick: onEmptyStateButtonClick,
|
|
2979
|
+
children: emptyStateButtonText
|
|
2980
|
+
}
|
|
2981
|
+
)
|
|
2982
|
+
] }) }) })
|
|
2983
|
+
});
|
|
2984
|
+
}
|
|
2985
|
+
return child;
|
|
2986
|
+
});
|
|
2987
|
+
return /* @__PURE__ */ jsx23(
|
|
2988
|
+
"div",
|
|
2989
|
+
{
|
|
2990
|
+
className: cn(
|
|
2991
|
+
"relative w-full overflow-x-auto",
|
|
2992
|
+
variant === "default" && "border border-border-200 rounded-xl"
|
|
2993
|
+
),
|
|
2994
|
+
children: /* @__PURE__ */ jsxs18(
|
|
2995
|
+
"table",
|
|
2996
|
+
{
|
|
2997
|
+
ref,
|
|
2998
|
+
className: cn(
|
|
2999
|
+
"analytica-table w-full caption-bottom text-sm border-separate border-spacing-0",
|
|
3000
|
+
className
|
|
3001
|
+
),
|
|
3002
|
+
...props,
|
|
3003
|
+
children: [
|
|
3004
|
+
!Children2.toArray(children).some(
|
|
3005
|
+
(child) => isValidElement2(child) && child.type === TableCaption
|
|
3006
|
+
) && /* @__PURE__ */ jsx23("caption", { className: "sr-only", children: "My Table" }),
|
|
3007
|
+
modifiedChildren
|
|
3008
|
+
]
|
|
3009
|
+
}
|
|
3010
|
+
)
|
|
3011
|
+
}
|
|
3012
|
+
);
|
|
3013
|
+
}
|
|
2871
3014
|
);
|
|
2872
3015
|
Table.displayName = "Table";
|
|
2873
|
-
var TableHeader = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3016
|
+
var TableHeader = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2874
3017
|
"thead",
|
|
2875
3018
|
{
|
|
2876
3019
|
ref,
|
|
@@ -2880,7 +3023,7 @@ var TableHeader = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
2880
3023
|
));
|
|
2881
3024
|
TableHeader.displayName = "TableHeader";
|
|
2882
3025
|
var TableBody = forwardRef8(
|
|
2883
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
3026
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2884
3027
|
"tbody",
|
|
2885
3028
|
{
|
|
2886
3029
|
ref,
|
|
@@ -2891,7 +3034,7 @@ var TableBody = forwardRef8(
|
|
|
2891
3034
|
);
|
|
2892
3035
|
TableBody.displayName = "TableBody";
|
|
2893
3036
|
var TableFooter = forwardRef8(
|
|
2894
|
-
({ variant = "default", className, ...props }, ref) => /* @__PURE__ */
|
|
3037
|
+
({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2895
3038
|
"tfoot",
|
|
2896
3039
|
{
|
|
2897
3040
|
ref,
|
|
@@ -2931,14 +3074,14 @@ var TableRow = forwardRef8(
|
|
|
2931
3074
|
className,
|
|
2932
3075
|
...props
|
|
2933
3076
|
}, ref) => {
|
|
2934
|
-
return /* @__PURE__ */
|
|
3077
|
+
return /* @__PURE__ */ jsx23(
|
|
2935
3078
|
"tr",
|
|
2936
3079
|
{
|
|
2937
3080
|
ref,
|
|
2938
3081
|
className: cn(
|
|
2939
3082
|
"transition-colors",
|
|
2940
|
-
state
|
|
2941
|
-
|
|
3083
|
+
state === "disabled" ? "" : "hover:bg-muted/50",
|
|
3084
|
+
state === "disabled" || !clickable ? "" : "cursor-pointer",
|
|
2942
3085
|
VARIANT_STATES_ROW[state][variant],
|
|
2943
3086
|
className
|
|
2944
3087
|
),
|
|
@@ -2963,7 +3106,7 @@ var TableHead = forwardRef8(
|
|
|
2963
3106
|
onSort();
|
|
2964
3107
|
}
|
|
2965
3108
|
};
|
|
2966
|
-
return /* @__PURE__ */
|
|
3109
|
+
return /* @__PURE__ */ jsx23(
|
|
2967
3110
|
"th",
|
|
2968
3111
|
{
|
|
2969
3112
|
ref,
|
|
@@ -2974,11 +3117,11 @@ var TableHead = forwardRef8(
|
|
|
2974
3117
|
),
|
|
2975
3118
|
onClick: handleClick,
|
|
2976
3119
|
...props,
|
|
2977
|
-
children: /* @__PURE__ */
|
|
3120
|
+
children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
|
|
2978
3121
|
children,
|
|
2979
|
-
sortable && /* @__PURE__ */
|
|
2980
|
-
sortDirection === "asc" && /* @__PURE__ */
|
|
2981
|
-
sortDirection === "desc" && /* @__PURE__ */
|
|
3122
|
+
sortable && /* @__PURE__ */ jsxs18("div", { className: "flex flex-col", children: [
|
|
3123
|
+
sortDirection === "asc" && /* @__PURE__ */ jsx23(CaretUp, { size: 16, weight: "fill", className: "text-text-800" }),
|
|
3124
|
+
sortDirection === "desc" && /* @__PURE__ */ jsx23(CaretDown, { size: 16, weight: "fill", className: "text-text-800" })
|
|
2982
3125
|
] })
|
|
2983
3126
|
] })
|
|
2984
3127
|
}
|
|
@@ -2986,7 +3129,7 @@ var TableHead = forwardRef8(
|
|
|
2986
3129
|
}
|
|
2987
3130
|
);
|
|
2988
3131
|
TableHead.displayName = "TableHead";
|
|
2989
|
-
var TableCell = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3132
|
+
var TableCell = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2990
3133
|
"td",
|
|
2991
3134
|
{
|
|
2992
3135
|
ref,
|
|
@@ -2998,7 +3141,7 @@ var TableCell = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */ js
|
|
|
2998
3141
|
}
|
|
2999
3142
|
));
|
|
3000
3143
|
TableCell.displayName = "TableCell";
|
|
3001
|
-
var TableCaption = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3144
|
+
var TableCaption = forwardRef8(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
3002
3145
|
"caption",
|
|
3003
3146
|
{
|
|
3004
3147
|
ref,
|
|
@@ -3014,7 +3157,7 @@ var Table_default = Table;
|
|
|
3014
3157
|
|
|
3015
3158
|
// src/components/AlertManagerView/AlertsManagerView.tsx
|
|
3016
3159
|
import { CaretLeft as CaretLeft2, CaretRight as CaretRight2, User } from "phosphor-react";
|
|
3017
|
-
import { Fragment, jsx as
|
|
3160
|
+
import { Fragment, jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3018
3161
|
var AlertsManagerView = ({
|
|
3019
3162
|
alertData,
|
|
3020
3163
|
isOpen = false,
|
|
@@ -3057,7 +3200,7 @@ var AlertsManagerView = ({
|
|
|
3057
3200
|
year: "numeric"
|
|
3058
3201
|
});
|
|
3059
3202
|
};
|
|
3060
|
-
return /* @__PURE__ */
|
|
3203
|
+
return /* @__PURE__ */ jsx24(
|
|
3061
3204
|
Modal_default,
|
|
3062
3205
|
{
|
|
3063
3206
|
isOpen,
|
|
@@ -3065,59 +3208,59 @@ var AlertsManagerView = ({
|
|
|
3065
3208
|
title: alertData.title,
|
|
3066
3209
|
size: "md",
|
|
3067
3210
|
contentClassName: "p-0",
|
|
3068
|
-
children: /* @__PURE__ */
|
|
3069
|
-
/* @__PURE__ */
|
|
3070
|
-
/* @__PURE__ */
|
|
3211
|
+
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: [
|
|
3212
|
+
/* @__PURE__ */ jsxs19("div", { className: "bg-background-50 px-5 py-6 flex flex-col items-center gap-4 rounded-xl mb-4", children: [
|
|
3213
|
+
/* @__PURE__ */ jsx24(
|
|
3071
3214
|
"img",
|
|
3072
3215
|
{
|
|
3073
3216
|
src: imageUrl || notification_default,
|
|
3074
3217
|
alt: alertData.title || "Imagem do alerta"
|
|
3075
3218
|
}
|
|
3076
3219
|
),
|
|
3077
|
-
/* @__PURE__ */
|
|
3078
|
-
/* @__PURE__ */
|
|
3079
|
-
/* @__PURE__ */
|
|
3220
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex flex-col items-center text-center gap-3", children: [
|
|
3221
|
+
/* @__PURE__ */ jsx24(Text_default, { size: "lg", weight: "semibold", children: alertData.title || "Sem T\xEDtulo" }),
|
|
3222
|
+
/* @__PURE__ */ jsx24(Text_default, { size: "sm", weight: "normal", className: "text-text-500", children: alertData.message || "Sem mensagem" })
|
|
3080
3223
|
] })
|
|
3081
3224
|
] }),
|
|
3082
|
-
/* @__PURE__ */
|
|
3083
|
-
/* @__PURE__ */
|
|
3084
|
-
/* @__PURE__ */
|
|
3085
|
-
/* @__PURE__ */
|
|
3225
|
+
/* @__PURE__ */ jsx24(Divider_default, { className: "my-4" }),
|
|
3226
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex justify-between items-center mb-4 px-2", children: [
|
|
3227
|
+
/* @__PURE__ */ jsx24(Text_default, { size: "sm", weight: "bold", className: "text-text-700", children: "Enviado em" }),
|
|
3228
|
+
/* @__PURE__ */ jsx24(Text_default, { size: "sm", weight: "medium", className: "text-text-900", children: formatDate(alertData.sentAt) })
|
|
3086
3229
|
] }),
|
|
3087
|
-
/* @__PURE__ */
|
|
3088
|
-
/* @__PURE__ */
|
|
3089
|
-
/* @__PURE__ */
|
|
3090
|
-
/* @__PURE__ */
|
|
3091
|
-
/* @__PURE__ */
|
|
3230
|
+
/* @__PURE__ */ jsx24(Divider_default, { className: "my-4" }),
|
|
3231
|
+
/* @__PURE__ */ jsx24("div", { className: "mb-4", children: /* @__PURE__ */ jsxs19(Table_default, { variant: "borderless", className: "table-fixed", children: [
|
|
3232
|
+
/* @__PURE__ */ jsx24(TableHeader, { children: /* @__PURE__ */ jsxs19(TableRow, { variant: "borderless", children: [
|
|
3233
|
+
/* @__PURE__ */ jsx24(TableHead, { className: "py-2 px-3.5 text-start", children: "Destinat\xE1rio" }),
|
|
3234
|
+
/* @__PURE__ */ jsx24(TableHead, { className: "py-2 px-3.5 w-[120px] text-start", children: "Status" })
|
|
3092
3235
|
] }) }),
|
|
3093
|
-
/* @__PURE__ */
|
|
3094
|
-
/* @__PURE__ */
|
|
3095
|
-
/* @__PURE__ */
|
|
3236
|
+
/* @__PURE__ */ jsx24(TableBody, { variant: "borderless", children: paginatedRecipients.map((recipient) => /* @__PURE__ */ jsxs19(TableRow, { children: [
|
|
3237
|
+
/* @__PURE__ */ jsxs19(TableCell, { className: "py-2 px-3.5 flex flex-row gap-2 text-start truncate", children: [
|
|
3238
|
+
/* @__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
3239
|
recipient.name
|
|
3097
3240
|
] }),
|
|
3098
|
-
/* @__PURE__ */
|
|
3241
|
+
/* @__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
3242
|
] }, recipient.id)) })
|
|
3100
3243
|
] }) }),
|
|
3101
|
-
totalPages > 1 && /* @__PURE__ */
|
|
3102
|
-
/* @__PURE__ */
|
|
3244
|
+
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: [
|
|
3245
|
+
/* @__PURE__ */ jsxs19(Text_default, { size: "sm", className: "text-text-600", children: [
|
|
3103
3246
|
"P\xE1gina ",
|
|
3104
3247
|
effectiveCurrentPage,
|
|
3105
3248
|
" de ",
|
|
3106
3249
|
totalPages
|
|
3107
3250
|
] }),
|
|
3108
|
-
/* @__PURE__ */
|
|
3109
|
-
/* @__PURE__ */
|
|
3251
|
+
/* @__PURE__ */ jsx24("div", { className: "flex gap-2", children: onPageChange ? /* @__PURE__ */ jsxs19(Fragment, { children: [
|
|
3252
|
+
/* @__PURE__ */ jsx24(
|
|
3110
3253
|
Button_default,
|
|
3111
3254
|
{
|
|
3112
3255
|
variant: "link",
|
|
3113
3256
|
size: "extra-small",
|
|
3114
3257
|
onClick: () => onPageChange(Math.max(1, effectiveCurrentPage - 1)),
|
|
3115
3258
|
disabled: effectiveCurrentPage === 1,
|
|
3116
|
-
iconLeft: /* @__PURE__ */
|
|
3259
|
+
iconLeft: /* @__PURE__ */ jsx24(CaretLeft2, {}),
|
|
3117
3260
|
children: "Anterior"
|
|
3118
3261
|
}
|
|
3119
3262
|
),
|
|
3120
|
-
/* @__PURE__ */
|
|
3263
|
+
/* @__PURE__ */ jsx24(
|
|
3121
3264
|
Button_default,
|
|
3122
3265
|
{
|
|
3123
3266
|
variant: "link",
|
|
@@ -3126,28 +3269,28 @@ var AlertsManagerView = ({
|
|
|
3126
3269
|
Math.min(totalPages, effectiveCurrentPage + 1)
|
|
3127
3270
|
),
|
|
3128
3271
|
disabled: effectiveCurrentPage === totalPages,
|
|
3129
|
-
iconRight: /* @__PURE__ */
|
|
3272
|
+
iconRight: /* @__PURE__ */ jsx24(CaretRight2, {}),
|
|
3130
3273
|
children: "Pr\xF3ximo"
|
|
3131
3274
|
}
|
|
3132
3275
|
)
|
|
3133
|
-
] }) : /* @__PURE__ */
|
|
3134
|
-
/* @__PURE__ */
|
|
3276
|
+
] }) : /* @__PURE__ */ jsxs19(Fragment, { children: [
|
|
3277
|
+
/* @__PURE__ */ jsx24(
|
|
3135
3278
|
Button_default,
|
|
3136
3279
|
{
|
|
3137
3280
|
variant: "link",
|
|
3138
3281
|
size: "extra-small",
|
|
3139
3282
|
disabled: effectiveCurrentPage === 1,
|
|
3140
|
-
iconLeft: /* @__PURE__ */
|
|
3283
|
+
iconLeft: /* @__PURE__ */ jsx24(CaretLeft2, {}),
|
|
3141
3284
|
children: "Anterior"
|
|
3142
3285
|
}
|
|
3143
3286
|
),
|
|
3144
|
-
/* @__PURE__ */
|
|
3287
|
+
/* @__PURE__ */ jsx24(
|
|
3145
3288
|
Button_default,
|
|
3146
3289
|
{
|
|
3147
3290
|
variant: "link",
|
|
3148
3291
|
size: "extra-small",
|
|
3149
3292
|
disabled: effectiveCurrentPage === totalPages,
|
|
3150
|
-
iconRight: /* @__PURE__ */
|
|
3293
|
+
iconRight: /* @__PURE__ */ jsx24(CaretRight2, {}),
|
|
3151
3294
|
children: "Pr\xF3ximo"
|
|
3152
3295
|
}
|
|
3153
3296
|
)
|
|
@@ -3165,12 +3308,12 @@ import {
|
|
|
3165
3308
|
useId as useId6,
|
|
3166
3309
|
useEffect as useEffect9,
|
|
3167
3310
|
useRef as useRef4,
|
|
3168
|
-
Children as
|
|
3169
|
-
cloneElement as
|
|
3170
|
-
isValidElement as
|
|
3311
|
+
Children as Children3,
|
|
3312
|
+
cloneElement as cloneElement3,
|
|
3313
|
+
isValidElement as isValidElement3
|
|
3171
3314
|
} from "react";
|
|
3172
3315
|
import { create as create3, useStore as useStore2 } from "zustand";
|
|
3173
|
-
import { jsx as
|
|
3316
|
+
import { jsx as jsx25, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3174
3317
|
var SIZE_CLASSES7 = {
|
|
3175
3318
|
small: {
|
|
3176
3319
|
radio: "w-5 h-5",
|
|
@@ -3309,8 +3452,8 @@ var Radio = forwardRef9(
|
|
|
3309
3452
|
const getCursorClass = () => {
|
|
3310
3453
|
return currentState === "disabled" ? "cursor-not-allowed" : "cursor-pointer";
|
|
3311
3454
|
};
|
|
3312
|
-
return /* @__PURE__ */
|
|
3313
|
-
/* @__PURE__ */
|
|
3455
|
+
return /* @__PURE__ */ jsxs20("div", { className: "flex flex-col", children: [
|
|
3456
|
+
/* @__PURE__ */ jsxs20(
|
|
3314
3457
|
"div",
|
|
3315
3458
|
{
|
|
3316
3459
|
className: cn(
|
|
@@ -3319,7 +3462,7 @@ var Radio = forwardRef9(
|
|
|
3319
3462
|
disabled ? "opacity-40" : ""
|
|
3320
3463
|
),
|
|
3321
3464
|
children: [
|
|
3322
|
-
/* @__PURE__ */
|
|
3465
|
+
/* @__PURE__ */ jsx25(
|
|
3323
3466
|
"input",
|
|
3324
3467
|
{
|
|
3325
3468
|
ref: (node) => {
|
|
@@ -3343,7 +3486,7 @@ var Radio = forwardRef9(
|
|
|
3343
3486
|
...props
|
|
3344
3487
|
}
|
|
3345
3488
|
),
|
|
3346
|
-
/* @__PURE__ */
|
|
3489
|
+
/* @__PURE__ */ jsx25(
|
|
3347
3490
|
"button",
|
|
3348
3491
|
{
|
|
3349
3492
|
type: "button",
|
|
@@ -3368,10 +3511,10 @@ var Radio = forwardRef9(
|
|
|
3368
3511
|
}
|
|
3369
3512
|
}
|
|
3370
3513
|
},
|
|
3371
|
-
children: checked && /* @__PURE__ */
|
|
3514
|
+
children: checked && /* @__PURE__ */ jsx25("div", { className: dotClasses })
|
|
3372
3515
|
}
|
|
3373
3516
|
),
|
|
3374
|
-
label && /* @__PURE__ */
|
|
3517
|
+
label && /* @__PURE__ */ jsx25(
|
|
3375
3518
|
"div",
|
|
3376
3519
|
{
|
|
3377
3520
|
className: cn(
|
|
@@ -3379,7 +3522,7 @@ var Radio = forwardRef9(
|
|
|
3379
3522
|
sizeClasses.labelHeight,
|
|
3380
3523
|
"flex-1 min-w-0"
|
|
3381
3524
|
),
|
|
3382
|
-
children: /* @__PURE__ */
|
|
3525
|
+
children: /* @__PURE__ */ jsx25(
|
|
3383
3526
|
Text_default,
|
|
3384
3527
|
{
|
|
3385
3528
|
as: "label",
|
|
@@ -3400,7 +3543,7 @@ var Radio = forwardRef9(
|
|
|
3400
3543
|
]
|
|
3401
3544
|
}
|
|
3402
3545
|
),
|
|
3403
|
-
errorMessage && /* @__PURE__ */
|
|
3546
|
+
errorMessage && /* @__PURE__ */ jsx25(
|
|
3404
3547
|
Text_default,
|
|
3405
3548
|
{
|
|
3406
3549
|
size: "sm",
|
|
@@ -3410,7 +3553,7 @@ var Radio = forwardRef9(
|
|
|
3410
3553
|
children: errorMessage
|
|
3411
3554
|
}
|
|
3412
3555
|
),
|
|
3413
|
-
helperText && !errorMessage && /* @__PURE__ */
|
|
3556
|
+
helperText && !errorMessage && /* @__PURE__ */ jsx25(
|
|
3414
3557
|
Text_default,
|
|
3415
3558
|
{
|
|
3416
3559
|
size: "sm",
|
|
@@ -3442,11 +3585,11 @@ var useRadioGroupStore = (externalStore) => {
|
|
|
3442
3585
|
}
|
|
3443
3586
|
return externalStore;
|
|
3444
3587
|
};
|
|
3445
|
-
var injectStore2 = (children, store) =>
|
|
3446
|
-
if (!
|
|
3588
|
+
var injectStore2 = (children, store) => Children3.map(children, (child) => {
|
|
3589
|
+
if (!isValidElement3(child)) return child;
|
|
3447
3590
|
const typedChild = child;
|
|
3448
3591
|
const shouldInject = typedChild.type === RadioGroupItem;
|
|
3449
|
-
return
|
|
3592
|
+
return cloneElement3(typedChild, {
|
|
3450
3593
|
...shouldInject ? { store } : {},
|
|
3451
3594
|
...typedChild.props.children ? { children: injectStore2(typedChild.props.children, store) } : {}
|
|
3452
3595
|
});
|
|
@@ -3487,7 +3630,7 @@ var RadioGroup = forwardRef9(
|
|
|
3487
3630
|
useEffect9(() => {
|
|
3488
3631
|
store.setState({ disabled });
|
|
3489
3632
|
}, [disabled, store]);
|
|
3490
|
-
return /* @__PURE__ */
|
|
3633
|
+
return /* @__PURE__ */ jsx25(
|
|
3491
3634
|
"div",
|
|
3492
3635
|
{
|
|
3493
3636
|
ref,
|
|
@@ -3524,7 +3667,7 @@ var RadioGroupItem = forwardRef9(
|
|
|
3524
3667
|
const isChecked = groupValue === value;
|
|
3525
3668
|
const isDisabled = groupDisabled || itemDisabled;
|
|
3526
3669
|
const currentState = isDisabled ? "disabled" : state;
|
|
3527
|
-
return /* @__PURE__ */
|
|
3670
|
+
return /* @__PURE__ */ jsx25(
|
|
3528
3671
|
Radio,
|
|
3529
3672
|
{
|
|
3530
3673
|
ref,
|
|
@@ -3551,7 +3694,7 @@ var Radio_default = Radio;
|
|
|
3551
3694
|
|
|
3552
3695
|
// src/components/Toast/Toast.tsx
|
|
3553
3696
|
import { CheckCircle as CheckCircle2, WarningCircle as WarningCircle4, Info as Info2, X as X3 } from "phosphor-react";
|
|
3554
|
-
import { jsx as
|
|
3697
|
+
import { jsx as jsx26, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3555
3698
|
var VARIANT_ACTION_CLASSES4 = {
|
|
3556
3699
|
solid: {
|
|
3557
3700
|
warning: "bg-warning text-warning-600 border-none focus-visible:outline-none",
|
|
@@ -3591,7 +3734,7 @@ var Toast = ({
|
|
|
3591
3734
|
};
|
|
3592
3735
|
const IconAction = iconMap[action] || iconMap["success"];
|
|
3593
3736
|
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__ */
|
|
3737
|
+
return /* @__PURE__ */ jsxs21(
|
|
3595
3738
|
"div",
|
|
3596
3739
|
{
|
|
3597
3740
|
role: "alert",
|
|
@@ -3605,20 +3748,20 @@ var Toast = ({
|
|
|
3605
3748
|
),
|
|
3606
3749
|
...props,
|
|
3607
3750
|
children: [
|
|
3608
|
-
/* @__PURE__ */
|
|
3609
|
-
/* @__PURE__ */
|
|
3610
|
-
/* @__PURE__ */
|
|
3611
|
-
/* @__PURE__ */
|
|
3612
|
-
description && /* @__PURE__ */
|
|
3751
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-row items-start gap-3", children: [
|
|
3752
|
+
/* @__PURE__ */ jsx26("span", { className: "mt-1", "data-testid": `toast-icon-${action}`, children: /* @__PURE__ */ jsx26(IconAction, {}) }),
|
|
3753
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-col items-start justify-start", children: [
|
|
3754
|
+
/* @__PURE__ */ jsx26("p", { className: "font-semibold text-md", children: title }),
|
|
3755
|
+
description && /* @__PURE__ */ jsx26("p", { className: "text-md text-text-900", children: description })
|
|
3613
3756
|
] })
|
|
3614
3757
|
] }),
|
|
3615
|
-
/* @__PURE__ */
|
|
3758
|
+
/* @__PURE__ */ jsx26(
|
|
3616
3759
|
"button",
|
|
3617
3760
|
{
|
|
3618
3761
|
onClick: onClose,
|
|
3619
3762
|
"aria-label": "Dismiss notification",
|
|
3620
3763
|
className: "text-background-500 cursor-pointer opacity-0 group-hover:opacity-100 transition-opacity",
|
|
3621
|
-
children: /* @__PURE__ */
|
|
3764
|
+
children: /* @__PURE__ */ jsx26(X3, {})
|
|
3622
3765
|
}
|
|
3623
3766
|
)
|
|
3624
3767
|
]
|
|
@@ -3646,11 +3789,11 @@ var useToastStore = create4((set) => ({
|
|
|
3646
3789
|
var ToastStore_default = useToastStore;
|
|
3647
3790
|
|
|
3648
3791
|
// src/components/Toast/utils/Toaster.tsx
|
|
3649
|
-
import { Fragment as Fragment2, jsx as
|
|
3792
|
+
import { Fragment as Fragment2, jsx as jsx27 } from "react/jsx-runtime";
|
|
3650
3793
|
var Toaster = () => {
|
|
3651
3794
|
const toasts = ToastStore_default((state) => state.toasts);
|
|
3652
3795
|
const removeToast = ToastStore_default((state) => state.removeToast);
|
|
3653
|
-
return /* @__PURE__ */
|
|
3796
|
+
return /* @__PURE__ */ jsx27(Fragment2, { children: toasts.map((toast) => /* @__PURE__ */ jsx27(
|
|
3654
3797
|
Toast_default,
|
|
3655
3798
|
{
|
|
3656
3799
|
title: toast.title,
|
|
@@ -3682,9 +3825,9 @@ import {
|
|
|
3682
3825
|
forwardRef as forwardRef10,
|
|
3683
3826
|
useEffect as useEffect12,
|
|
3684
3827
|
useRef as useRef5,
|
|
3685
|
-
isValidElement as
|
|
3686
|
-
Children as
|
|
3687
|
-
cloneElement as
|
|
3828
|
+
isValidElement as isValidElement4,
|
|
3829
|
+
Children as Children4,
|
|
3830
|
+
cloneElement as cloneElement4,
|
|
3688
3831
|
useState as useState11
|
|
3689
3832
|
} from "react";
|
|
3690
3833
|
import { create as create6, useStore as useStore3 } from "zustand";
|
|
@@ -3815,7 +3958,7 @@ var useTheme = () => {
|
|
|
3815
3958
|
};
|
|
3816
3959
|
|
|
3817
3960
|
// src/components/ThemeToggle/ThemeToggle.tsx
|
|
3818
|
-
import { jsx as
|
|
3961
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3819
3962
|
var ThemeToggle = ({
|
|
3820
3963
|
variant = "default",
|
|
3821
3964
|
onToggle
|
|
@@ -3829,17 +3972,17 @@ var ThemeToggle = ({
|
|
|
3829
3972
|
{
|
|
3830
3973
|
id: "light",
|
|
3831
3974
|
title: "Claro",
|
|
3832
|
-
icon: /* @__PURE__ */
|
|
3975
|
+
icon: /* @__PURE__ */ jsx28(Sun, { size: 24 })
|
|
3833
3976
|
},
|
|
3834
3977
|
{
|
|
3835
3978
|
id: "dark",
|
|
3836
3979
|
title: "Escuro",
|
|
3837
|
-
icon: /* @__PURE__ */
|
|
3980
|
+
icon: /* @__PURE__ */ jsx28(Moon, { size: 24 })
|
|
3838
3981
|
},
|
|
3839
3982
|
{
|
|
3840
3983
|
id: "system",
|
|
3841
3984
|
title: "Sistema",
|
|
3842
|
-
icon: /* @__PURE__ */
|
|
3985
|
+
icon: /* @__PURE__ */ jsx28(
|
|
3843
3986
|
"svg",
|
|
3844
3987
|
{
|
|
3845
3988
|
width: "25",
|
|
@@ -3847,7 +3990,7 @@ var ThemeToggle = ({
|
|
|
3847
3990
|
viewBox: "0 0 25 25",
|
|
3848
3991
|
fill: "none",
|
|
3849
3992
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3850
|
-
children: /* @__PURE__ */
|
|
3993
|
+
children: /* @__PURE__ */ jsx28(
|
|
3851
3994
|
"path",
|
|
3852
3995
|
{
|
|
3853
3996
|
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 +4012,7 @@ var ThemeToggle = ({
|
|
|
3869
4012
|
}
|
|
3870
4013
|
};
|
|
3871
4014
|
const currentTheme = variant === "with-save" ? tempTheme : themeMode;
|
|
3872
|
-
return /* @__PURE__ */
|
|
4015
|
+
return /* @__PURE__ */ jsx28("div", { className: "flex flex-row gap-2 sm:gap-4 py-2", children: problemTypes.map((type) => /* @__PURE__ */ jsx28(
|
|
3873
4016
|
SelectionButton_default,
|
|
3874
4017
|
{
|
|
3875
4018
|
icon: type.icon,
|
|
@@ -3883,7 +4026,7 @@ var ThemeToggle = ({
|
|
|
3883
4026
|
};
|
|
3884
4027
|
|
|
3885
4028
|
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
3886
|
-
import { Fragment as Fragment3, jsx as
|
|
4029
|
+
import { Fragment as Fragment3, jsx as jsx29, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3887
4030
|
function createDropdownStore() {
|
|
3888
4031
|
return create6((set) => ({
|
|
3889
4032
|
open: false,
|
|
@@ -3899,8 +4042,8 @@ var useDropdownStore = (externalStore) => {
|
|
|
3899
4042
|
return externalStore;
|
|
3900
4043
|
};
|
|
3901
4044
|
var injectStore3 = (children, store) => {
|
|
3902
|
-
return
|
|
3903
|
-
if (
|
|
4045
|
+
return Children4.map(children, (child) => {
|
|
4046
|
+
if (isValidElement4(child)) {
|
|
3904
4047
|
const typedChild = child;
|
|
3905
4048
|
const displayName = typedChild.type.displayName;
|
|
3906
4049
|
const allowed = [
|
|
@@ -3922,7 +4065,7 @@ var injectStore3 = (children, store) => {
|
|
|
3922
4065
|
if (typedChild.props.children) {
|
|
3923
4066
|
newProps.children = injectStore3(typedChild.props.children, store);
|
|
3924
4067
|
}
|
|
3925
|
-
return
|
|
4068
|
+
return cloneElement4(typedChild, newProps);
|
|
3926
4069
|
}
|
|
3927
4070
|
return child;
|
|
3928
4071
|
});
|
|
@@ -3991,7 +4134,7 @@ var DropdownMenu = ({
|
|
|
3991
4134
|
setOpen(propOpen);
|
|
3992
4135
|
}
|
|
3993
4136
|
}, [propOpen]);
|
|
3994
|
-
return /* @__PURE__ */
|
|
4137
|
+
return /* @__PURE__ */ jsx29("div", { className: "relative", ref: menuRef, children: injectStore3(children, store) });
|
|
3995
4138
|
};
|
|
3996
4139
|
var DropdownMenuTrigger = ({
|
|
3997
4140
|
className,
|
|
@@ -4003,7 +4146,7 @@ var DropdownMenuTrigger = ({
|
|
|
4003
4146
|
const store = useDropdownStore(externalStore);
|
|
4004
4147
|
const open = useStore3(store, (s) => s.open);
|
|
4005
4148
|
const toggleOpen = () => store.setState({ open: !open });
|
|
4006
|
-
return /* @__PURE__ */
|
|
4149
|
+
return /* @__PURE__ */ jsx29(
|
|
4007
4150
|
"div",
|
|
4008
4151
|
{
|
|
4009
4152
|
onClick: (e) => {
|
|
@@ -4048,7 +4191,7 @@ var MENUCONTENT_VARIANT_CLASSES = {
|
|
|
4048
4191
|
profile: "p-6"
|
|
4049
4192
|
};
|
|
4050
4193
|
var MenuLabel = forwardRef10(({ className, inset, store: _store, ...props }, ref) => {
|
|
4051
|
-
return /* @__PURE__ */
|
|
4194
|
+
return /* @__PURE__ */ jsx29(
|
|
4052
4195
|
"div",
|
|
4053
4196
|
{
|
|
4054
4197
|
ref,
|
|
@@ -4087,7 +4230,7 @@ var DropdownMenuContent = forwardRef10(
|
|
|
4087
4230
|
return `absolute ${vertical} ${horizontal}`;
|
|
4088
4231
|
};
|
|
4089
4232
|
const variantClasses = MENUCONTENT_VARIANT_CLASSES[variant];
|
|
4090
|
-
return /* @__PURE__ */
|
|
4233
|
+
return /* @__PURE__ */ jsx29(
|
|
4091
4234
|
"div",
|
|
4092
4235
|
{
|
|
4093
4236
|
ref,
|
|
@@ -4156,7 +4299,7 @@ var DropdownMenuItem = forwardRef10(
|
|
|
4156
4299
|
const getVariantProps = () => {
|
|
4157
4300
|
return variant === "profile" ? { "data-variant": "profile" } : {};
|
|
4158
4301
|
};
|
|
4159
|
-
return /* @__PURE__ */
|
|
4302
|
+
return /* @__PURE__ */ jsxs22(
|
|
4160
4303
|
"div",
|
|
4161
4304
|
{
|
|
4162
4305
|
ref,
|
|
@@ -4182,7 +4325,7 @@ var DropdownMenuItem = forwardRef10(
|
|
|
4182
4325
|
...props,
|
|
4183
4326
|
children: [
|
|
4184
4327
|
iconLeft,
|
|
4185
|
-
/* @__PURE__ */
|
|
4328
|
+
/* @__PURE__ */ jsx29("div", { className: "w-full", children }),
|
|
4186
4329
|
iconRight
|
|
4187
4330
|
]
|
|
4188
4331
|
}
|
|
@@ -4190,7 +4333,7 @@ var DropdownMenuItem = forwardRef10(
|
|
|
4190
4333
|
}
|
|
4191
4334
|
);
|
|
4192
4335
|
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
4193
|
-
var DropdownMenuSeparator = forwardRef10(({ className, store: _store, ...props }, ref) => /* @__PURE__ */
|
|
4336
|
+
var DropdownMenuSeparator = forwardRef10(({ className, store: _store, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
4194
4337
|
"div",
|
|
4195
4338
|
{
|
|
4196
4339
|
ref,
|
|
@@ -4203,7 +4346,7 @@ var ProfileMenuTrigger = forwardRef10(({ className, onClick, store: externalStor
|
|
|
4203
4346
|
const store = useDropdownStore(externalStore);
|
|
4204
4347
|
const open = useStore3(store, (s) => s.open);
|
|
4205
4348
|
const toggleOpen = () => store.setState({ open: !open });
|
|
4206
|
-
return /* @__PURE__ */
|
|
4349
|
+
return /* @__PURE__ */ jsx29(
|
|
4207
4350
|
"button",
|
|
4208
4351
|
{
|
|
4209
4352
|
ref,
|
|
@@ -4218,13 +4361,13 @@ var ProfileMenuTrigger = forwardRef10(({ className, onClick, store: externalStor
|
|
|
4218
4361
|
},
|
|
4219
4362
|
"aria-expanded": open,
|
|
4220
4363
|
...props,
|
|
4221
|
-
children: /* @__PURE__ */
|
|
4364
|
+
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
4365
|
}
|
|
4223
4366
|
);
|
|
4224
4367
|
});
|
|
4225
4368
|
ProfileMenuTrigger.displayName = "ProfileMenuTrigger";
|
|
4226
4369
|
var ProfileMenuHeader = forwardRef10(({ className, name, email, photoUrl, store: _store, ...props }, ref) => {
|
|
4227
|
-
return /* @__PURE__ */
|
|
4370
|
+
return /* @__PURE__ */ jsxs22(
|
|
4228
4371
|
"div",
|
|
4229
4372
|
{
|
|
4230
4373
|
ref,
|
|
@@ -4232,17 +4375,17 @@ var ProfileMenuHeader = forwardRef10(({ className, name, email, photoUrl, store:
|
|
|
4232
4375
|
className: cn("flex flex-row gap-4 items-center", className),
|
|
4233
4376
|
...props,
|
|
4234
4377
|
children: [
|
|
4235
|
-
/* @__PURE__ */
|
|
4378
|
+
/* @__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
4379
|
"img",
|
|
4237
4380
|
{
|
|
4238
4381
|
src: photoUrl,
|
|
4239
4382
|
alt: "Foto de perfil",
|
|
4240
4383
|
className: "w-full h-full object-cover"
|
|
4241
4384
|
}
|
|
4242
|
-
) : /* @__PURE__ */
|
|
4243
|
-
/* @__PURE__ */
|
|
4244
|
-
/* @__PURE__ */
|
|
4245
|
-
/* @__PURE__ */
|
|
4385
|
+
) : /* @__PURE__ */ jsx29(User2, { size: 34, className: "text-primary-800" }) }),
|
|
4386
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex flex-col ", children: [
|
|
4387
|
+
/* @__PURE__ */ jsx29(Text_default, { size: "xl", weight: "bold", color: "text-text-950", children: name }),
|
|
4388
|
+
/* @__PURE__ */ jsx29(Text_default, { size: "md", color: "text-text-600", children: email })
|
|
4246
4389
|
] })
|
|
4247
4390
|
]
|
|
4248
4391
|
}
|
|
@@ -4275,14 +4418,14 @@ var ProfileToggleTheme = ({
|
|
|
4275
4418
|
setModalThemeToggle(false);
|
|
4276
4419
|
setOpen(false);
|
|
4277
4420
|
};
|
|
4278
|
-
return /* @__PURE__ */
|
|
4279
|
-
/* @__PURE__ */
|
|
4421
|
+
return /* @__PURE__ */ jsxs22(Fragment3, { children: [
|
|
4422
|
+
/* @__PURE__ */ jsx29(
|
|
4280
4423
|
DropdownMenuItem,
|
|
4281
4424
|
{
|
|
4282
4425
|
variant: "profile",
|
|
4283
4426
|
preventClose: true,
|
|
4284
4427
|
store,
|
|
4285
|
-
iconLeft: /* @__PURE__ */
|
|
4428
|
+
iconLeft: /* @__PURE__ */ jsx29(
|
|
4286
4429
|
"svg",
|
|
4287
4430
|
{
|
|
4288
4431
|
width: "24",
|
|
@@ -4290,7 +4433,7 @@ var ProfileToggleTheme = ({
|
|
|
4290
4433
|
viewBox: "0 0 25 25",
|
|
4291
4434
|
fill: "none",
|
|
4292
4435
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4293
|
-
children: /* @__PURE__ */
|
|
4436
|
+
children: /* @__PURE__ */ jsx29(
|
|
4294
4437
|
"path",
|
|
4295
4438
|
{
|
|
4296
4439
|
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 +4442,7 @@ var ProfileToggleTheme = ({
|
|
|
4299
4442
|
)
|
|
4300
4443
|
}
|
|
4301
4444
|
),
|
|
4302
|
-
iconRight: /* @__PURE__ */
|
|
4445
|
+
iconRight: /* @__PURE__ */ jsx29(CaretRight3, {}),
|
|
4303
4446
|
onClick: handleClick,
|
|
4304
4447
|
onKeyDown: (e) => {
|
|
4305
4448
|
if (e.key === "Enter" || e.key === " ") {
|
|
@@ -4309,23 +4452,23 @@ var ProfileToggleTheme = ({
|
|
|
4309
4452
|
}
|
|
4310
4453
|
},
|
|
4311
4454
|
...props,
|
|
4312
|
-
children: /* @__PURE__ */
|
|
4455
|
+
children: /* @__PURE__ */ jsx29(Text_default, { size: "md", color: "text-text-700", children: "Apar\xEAncia" })
|
|
4313
4456
|
}
|
|
4314
4457
|
),
|
|
4315
|
-
/* @__PURE__ */
|
|
4458
|
+
/* @__PURE__ */ jsx29(
|
|
4316
4459
|
Modal_default,
|
|
4317
4460
|
{
|
|
4318
4461
|
isOpen: modalThemeToggle,
|
|
4319
4462
|
onClose: handleCancel,
|
|
4320
4463
|
title: "Apar\xEAncia",
|
|
4321
4464
|
size: "md",
|
|
4322
|
-
footer: /* @__PURE__ */
|
|
4323
|
-
/* @__PURE__ */
|
|
4324
|
-
/* @__PURE__ */
|
|
4465
|
+
footer: /* @__PURE__ */ jsxs22("div", { className: "flex gap-3", children: [
|
|
4466
|
+
/* @__PURE__ */ jsx29(Button_default, { variant: "outline", onClick: handleCancel, children: "Cancelar" }),
|
|
4467
|
+
/* @__PURE__ */ jsx29(Button_default, { variant: "solid", onClick: handleSave, children: "Salvar" })
|
|
4325
4468
|
] }),
|
|
4326
|
-
children: /* @__PURE__ */
|
|
4327
|
-
/* @__PURE__ */
|
|
4328
|
-
/* @__PURE__ */
|
|
4469
|
+
children: /* @__PURE__ */ jsxs22("div", { className: "flex flex-col", children: [
|
|
4470
|
+
/* @__PURE__ */ jsx29("p", { className: "text-sm text-text-500", children: "Escolha o tema:" }),
|
|
4471
|
+
/* @__PURE__ */ jsx29(ThemeToggle, { variant: "with-save", onToggle: setSelectedTheme })
|
|
4329
4472
|
] })
|
|
4330
4473
|
}
|
|
4331
4474
|
)
|
|
@@ -4333,7 +4476,7 @@ var ProfileToggleTheme = ({
|
|
|
4333
4476
|
};
|
|
4334
4477
|
ProfileToggleTheme.displayName = "ProfileToggleTheme";
|
|
4335
4478
|
var ProfileMenuSection = forwardRef10(({ className, children, store: _store, ...props }, ref) => {
|
|
4336
|
-
return /* @__PURE__ */
|
|
4479
|
+
return /* @__PURE__ */ jsx29("div", { ref, className: cn("flex flex-col p-2", className), ...props, children });
|
|
4337
4480
|
});
|
|
4338
4481
|
ProfileMenuSection.displayName = "ProfileMenuSection";
|
|
4339
4482
|
var ProfileMenuFooter = ({
|
|
@@ -4345,7 +4488,7 @@ var ProfileMenuFooter = ({
|
|
|
4345
4488
|
}) => {
|
|
4346
4489
|
const store = useDropdownStore(externalStore);
|
|
4347
4490
|
const setOpen = useStore3(store, (s) => s.setOpen);
|
|
4348
|
-
return /* @__PURE__ */
|
|
4491
|
+
return /* @__PURE__ */ jsxs22(
|
|
4349
4492
|
Button_default,
|
|
4350
4493
|
{
|
|
4351
4494
|
variant: "outline",
|
|
@@ -4357,8 +4500,8 @@ var ProfileMenuFooter = ({
|
|
|
4357
4500
|
},
|
|
4358
4501
|
...props,
|
|
4359
4502
|
children: [
|
|
4360
|
-
/* @__PURE__ */
|
|
4361
|
-
/* @__PURE__ */
|
|
4503
|
+
/* @__PURE__ */ jsx29("span", { className: "mr-2 flex items-center", children: /* @__PURE__ */ jsx29(SignOut, { className: "text-inherit" }) }),
|
|
4504
|
+
/* @__PURE__ */ jsx29(Text_default, { color: "inherit", children: "Sair" })
|
|
4362
4505
|
]
|
|
4363
4506
|
}
|
|
4364
4507
|
);
|
|
@@ -4367,7 +4510,7 @@ ProfileMenuFooter.displayName = "ProfileMenuFooter";
|
|
|
4367
4510
|
var DropdownMenu_default = DropdownMenu;
|
|
4368
4511
|
|
|
4369
4512
|
// src/components/Search/Search.tsx
|
|
4370
|
-
import { jsx as
|
|
4513
|
+
import { jsx as jsx30, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4371
4514
|
var filterOptions = (options, query) => {
|
|
4372
4515
|
if (!query || query.length < 1) return [];
|
|
4373
4516
|
return options.filter(
|
|
@@ -4513,14 +4656,14 @@ var Search = forwardRef11(
|
|
|
4513
4656
|
const hasValue = String(value ?? "").length > 0;
|
|
4514
4657
|
const showClearButton = hasValue && !disabled && !readOnly;
|
|
4515
4658
|
const showSearchIcon = !hasValue && !disabled && !readOnly;
|
|
4516
|
-
return /* @__PURE__ */
|
|
4659
|
+
return /* @__PURE__ */ jsxs23(
|
|
4517
4660
|
"div",
|
|
4518
4661
|
{
|
|
4519
4662
|
ref: dropdownRef,
|
|
4520
4663
|
className: `w-full max-w-lg md:w-[488px] ${containerClassName}`,
|
|
4521
4664
|
children: [
|
|
4522
|
-
/* @__PURE__ */
|
|
4523
|
-
/* @__PURE__ */
|
|
4665
|
+
/* @__PURE__ */ jsxs23("div", { className: "relative flex items-center", children: [
|
|
4666
|
+
/* @__PURE__ */ jsx30(
|
|
4524
4667
|
"input",
|
|
4525
4668
|
{
|
|
4526
4669
|
ref: (node) => {
|
|
@@ -4548,35 +4691,35 @@ var Search = forwardRef11(
|
|
|
4548
4691
|
...props
|
|
4549
4692
|
}
|
|
4550
4693
|
),
|
|
4551
|
-
showClearButton && /* @__PURE__ */
|
|
4694
|
+
showClearButton && /* @__PURE__ */ jsx30("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ jsx30(
|
|
4552
4695
|
"button",
|
|
4553
4696
|
{
|
|
4554
4697
|
type: "button",
|
|
4555
4698
|
className: "p-0 border-0 bg-transparent cursor-pointer",
|
|
4556
4699
|
onMouseDown: handleClearClick,
|
|
4557
4700
|
"aria-label": "Limpar busca",
|
|
4558
|
-
children: /* @__PURE__ */
|
|
4701
|
+
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
4702
|
}
|
|
4560
4703
|
) }),
|
|
4561
|
-
showSearchIcon && /* @__PURE__ */
|
|
4704
|
+
showSearchIcon && /* @__PURE__ */ jsx30("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ jsx30(
|
|
4562
4705
|
"button",
|
|
4563
4706
|
{
|
|
4564
4707
|
type: "button",
|
|
4565
4708
|
className: "p-0 border-0 bg-transparent cursor-pointer",
|
|
4566
4709
|
onMouseDown: handleSearchIconClick,
|
|
4567
4710
|
"aria-label": "Buscar",
|
|
4568
|
-
children: /* @__PURE__ */
|
|
4711
|
+
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
4712
|
}
|
|
4570
4713
|
) })
|
|
4571
4714
|
] }),
|
|
4572
|
-
showDropdown && /* @__PURE__ */
|
|
4715
|
+
showDropdown && /* @__PURE__ */ jsx30(DropdownMenu_default, { open: showDropdown, onOpenChange: setDropdownOpen, children: /* @__PURE__ */ jsx30(
|
|
4573
4716
|
DropdownMenuContent,
|
|
4574
4717
|
{
|
|
4575
4718
|
id: dropdownId,
|
|
4576
4719
|
className: "w-full mt-1",
|
|
4577
4720
|
style: { maxHeight: dropdownMaxHeight },
|
|
4578
4721
|
align: "start",
|
|
4579
|
-
children: filteredOptions.length > 0 ? filteredOptions.map((option) => /* @__PURE__ */
|
|
4722
|
+
children: filteredOptions.length > 0 ? filteredOptions.map((option) => /* @__PURE__ */ jsx30(
|
|
4580
4723
|
DropdownMenuItem,
|
|
4581
4724
|
{
|
|
4582
4725
|
onClick: () => handleSelectOption(option),
|
|
@@ -4584,7 +4727,7 @@ var Search = forwardRef11(
|
|
|
4584
4727
|
children: option
|
|
4585
4728
|
},
|
|
4586
4729
|
option
|
|
4587
|
-
)) : /* @__PURE__ */
|
|
4730
|
+
)) : /* @__PURE__ */ jsx30("div", { className: "px-3 py-3 text-text-700 text-base", children: noResultsText })
|
|
4588
4731
|
}
|
|
4589
4732
|
) })
|
|
4590
4733
|
]
|
|
@@ -4597,7 +4740,7 @@ var Search_default = Search;
|
|
|
4597
4740
|
|
|
4598
4741
|
// src/components/Chips/Chips.tsx
|
|
4599
4742
|
import { Check as Check2 } from "phosphor-react";
|
|
4600
|
-
import { jsx as
|
|
4743
|
+
import { jsx as jsx31, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4601
4744
|
var STATE_CLASSES5 = {
|
|
4602
4745
|
default: "bg-background text-text-950 border border-border-100 hover:bg-secondary-50 hover:border-border-300",
|
|
4603
4746
|
selected: "bg-info-background text-primary-950 border-2 border-primary-950 hover:bg-secondary-50 focus-visible:border-0"
|
|
@@ -4612,7 +4755,7 @@ var Chips = ({
|
|
|
4612
4755
|
}) => {
|
|
4613
4756
|
const stateClasses = selected ? STATE_CLASSES5.selected : STATE_CLASSES5.default;
|
|
4614
4757
|
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__ */
|
|
4758
|
+
return /* @__PURE__ */ jsxs24(
|
|
4616
4759
|
"button",
|
|
4617
4760
|
{
|
|
4618
4761
|
className: cn(baseClasses, stateClasses, className),
|
|
@@ -4620,8 +4763,8 @@ var Chips = ({
|
|
|
4620
4763
|
type,
|
|
4621
4764
|
...props,
|
|
4622
4765
|
children: [
|
|
4623
|
-
selected && /* @__PURE__ */
|
|
4624
|
-
/* @__PURE__ */
|
|
4766
|
+
selected && /* @__PURE__ */ jsx31("span", { className: `flex items-center`, children: /* @__PURE__ */ jsx31(Check2, { weight: "bold", size: 16 }) }),
|
|
4767
|
+
/* @__PURE__ */ jsx31("span", { className: "flex-1", children })
|
|
4625
4768
|
]
|
|
4626
4769
|
}
|
|
4627
4770
|
);
|
|
@@ -4629,7 +4772,7 @@ var Chips = ({
|
|
|
4629
4772
|
var Chips_default = Chips;
|
|
4630
4773
|
|
|
4631
4774
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
4632
|
-
import { Fragment as Fragment4, jsx as
|
|
4775
|
+
import { Fragment as Fragment4, jsx as jsx32, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4633
4776
|
var SIZE_CLASSES8 = {
|
|
4634
4777
|
small: {
|
|
4635
4778
|
container: "h-1",
|
|
@@ -4741,20 +4884,20 @@ var renderStackedHitCountDisplay = (showHitCount, showPercentage, clampedValue,
|
|
|
4741
4884
|
max,
|
|
4742
4885
|
percentage
|
|
4743
4886
|
);
|
|
4744
|
-
return /* @__PURE__ */
|
|
4887
|
+
return /* @__PURE__ */ jsx32(
|
|
4745
4888
|
"div",
|
|
4746
4889
|
{
|
|
4747
4890
|
className: cn(
|
|
4748
4891
|
"text-xs font-medium leading-[14px] text-right",
|
|
4749
4892
|
percentageClassName
|
|
4750
4893
|
),
|
|
4751
|
-
children: displayPriority.type === "hitCount" ? /* @__PURE__ */
|
|
4752
|
-
/* @__PURE__ */
|
|
4753
|
-
/* @__PURE__ */
|
|
4894
|
+
children: displayPriority.type === "hitCount" ? /* @__PURE__ */ jsxs25(Fragment4, { children: [
|
|
4895
|
+
/* @__PURE__ */ jsx32("span", { className: "text-success-200", children: Math.round(clampedValue) }),
|
|
4896
|
+
/* @__PURE__ */ jsxs25("span", { className: "text-text-600", children: [
|
|
4754
4897
|
" de ",
|
|
4755
4898
|
max
|
|
4756
4899
|
] })
|
|
4757
|
-
] }) : /* @__PURE__ */
|
|
4900
|
+
] }) : /* @__PURE__ */ jsxs25(Text_default, { size: "xs", weight: "medium", className: "text-success-200", children: [
|
|
4758
4901
|
Math.round(percentage),
|
|
4759
4902
|
"%"
|
|
4760
4903
|
] })
|
|
@@ -4769,7 +4912,7 @@ var ProgressBarBase = ({
|
|
|
4769
4912
|
variantClasses,
|
|
4770
4913
|
containerClassName,
|
|
4771
4914
|
fillClassName
|
|
4772
|
-
}) => /* @__PURE__ */
|
|
4915
|
+
}) => /* @__PURE__ */ jsxs25(
|
|
4773
4916
|
"div",
|
|
4774
4917
|
{
|
|
4775
4918
|
className: cn(
|
|
@@ -4778,7 +4921,7 @@ var ProgressBarBase = ({
|
|
|
4778
4921
|
"overflow-hidden relative"
|
|
4779
4922
|
),
|
|
4780
4923
|
children: [
|
|
4781
|
-
/* @__PURE__ */
|
|
4924
|
+
/* @__PURE__ */ jsx32(
|
|
4782
4925
|
"progress",
|
|
4783
4926
|
{
|
|
4784
4927
|
value: clampedValue,
|
|
@@ -4787,7 +4930,7 @@ var ProgressBarBase = ({
|
|
|
4787
4930
|
className: "absolute inset-0 w-full h-full opacity-0"
|
|
4788
4931
|
}
|
|
4789
4932
|
),
|
|
4790
|
-
/* @__PURE__ */
|
|
4933
|
+
/* @__PURE__ */ jsx32(
|
|
4791
4934
|
"div",
|
|
4792
4935
|
{
|
|
4793
4936
|
className: cn(
|
|
@@ -4813,7 +4956,7 @@ var StackedLayout = ({
|
|
|
4813
4956
|
percentage,
|
|
4814
4957
|
variantClasses,
|
|
4815
4958
|
dimensions
|
|
4816
|
-
}) => /* @__PURE__ */
|
|
4959
|
+
}) => /* @__PURE__ */ jsxs25(
|
|
4817
4960
|
"div",
|
|
4818
4961
|
{
|
|
4819
4962
|
className: cn(
|
|
@@ -4823,8 +4966,8 @@ var StackedLayout = ({
|
|
|
4823
4966
|
className
|
|
4824
4967
|
),
|
|
4825
4968
|
children: [
|
|
4826
|
-
shouldShowHeader(label, showPercentage, showHitCount) && /* @__PURE__ */
|
|
4827
|
-
label && /* @__PURE__ */
|
|
4969
|
+
shouldShowHeader(label, showPercentage, showHitCount) && /* @__PURE__ */ jsxs25("div", { className: "flex flex-row justify-between items-center w-full h-[19px]", children: [
|
|
4970
|
+
label && /* @__PURE__ */ jsx32(
|
|
4828
4971
|
Text_default,
|
|
4829
4972
|
{
|
|
4830
4973
|
as: "div",
|
|
@@ -4843,7 +4986,7 @@ var StackedLayout = ({
|
|
|
4843
4986
|
percentageClassName
|
|
4844
4987
|
)
|
|
4845
4988
|
] }),
|
|
4846
|
-
/* @__PURE__ */
|
|
4989
|
+
/* @__PURE__ */ jsx32(
|
|
4847
4990
|
ProgressBarBase,
|
|
4848
4991
|
{
|
|
4849
4992
|
clampedValue,
|
|
@@ -4885,7 +5028,7 @@ var CompactLayout = ({
|
|
|
4885
5028
|
percentageClassName,
|
|
4886
5029
|
labelClassName
|
|
4887
5030
|
});
|
|
4888
|
-
return /* @__PURE__ */
|
|
5031
|
+
return /* @__PURE__ */ jsxs25(
|
|
4889
5032
|
"div",
|
|
4890
5033
|
{
|
|
4891
5034
|
className: cn(
|
|
@@ -4895,7 +5038,7 @@ var CompactLayout = ({
|
|
|
4895
5038
|
className
|
|
4896
5039
|
),
|
|
4897
5040
|
children: [
|
|
4898
|
-
shouldShowHeader(label, showPercentage, showHitCount) && /* @__PURE__ */
|
|
5041
|
+
shouldShowHeader(label, showPercentage, showHitCount) && /* @__PURE__ */ jsx32(
|
|
4899
5042
|
Text_default,
|
|
4900
5043
|
{
|
|
4901
5044
|
as: "div",
|
|
@@ -4906,7 +5049,7 @@ var CompactLayout = ({
|
|
|
4906
5049
|
children: content
|
|
4907
5050
|
}
|
|
4908
5051
|
),
|
|
4909
|
-
/* @__PURE__ */
|
|
5052
|
+
/* @__PURE__ */ jsx32(
|
|
4910
5053
|
ProgressBarBase,
|
|
4911
5054
|
{
|
|
4912
5055
|
clampedValue,
|
|
@@ -4942,9 +5085,9 @@ var DefaultLayout = ({
|
|
|
4942
5085
|
label,
|
|
4943
5086
|
showPercentage
|
|
4944
5087
|
);
|
|
4945
|
-
return /* @__PURE__ */
|
|
4946
|
-
displayConfig.showHeader && /* @__PURE__ */
|
|
4947
|
-
label && /* @__PURE__ */
|
|
5088
|
+
return /* @__PURE__ */ jsxs25("div", { className: cn("flex", sizeClasses.layout, gapClass, className), children: [
|
|
5089
|
+
displayConfig.showHeader && /* @__PURE__ */ jsxs25("div", { className: "flex flex-row items-center justify-between w-full", children: [
|
|
5090
|
+
label && /* @__PURE__ */ jsx32(
|
|
4948
5091
|
Text_default,
|
|
4949
5092
|
{
|
|
4950
5093
|
as: "div",
|
|
@@ -4957,7 +5100,7 @@ var DefaultLayout = ({
|
|
|
4957
5100
|
children: label
|
|
4958
5101
|
}
|
|
4959
5102
|
),
|
|
4960
|
-
showPercentage && /* @__PURE__ */
|
|
5103
|
+
showPercentage && /* @__PURE__ */ jsxs25(
|
|
4961
5104
|
Text_default,
|
|
4962
5105
|
{
|
|
4963
5106
|
size: "xs",
|
|
@@ -4973,7 +5116,7 @@ var DefaultLayout = ({
|
|
|
4973
5116
|
}
|
|
4974
5117
|
)
|
|
4975
5118
|
] }),
|
|
4976
|
-
/* @__PURE__ */
|
|
5119
|
+
/* @__PURE__ */ jsx32(
|
|
4977
5120
|
ProgressBarBase,
|
|
4978
5121
|
{
|
|
4979
5122
|
clampedValue,
|
|
@@ -4993,7 +5136,7 @@ var DefaultLayout = ({
|
|
|
4993
5136
|
)
|
|
4994
5137
|
}
|
|
4995
5138
|
),
|
|
4996
|
-
displayConfig.showPercentage && /* @__PURE__ */
|
|
5139
|
+
displayConfig.showPercentage && /* @__PURE__ */ jsxs25(
|
|
4997
5140
|
Text_default,
|
|
4998
5141
|
{
|
|
4999
5142
|
size: "xs",
|
|
@@ -5008,7 +5151,7 @@ var DefaultLayout = ({
|
|
|
5008
5151
|
]
|
|
5009
5152
|
}
|
|
5010
5153
|
),
|
|
5011
|
-
displayConfig.showLabel && /* @__PURE__ */
|
|
5154
|
+
displayConfig.showLabel && /* @__PURE__ */ jsx32(
|
|
5012
5155
|
Text_default,
|
|
5013
5156
|
{
|
|
5014
5157
|
as: "div",
|
|
@@ -5044,7 +5187,7 @@ var ProgressBar = ({
|
|
|
5044
5187
|
const sizeClasses = SIZE_CLASSES8[size];
|
|
5045
5188
|
const variantClasses = VARIANT_CLASSES2[variant];
|
|
5046
5189
|
if (layout === "stacked") {
|
|
5047
|
-
return /* @__PURE__ */
|
|
5190
|
+
return /* @__PURE__ */ jsx32(
|
|
5048
5191
|
StackedLayout,
|
|
5049
5192
|
{
|
|
5050
5193
|
className,
|
|
@@ -5065,7 +5208,7 @@ var ProgressBar = ({
|
|
|
5065
5208
|
);
|
|
5066
5209
|
}
|
|
5067
5210
|
if (layout === "compact") {
|
|
5068
|
-
return /* @__PURE__ */
|
|
5211
|
+
return /* @__PURE__ */ jsx32(
|
|
5069
5212
|
CompactLayout,
|
|
5070
5213
|
{
|
|
5071
5214
|
className,
|
|
@@ -5085,7 +5228,7 @@ var ProgressBar = ({
|
|
|
5085
5228
|
}
|
|
5086
5229
|
);
|
|
5087
5230
|
}
|
|
5088
|
-
return /* @__PURE__ */
|
|
5231
|
+
return /* @__PURE__ */ jsx32(
|
|
5089
5232
|
DefaultLayout,
|
|
5090
5233
|
{
|
|
5091
5234
|
className,
|
|
@@ -5105,7 +5248,7 @@ var ProgressBar = ({
|
|
|
5105
5248
|
var ProgressBar_default = ProgressBar;
|
|
5106
5249
|
|
|
5107
5250
|
// src/components/ProgressCircle/ProgressCircle.tsx
|
|
5108
|
-
import { jsx as
|
|
5251
|
+
import { jsx as jsx33, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5109
5252
|
var SIZE_CLASSES9 = {
|
|
5110
5253
|
small: {
|
|
5111
5254
|
container: "w-[90px] h-[90px]",
|
|
@@ -5187,7 +5330,7 @@ var ProgressCircle = ({
|
|
|
5187
5330
|
const strokeDashoffset = circumference - percentage / 100 * circumference;
|
|
5188
5331
|
const center = size === "small" ? 45 : 76;
|
|
5189
5332
|
const svgSize = size === "small" ? 90 : 152;
|
|
5190
|
-
return /* @__PURE__ */
|
|
5333
|
+
return /* @__PURE__ */ jsxs26(
|
|
5191
5334
|
"div",
|
|
5192
5335
|
{
|
|
5193
5336
|
className: cn(
|
|
@@ -5197,7 +5340,7 @@ var ProgressCircle = ({
|
|
|
5197
5340
|
className
|
|
5198
5341
|
),
|
|
5199
5342
|
children: [
|
|
5200
|
-
/* @__PURE__ */
|
|
5343
|
+
/* @__PURE__ */ jsxs26(
|
|
5201
5344
|
"svg",
|
|
5202
5345
|
{
|
|
5203
5346
|
className: "absolute inset-0 transform -rotate-90",
|
|
@@ -5206,7 +5349,7 @@ var ProgressCircle = ({
|
|
|
5206
5349
|
viewBox: `0 0 ${svgSize} ${svgSize}`,
|
|
5207
5350
|
"aria-hidden": "true",
|
|
5208
5351
|
children: [
|
|
5209
|
-
/* @__PURE__ */
|
|
5352
|
+
/* @__PURE__ */ jsx33(
|
|
5210
5353
|
"circle",
|
|
5211
5354
|
{
|
|
5212
5355
|
cx: center,
|
|
@@ -5217,7 +5360,7 @@ var ProgressCircle = ({
|
|
|
5217
5360
|
className: cn(variantClasses.background, "rounded-lg")
|
|
5218
5361
|
}
|
|
5219
5362
|
),
|
|
5220
|
-
/* @__PURE__ */
|
|
5363
|
+
/* @__PURE__ */ jsx33(
|
|
5221
5364
|
"circle",
|
|
5222
5365
|
{
|
|
5223
5366
|
cx: center,
|
|
@@ -5237,7 +5380,7 @@ var ProgressCircle = ({
|
|
|
5237
5380
|
]
|
|
5238
5381
|
}
|
|
5239
5382
|
),
|
|
5240
|
-
/* @__PURE__ */
|
|
5383
|
+
/* @__PURE__ */ jsx33(
|
|
5241
5384
|
"progress",
|
|
5242
5385
|
{
|
|
5243
5386
|
value: clampedValue,
|
|
@@ -5246,7 +5389,7 @@ var ProgressCircle = ({
|
|
|
5246
5389
|
className: "absolute opacity-0 w-0 h-0"
|
|
5247
5390
|
}
|
|
5248
5391
|
),
|
|
5249
|
-
/* @__PURE__ */
|
|
5392
|
+
/* @__PURE__ */ jsxs26(
|
|
5250
5393
|
"div",
|
|
5251
5394
|
{
|
|
5252
5395
|
className: cn(
|
|
@@ -5255,7 +5398,7 @@ var ProgressCircle = ({
|
|
|
5255
5398
|
sizeClasses.contentWidth
|
|
5256
5399
|
),
|
|
5257
5400
|
children: [
|
|
5258
|
-
showPercentage && /* @__PURE__ */
|
|
5401
|
+
showPercentage && /* @__PURE__ */ jsxs26(
|
|
5259
5402
|
Text_default,
|
|
5260
5403
|
{
|
|
5261
5404
|
size: sizeClasses.textSize,
|
|
@@ -5271,7 +5414,7 @@ var ProgressCircle = ({
|
|
|
5271
5414
|
]
|
|
5272
5415
|
}
|
|
5273
5416
|
),
|
|
5274
|
-
label && /* @__PURE__ */
|
|
5417
|
+
label && /* @__PURE__ */ jsx33(
|
|
5275
5418
|
Text_default,
|
|
5276
5419
|
{
|
|
5277
5420
|
as: "span",
|
|
@@ -5296,7 +5439,7 @@ var ProgressCircle_default = ProgressCircle;
|
|
|
5296
5439
|
|
|
5297
5440
|
// src/components/Stepper/Stepper.tsx
|
|
5298
5441
|
import { Check as Check3 } from "phosphor-react";
|
|
5299
|
-
import { jsx as
|
|
5442
|
+
import { jsx as jsx34, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5300
5443
|
var SIZE_CLASSES10 = {
|
|
5301
5444
|
small: {
|
|
5302
5445
|
container: "gap-2",
|
|
@@ -5423,7 +5566,7 @@ var Step = ({
|
|
|
5423
5566
|
}
|
|
5424
5567
|
return `${step.label}${suffix}`;
|
|
5425
5568
|
};
|
|
5426
|
-
return /* @__PURE__ */
|
|
5569
|
+
return /* @__PURE__ */ jsxs27(
|
|
5427
5570
|
"div",
|
|
5428
5571
|
{
|
|
5429
5572
|
className: `
|
|
@@ -5436,7 +5579,7 @@ var Step = ({
|
|
|
5436
5579
|
overflow-visible
|
|
5437
5580
|
`,
|
|
5438
5581
|
children: [
|
|
5439
|
-
/* @__PURE__ */
|
|
5582
|
+
/* @__PURE__ */ jsx34(
|
|
5440
5583
|
"div",
|
|
5441
5584
|
{
|
|
5442
5585
|
className: `
|
|
@@ -5445,7 +5588,7 @@ var Step = ({
|
|
|
5445
5588
|
`
|
|
5446
5589
|
}
|
|
5447
5590
|
),
|
|
5448
|
-
/* @__PURE__ */
|
|
5591
|
+
/* @__PURE__ */ jsxs27(
|
|
5449
5592
|
"div",
|
|
5450
5593
|
{
|
|
5451
5594
|
className: `
|
|
@@ -5455,7 +5598,7 @@ var Step = ({
|
|
|
5455
5598
|
overflow-visible
|
|
5456
5599
|
`,
|
|
5457
5600
|
children: [
|
|
5458
|
-
/* @__PURE__ */
|
|
5601
|
+
/* @__PURE__ */ jsx34(
|
|
5459
5602
|
"div",
|
|
5460
5603
|
{
|
|
5461
5604
|
className: `
|
|
@@ -5464,7 +5607,7 @@ var Step = ({
|
|
|
5464
5607
|
flex-none transition-all duration-300 ease-out
|
|
5465
5608
|
`,
|
|
5466
5609
|
"aria-label": getAriaLabel(),
|
|
5467
|
-
children: isCompleted ? /* @__PURE__ */
|
|
5610
|
+
children: isCompleted ? /* @__PURE__ */ jsx34(
|
|
5468
5611
|
Check3,
|
|
5469
5612
|
{
|
|
5470
5613
|
weight: "bold",
|
|
@@ -5473,7 +5616,7 @@ var Step = ({
|
|
|
5473
5616
|
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
5617
|
`
|
|
5475
5618
|
}
|
|
5476
|
-
) : /* @__PURE__ */
|
|
5619
|
+
) : /* @__PURE__ */ jsx34(
|
|
5477
5620
|
Text_default,
|
|
5478
5621
|
{
|
|
5479
5622
|
size: sizeClasses.indicatorTextSize,
|
|
@@ -5485,7 +5628,7 @@ var Step = ({
|
|
|
5485
5628
|
)
|
|
5486
5629
|
}
|
|
5487
5630
|
),
|
|
5488
|
-
/* @__PURE__ */
|
|
5631
|
+
/* @__PURE__ */ jsx34(
|
|
5489
5632
|
Text_default,
|
|
5490
5633
|
{
|
|
5491
5634
|
size: sizeClasses.labelTextSize,
|
|
@@ -5537,7 +5680,7 @@ var Stepper = ({
|
|
|
5537
5680
|
}) => {
|
|
5538
5681
|
const sizeClasses = SIZE_CLASSES10[size];
|
|
5539
5682
|
const steps = currentStep !== void 0 ? calculateStepStates(initialSteps, currentStep) : initialSteps;
|
|
5540
|
-
return /* @__PURE__ */
|
|
5683
|
+
return /* @__PURE__ */ jsxs27(
|
|
5541
5684
|
"fieldset",
|
|
5542
5685
|
{
|
|
5543
5686
|
className: cn(
|
|
@@ -5546,8 +5689,8 @@ var Stepper = ({
|
|
|
5546
5689
|
"border-0 p-0 m-0"
|
|
5547
5690
|
),
|
|
5548
5691
|
children: [
|
|
5549
|
-
/* @__PURE__ */
|
|
5550
|
-
showProgress && currentStep !== void 0 && /* @__PURE__ */
|
|
5692
|
+
/* @__PURE__ */ jsx34("legend", { className: "absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0", children: "Stepper de formul\xE1rio" }),
|
|
5693
|
+
showProgress && currentStep !== void 0 && /* @__PURE__ */ jsx34(
|
|
5551
5694
|
Text_default,
|
|
5552
5695
|
{
|
|
5553
5696
|
size: "sm",
|
|
@@ -5556,7 +5699,7 @@ var Stepper = ({
|
|
|
5556
5699
|
children: getProgressText(currentStep, steps.length, progressText)
|
|
5557
5700
|
}
|
|
5558
5701
|
),
|
|
5559
|
-
/* @__PURE__ */
|
|
5702
|
+
/* @__PURE__ */ jsx34(
|
|
5560
5703
|
"div",
|
|
5561
5704
|
{
|
|
5562
5705
|
className: cn(
|
|
@@ -5569,7 +5712,7 @@ var Stepper = ({
|
|
|
5569
5712
|
"aria-label": "Progress steps",
|
|
5570
5713
|
children: steps.map((step, index) => {
|
|
5571
5714
|
const stateClasses = STATE_CLASSES6[step.state];
|
|
5572
|
-
return /* @__PURE__ */
|
|
5715
|
+
return /* @__PURE__ */ jsx34(
|
|
5573
5716
|
Step,
|
|
5574
5717
|
{
|
|
5575
5718
|
step,
|
|
@@ -5598,7 +5741,7 @@ import {
|
|
|
5598
5741
|
useEffect as useEffect14,
|
|
5599
5742
|
useRef as useRef7
|
|
5600
5743
|
} from "react";
|
|
5601
|
-
import { jsx as
|
|
5744
|
+
import { jsx as jsx35, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5602
5745
|
var WEEK_DAYS = ["SEG", "TER", "QUA", "QUI", "SEX", "S\xC1B", "DOM"];
|
|
5603
5746
|
var WEEK_DAYS_SHORT = ["S", "T", "Q", "Q", "S", "S", "D"];
|
|
5604
5747
|
var MONTH_NAMES = [
|
|
@@ -5621,15 +5764,15 @@ var MonthYearPicker = ({
|
|
|
5621
5764
|
currentDate,
|
|
5622
5765
|
onYearChange,
|
|
5623
5766
|
onMonthChange
|
|
5624
|
-
}) => /* @__PURE__ */
|
|
5767
|
+
}) => /* @__PURE__ */ jsxs28(
|
|
5625
5768
|
"div",
|
|
5626
5769
|
{
|
|
5627
5770
|
ref: monthPickerRef,
|
|
5628
5771
|
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
5772
|
children: [
|
|
5630
|
-
/* @__PURE__ */
|
|
5631
|
-
/* @__PURE__ */
|
|
5632
|
-
/* @__PURE__ */
|
|
5773
|
+
/* @__PURE__ */ jsxs28("div", { className: "mb-4", children: [
|
|
5774
|
+
/* @__PURE__ */ jsx35("h3", { className: "text-sm font-medium text-text-700 mb-2", children: "Selecionar Ano" }),
|
|
5775
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-4 gap-1 max-h-32 overflow-y-auto", children: availableYears.map((year) => /* @__PURE__ */ jsx35(
|
|
5633
5776
|
"button",
|
|
5634
5777
|
{
|
|
5635
5778
|
onClick: () => onYearChange(year),
|
|
@@ -5642,9 +5785,9 @@ var MonthYearPicker = ({
|
|
|
5642
5785
|
year
|
|
5643
5786
|
)) })
|
|
5644
5787
|
] }),
|
|
5645
|
-
/* @__PURE__ */
|
|
5646
|
-
/* @__PURE__ */
|
|
5647
|
-
/* @__PURE__ */
|
|
5788
|
+
/* @__PURE__ */ jsxs28("div", { children: [
|
|
5789
|
+
/* @__PURE__ */ jsx35("h3", { className: "text-sm font-medium text-text-700 mb-2", children: "Selecionar M\xEAs" }),
|
|
5790
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-3 gap-1", children: MONTH_NAMES.map((month, index) => /* @__PURE__ */ jsx35(
|
|
5648
5791
|
"button",
|
|
5649
5792
|
{
|
|
5650
5793
|
onClick: () => onMonthChange(index, currentDate.getFullYear()),
|
|
@@ -5776,28 +5919,28 @@ var Calendar = ({
|
|
|
5776
5919
|
onDateSelect?.(day.date);
|
|
5777
5920
|
};
|
|
5778
5921
|
if (variant === "navigation") {
|
|
5779
|
-
return /* @__PURE__ */
|
|
5780
|
-
/* @__PURE__ */
|
|
5781
|
-
/* @__PURE__ */
|
|
5782
|
-
/* @__PURE__ */
|
|
5922
|
+
return /* @__PURE__ */ jsxs28("div", { className: cn("bg-background rounded-xl pt-6", className), children: [
|
|
5923
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between mb-4 px-6", children: [
|
|
5924
|
+
/* @__PURE__ */ jsxs28("div", { className: "relative", ref: monthPickerContainerRef, children: [
|
|
5925
|
+
/* @__PURE__ */ jsxs28(
|
|
5783
5926
|
"button",
|
|
5784
5927
|
{
|
|
5785
5928
|
onClick: toggleMonthPicker,
|
|
5786
5929
|
className: "flex items-center group gap-1 rounded transition-colors cursor-pointer",
|
|
5787
5930
|
children: [
|
|
5788
|
-
/* @__PURE__ */
|
|
5931
|
+
/* @__PURE__ */ jsxs28("span", { className: "text-sm font-medium text-text-600 group-hover:text-primary-950", children: [
|
|
5789
5932
|
MONTH_NAMES[currentDate.getMonth()],
|
|
5790
5933
|
" ",
|
|
5791
5934
|
currentDate.getFullYear()
|
|
5792
5935
|
] }),
|
|
5793
|
-
/* @__PURE__ */
|
|
5936
|
+
/* @__PURE__ */ jsx35(
|
|
5794
5937
|
"svg",
|
|
5795
5938
|
{
|
|
5796
5939
|
className: `w-4 h-4 text-primary-950 transition-transform ${isMonthPickerOpen ? "rotate-180" : ""}`,
|
|
5797
5940
|
fill: "none",
|
|
5798
5941
|
stroke: "currentColor",
|
|
5799
5942
|
viewBox: "0 0 24 24",
|
|
5800
|
-
children: /* @__PURE__ */
|
|
5943
|
+
children: /* @__PURE__ */ jsx35(
|
|
5801
5944
|
"path",
|
|
5802
5945
|
{
|
|
5803
5946
|
strokeLinecap: "round",
|
|
@@ -5811,7 +5954,7 @@ var Calendar = ({
|
|
|
5811
5954
|
]
|
|
5812
5955
|
}
|
|
5813
5956
|
),
|
|
5814
|
-
isMonthPickerOpen && /* @__PURE__ */
|
|
5957
|
+
isMonthPickerOpen && /* @__PURE__ */ jsx35(
|
|
5815
5958
|
MonthYearPicker,
|
|
5816
5959
|
{
|
|
5817
5960
|
monthPickerRef,
|
|
@@ -5822,21 +5965,21 @@ var Calendar = ({
|
|
|
5822
5965
|
}
|
|
5823
5966
|
)
|
|
5824
5967
|
] }),
|
|
5825
|
-
/* @__PURE__ */
|
|
5826
|
-
/* @__PURE__ */
|
|
5968
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-10", children: [
|
|
5969
|
+
/* @__PURE__ */ jsx35(
|
|
5827
5970
|
"button",
|
|
5828
5971
|
{
|
|
5829
5972
|
onClick: goToPreviousMonth,
|
|
5830
5973
|
className: "p-1 rounded hover:bg-background-100 transition-colors",
|
|
5831
5974
|
"aria-label": "M\xEAs anterior",
|
|
5832
|
-
children: /* @__PURE__ */
|
|
5975
|
+
children: /* @__PURE__ */ jsx35(
|
|
5833
5976
|
"svg",
|
|
5834
5977
|
{
|
|
5835
5978
|
className: "w-6 h-6 text-primary-950",
|
|
5836
5979
|
fill: "none",
|
|
5837
5980
|
stroke: "currentColor",
|
|
5838
5981
|
viewBox: "0 0 24 24",
|
|
5839
|
-
children: /* @__PURE__ */
|
|
5982
|
+
children: /* @__PURE__ */ jsx35(
|
|
5840
5983
|
"path",
|
|
5841
5984
|
{
|
|
5842
5985
|
strokeLinecap: "round",
|
|
@@ -5849,20 +5992,20 @@ var Calendar = ({
|
|
|
5849
5992
|
)
|
|
5850
5993
|
}
|
|
5851
5994
|
),
|
|
5852
|
-
/* @__PURE__ */
|
|
5995
|
+
/* @__PURE__ */ jsx35(
|
|
5853
5996
|
"button",
|
|
5854
5997
|
{
|
|
5855
5998
|
onClick: goToNextMonth,
|
|
5856
5999
|
className: "p-1 rounded hover:bg-background-100 transition-colors",
|
|
5857
6000
|
"aria-label": "Pr\xF3ximo m\xEAs",
|
|
5858
|
-
children: /* @__PURE__ */
|
|
6001
|
+
children: /* @__PURE__ */ jsx35(
|
|
5859
6002
|
"svg",
|
|
5860
6003
|
{
|
|
5861
6004
|
className: "w-6 h-6 text-primary-950",
|
|
5862
6005
|
fill: "none",
|
|
5863
6006
|
stroke: "currentColor",
|
|
5864
6007
|
viewBox: "0 0 24 24",
|
|
5865
|
-
children: /* @__PURE__ */
|
|
6008
|
+
children: /* @__PURE__ */ jsx35(
|
|
5866
6009
|
"path",
|
|
5867
6010
|
{
|
|
5868
6011
|
strokeLinecap: "round",
|
|
@@ -5877,7 +6020,7 @@ var Calendar = ({
|
|
|
5877
6020
|
)
|
|
5878
6021
|
] })
|
|
5879
6022
|
] }),
|
|
5880
|
-
/* @__PURE__ */
|
|
6023
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-7 gap-1 mb-2 px-3", children: WEEK_DAYS_SHORT.map((day, index) => /* @__PURE__ */ jsx35(
|
|
5881
6024
|
"div",
|
|
5882
6025
|
{
|
|
5883
6026
|
className: "h-9 flex items-center justify-center text-xs font-normal text-text-600",
|
|
@@ -5885,13 +6028,13 @@ var Calendar = ({
|
|
|
5885
6028
|
},
|
|
5886
6029
|
`${day}-${index}`
|
|
5887
6030
|
)) }),
|
|
5888
|
-
/* @__PURE__ */
|
|
6031
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-7 gap-1 px-3", children: calendarData.map((day) => {
|
|
5889
6032
|
if (!day.isCurrentMonth) {
|
|
5890
|
-
return /* @__PURE__ */
|
|
6033
|
+
return /* @__PURE__ */ jsx35(
|
|
5891
6034
|
"div",
|
|
5892
6035
|
{
|
|
5893
6036
|
className: "flex items-center justify-center",
|
|
5894
|
-
children: /* @__PURE__ */
|
|
6037
|
+
children: /* @__PURE__ */ jsx35("div", { className: "w-9 h-9" })
|
|
5895
6038
|
},
|
|
5896
6039
|
day.date.getTime()
|
|
5897
6040
|
);
|
|
@@ -5907,11 +6050,11 @@ var Calendar = ({
|
|
|
5907
6050
|
} else if (day.isSelected) {
|
|
5908
6051
|
spanClass = "h-6 w-6 rounded-full bg-primary-950 text-text";
|
|
5909
6052
|
}
|
|
5910
|
-
return /* @__PURE__ */
|
|
6053
|
+
return /* @__PURE__ */ jsx35(
|
|
5911
6054
|
"div",
|
|
5912
6055
|
{
|
|
5913
6056
|
className: "flex items-center justify-center",
|
|
5914
|
-
children: /* @__PURE__ */
|
|
6057
|
+
children: /* @__PURE__ */ jsx35(
|
|
5915
6058
|
"button",
|
|
5916
6059
|
{
|
|
5917
6060
|
className: `
|
|
@@ -5927,7 +6070,7 @@ var Calendar = ({
|
|
|
5927
6070
|
"aria-label": `${day.date.getDate()} de ${MONTH_NAMES[day.date.getMonth()]}`,
|
|
5928
6071
|
"aria-current": day.isToday ? "date" : void 0,
|
|
5929
6072
|
tabIndex: 0,
|
|
5930
|
-
children: /* @__PURE__ */
|
|
6073
|
+
children: /* @__PURE__ */ jsx35("span", { className: spanClass, children: day.date.getDate() })
|
|
5931
6074
|
}
|
|
5932
6075
|
)
|
|
5933
6076
|
},
|
|
@@ -5936,28 +6079,28 @@ var Calendar = ({
|
|
|
5936
6079
|
}) })
|
|
5937
6080
|
] });
|
|
5938
6081
|
}
|
|
5939
|
-
return /* @__PURE__ */
|
|
5940
|
-
/* @__PURE__ */
|
|
5941
|
-
/* @__PURE__ */
|
|
5942
|
-
/* @__PURE__ */
|
|
6082
|
+
return /* @__PURE__ */ jsxs28("div", { className: cn("bg-background rounded-xl p-4", className), children: [
|
|
6083
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between mb-3.5", children: [
|
|
6084
|
+
/* @__PURE__ */ jsxs28("div", { className: "relative", ref: monthPickerContainerRef, children: [
|
|
6085
|
+
/* @__PURE__ */ jsxs28(
|
|
5943
6086
|
"button",
|
|
5944
6087
|
{
|
|
5945
6088
|
onClick: toggleMonthPicker,
|
|
5946
6089
|
className: "flex items-center gap-2 hover:bg-background-100 rounded px-2 py-1 transition-colors",
|
|
5947
6090
|
children: [
|
|
5948
|
-
/* @__PURE__ */
|
|
6091
|
+
/* @__PURE__ */ jsxs28("h2", { className: "text-lg font-semibold text-text-950", children: [
|
|
5949
6092
|
MONTH_NAMES[currentDate.getMonth()],
|
|
5950
6093
|
" ",
|
|
5951
6094
|
currentDate.getFullYear()
|
|
5952
6095
|
] }),
|
|
5953
|
-
/* @__PURE__ */
|
|
6096
|
+
/* @__PURE__ */ jsx35(
|
|
5954
6097
|
"svg",
|
|
5955
6098
|
{
|
|
5956
6099
|
className: `w-4 h-4 text-text-400 transition-transform ${isMonthPickerOpen ? "rotate-180" : ""}`,
|
|
5957
6100
|
fill: "none",
|
|
5958
6101
|
stroke: "currentColor",
|
|
5959
6102
|
viewBox: "0 0 24 24",
|
|
5960
|
-
children: /* @__PURE__ */
|
|
6103
|
+
children: /* @__PURE__ */ jsx35(
|
|
5961
6104
|
"path",
|
|
5962
6105
|
{
|
|
5963
6106
|
strokeLinecap: "round",
|
|
@@ -5971,7 +6114,7 @@ var Calendar = ({
|
|
|
5971
6114
|
]
|
|
5972
6115
|
}
|
|
5973
6116
|
),
|
|
5974
|
-
isMonthPickerOpen && /* @__PURE__ */
|
|
6117
|
+
isMonthPickerOpen && /* @__PURE__ */ jsx35(
|
|
5975
6118
|
MonthYearPicker,
|
|
5976
6119
|
{
|
|
5977
6120
|
monthPickerRef,
|
|
@@ -5982,21 +6125,21 @@ var Calendar = ({
|
|
|
5982
6125
|
}
|
|
5983
6126
|
)
|
|
5984
6127
|
] }),
|
|
5985
|
-
/* @__PURE__ */
|
|
5986
|
-
/* @__PURE__ */
|
|
6128
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-1", children: [
|
|
6129
|
+
/* @__PURE__ */ jsx35(
|
|
5987
6130
|
"button",
|
|
5988
6131
|
{
|
|
5989
6132
|
onClick: goToPreviousMonth,
|
|
5990
6133
|
className: "p-1 rounded-md hover:bg-background-100 transition-colors",
|
|
5991
6134
|
"aria-label": "M\xEAs anterior",
|
|
5992
|
-
children: /* @__PURE__ */
|
|
6135
|
+
children: /* @__PURE__ */ jsx35(
|
|
5993
6136
|
"svg",
|
|
5994
6137
|
{
|
|
5995
6138
|
className: "w-6 h-6 text-primary-950",
|
|
5996
6139
|
fill: "none",
|
|
5997
6140
|
stroke: "currentColor",
|
|
5998
6141
|
viewBox: "0 0 24 24",
|
|
5999
|
-
children: /* @__PURE__ */
|
|
6142
|
+
children: /* @__PURE__ */ jsx35(
|
|
6000
6143
|
"path",
|
|
6001
6144
|
{
|
|
6002
6145
|
strokeLinecap: "round",
|
|
@@ -6009,20 +6152,20 @@ var Calendar = ({
|
|
|
6009
6152
|
)
|
|
6010
6153
|
}
|
|
6011
6154
|
),
|
|
6012
|
-
/* @__PURE__ */
|
|
6155
|
+
/* @__PURE__ */ jsx35(
|
|
6013
6156
|
"button",
|
|
6014
6157
|
{
|
|
6015
6158
|
onClick: goToNextMonth,
|
|
6016
6159
|
className: "p-1 rounded-md hover:bg-background-100 transition-colors",
|
|
6017
6160
|
"aria-label": "Pr\xF3ximo m\xEAs",
|
|
6018
|
-
children: /* @__PURE__ */
|
|
6161
|
+
children: /* @__PURE__ */ jsx35(
|
|
6019
6162
|
"svg",
|
|
6020
6163
|
{
|
|
6021
6164
|
className: "w-6 h-6 text-primary-950",
|
|
6022
6165
|
fill: "none",
|
|
6023
6166
|
stroke: "currentColor",
|
|
6024
6167
|
viewBox: "0 0 24 24",
|
|
6025
|
-
children: /* @__PURE__ */
|
|
6168
|
+
children: /* @__PURE__ */ jsx35(
|
|
6026
6169
|
"path",
|
|
6027
6170
|
{
|
|
6028
6171
|
strokeLinecap: "round",
|
|
@@ -6037,7 +6180,7 @@ var Calendar = ({
|
|
|
6037
6180
|
)
|
|
6038
6181
|
] })
|
|
6039
6182
|
] }),
|
|
6040
|
-
/* @__PURE__ */
|
|
6183
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-7 mb-2", children: WEEK_DAYS.map((day) => /* @__PURE__ */ jsx35(
|
|
6041
6184
|
"div",
|
|
6042
6185
|
{
|
|
6043
6186
|
className: "h-4 flex items-center justify-center text-xs font-semibold text-text-500",
|
|
@@ -6045,13 +6188,13 @@ var Calendar = ({
|
|
|
6045
6188
|
},
|
|
6046
6189
|
day
|
|
6047
6190
|
)) }),
|
|
6048
|
-
/* @__PURE__ */
|
|
6191
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-7", children: calendarData.map((day) => {
|
|
6049
6192
|
if (!day.isCurrentMonth) {
|
|
6050
|
-
return /* @__PURE__ */
|
|
6193
|
+
return /* @__PURE__ */ jsx35(
|
|
6051
6194
|
"div",
|
|
6052
6195
|
{
|
|
6053
6196
|
className: "flex items-center justify-center",
|
|
6054
|
-
children: /* @__PURE__ */
|
|
6197
|
+
children: /* @__PURE__ */ jsx35("div", { className: "w-10 h-10" })
|
|
6055
6198
|
},
|
|
6056
6199
|
day.date.getTime()
|
|
6057
6200
|
);
|
|
@@ -6061,11 +6204,11 @@ var Calendar = ({
|
|
|
6061
6204
|
variant,
|
|
6062
6205
|
showActivities
|
|
6063
6206
|
);
|
|
6064
|
-
return /* @__PURE__ */
|
|
6207
|
+
return /* @__PURE__ */ jsx35(
|
|
6065
6208
|
"div",
|
|
6066
6209
|
{
|
|
6067
6210
|
className: "flex items-center justify-center",
|
|
6068
|
-
children: /* @__PURE__ */
|
|
6211
|
+
children: /* @__PURE__ */ jsx35(
|
|
6069
6212
|
"button",
|
|
6070
6213
|
{
|
|
6071
6214
|
className: `
|
|
@@ -6098,7 +6241,7 @@ import {
|
|
|
6098
6241
|
forwardRef as forwardRef12,
|
|
6099
6242
|
useEffect as useEffect15
|
|
6100
6243
|
} from "react";
|
|
6101
|
-
import { Fragment as Fragment5, jsx as
|
|
6244
|
+
import { Fragment as Fragment5, jsx as jsx36, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6102
6245
|
var SIZE_CLASSES11 = {
|
|
6103
6246
|
"extra-small": "w-screen max-w-[324px]",
|
|
6104
6247
|
small: "w-screen max-w-[378px]",
|
|
@@ -6163,14 +6306,14 @@ var AlertDialog = forwardRef12(
|
|
|
6163
6306
|
onCancel?.(cancelValue);
|
|
6164
6307
|
};
|
|
6165
6308
|
const sizeClasses = SIZE_CLASSES11[size];
|
|
6166
|
-
return /* @__PURE__ */
|
|
6309
|
+
return /* @__PURE__ */ jsx36(Fragment5, { children: isOpen && /* @__PURE__ */ jsx36(
|
|
6167
6310
|
"div",
|
|
6168
6311
|
{
|
|
6169
6312
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",
|
|
6170
6313
|
onClick: handleBackdropClick,
|
|
6171
6314
|
onKeyDown: handleBackdropKeyDown,
|
|
6172
6315
|
"data-testid": "alert-dialog-overlay",
|
|
6173
|
-
children: /* @__PURE__ */
|
|
6316
|
+
children: /* @__PURE__ */ jsxs29(
|
|
6174
6317
|
"div",
|
|
6175
6318
|
{
|
|
6176
6319
|
ref,
|
|
@@ -6181,7 +6324,7 @@ var AlertDialog = forwardRef12(
|
|
|
6181
6324
|
),
|
|
6182
6325
|
...props,
|
|
6183
6326
|
children: [
|
|
6184
|
-
/* @__PURE__ */
|
|
6327
|
+
/* @__PURE__ */ jsx36(
|
|
6185
6328
|
"h2",
|
|
6186
6329
|
{
|
|
6187
6330
|
id: "alert-dialog-title",
|
|
@@ -6189,7 +6332,7 @@ var AlertDialog = forwardRef12(
|
|
|
6189
6332
|
children: title
|
|
6190
6333
|
}
|
|
6191
6334
|
),
|
|
6192
|
-
/* @__PURE__ */
|
|
6335
|
+
/* @__PURE__ */ jsx36(
|
|
6193
6336
|
"p",
|
|
6194
6337
|
{
|
|
6195
6338
|
id: "alert-dialog-description",
|
|
@@ -6197,9 +6340,9 @@ var AlertDialog = forwardRef12(
|
|
|
6197
6340
|
children: description
|
|
6198
6341
|
}
|
|
6199
6342
|
),
|
|
6200
|
-
/* @__PURE__ */
|
|
6201
|
-
/* @__PURE__ */
|
|
6202
|
-
/* @__PURE__ */
|
|
6343
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex flex-row items-center justify-end pt-4 gap-3", children: [
|
|
6344
|
+
/* @__PURE__ */ jsx36(Button_default, { variant: "outline", size: "small", onClick: handleCancel, children: cancelButtonLabel }),
|
|
6345
|
+
/* @__PURE__ */ jsx36(
|
|
6203
6346
|
Button_default,
|
|
6204
6347
|
{
|
|
6205
6348
|
variant: "solid",
|
|
@@ -6221,11 +6364,11 @@ AlertDialog.displayName = "AlertDialog";
|
|
|
6221
6364
|
|
|
6222
6365
|
// src/components/LoadingModal/loadingModal.tsx
|
|
6223
6366
|
import { forwardRef as forwardRef13 } from "react";
|
|
6224
|
-
import { jsx as
|
|
6367
|
+
import { jsx as jsx37, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6225
6368
|
var LoadingModal = forwardRef13(
|
|
6226
6369
|
({ open, title = "Titulo...", subtitle = "Subtitulo...", ...props }, ref) => {
|
|
6227
6370
|
if (!open) return null;
|
|
6228
|
-
return /* @__PURE__ */
|
|
6371
|
+
return /* @__PURE__ */ jsx37(
|
|
6229
6372
|
"div",
|
|
6230
6373
|
{
|
|
6231
6374
|
ref,
|
|
@@ -6234,8 +6377,8 @@ var LoadingModal = forwardRef13(
|
|
|
6234
6377
|
"aria-describedby": "loading-modal-subtitle",
|
|
6235
6378
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-background/90 backdrop-blur-xs",
|
|
6236
6379
|
...props,
|
|
6237
|
-
children: /* @__PURE__ */
|
|
6238
|
-
/* @__PURE__ */
|
|
6380
|
+
children: /* @__PURE__ */ jsxs30("div", { className: "w-full max-w-[364px] flex flex-col items-center justify-center gap-14", children: [
|
|
6381
|
+
/* @__PURE__ */ jsx37("span", { className: "animate-spin", "aria-hidden": "true", children: /* @__PURE__ */ jsxs30(
|
|
6239
6382
|
"svg",
|
|
6240
6383
|
{
|
|
6241
6384
|
width: "102",
|
|
@@ -6246,14 +6389,14 @@ var LoadingModal = forwardRef13(
|
|
|
6246
6389
|
"aria-hidden": "true",
|
|
6247
6390
|
focusable: false,
|
|
6248
6391
|
children: [
|
|
6249
|
-
/* @__PURE__ */
|
|
6392
|
+
/* @__PURE__ */ jsx37(
|
|
6250
6393
|
"path",
|
|
6251
6394
|
{
|
|
6252
6395
|
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
6396
|
className: "fill-primary-100"
|
|
6254
6397
|
}
|
|
6255
6398
|
),
|
|
6256
|
-
/* @__PURE__ */
|
|
6399
|
+
/* @__PURE__ */ jsx37(
|
|
6257
6400
|
"path",
|
|
6258
6401
|
{
|
|
6259
6402
|
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 +6406,9 @@ var LoadingModal = forwardRef13(
|
|
|
6263
6406
|
]
|
|
6264
6407
|
}
|
|
6265
6408
|
) }),
|
|
6266
|
-
/* @__PURE__ */
|
|
6267
|
-
/* @__PURE__ */
|
|
6268
|
-
/* @__PURE__ */
|
|
6409
|
+
/* @__PURE__ */ jsxs30("span", { className: "flex flex-col gap-4 text-center", children: [
|
|
6410
|
+
/* @__PURE__ */ jsx37("p", { id: "loading-modal-title", className: "text-text-950 text-lg", children: title }),
|
|
6411
|
+
/* @__PURE__ */ jsx37("p", { id: "loading-modal-subtitle", className: "text-text-600 text-lg", children: subtitle })
|
|
6269
6412
|
] })
|
|
6270
6413
|
] })
|
|
6271
6414
|
}
|
|
@@ -6280,7 +6423,7 @@ import { useState as useState15, useEffect as useEffect17 } from "react";
|
|
|
6280
6423
|
|
|
6281
6424
|
// src/components/Skeleton/Skeleton.tsx
|
|
6282
6425
|
import { forwardRef as forwardRef14 } from "react";
|
|
6283
|
-
import { jsx as
|
|
6426
|
+
import { jsx as jsx38, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6284
6427
|
var SKELETON_ANIMATION_CLASSES = {
|
|
6285
6428
|
pulse: "animate-pulse",
|
|
6286
6429
|
none: ""
|
|
@@ -6317,13 +6460,13 @@ var Skeleton = forwardRef14(
|
|
|
6317
6460
|
height: typeof height === "number" ? `${height}px` : height
|
|
6318
6461
|
};
|
|
6319
6462
|
if (variant === "text" && lines > 1) {
|
|
6320
|
-
return /* @__PURE__ */
|
|
6463
|
+
return /* @__PURE__ */ jsx38(
|
|
6321
6464
|
"div",
|
|
6322
6465
|
{
|
|
6323
6466
|
ref,
|
|
6324
6467
|
className: cn("flex flex-col", spacingClass, className),
|
|
6325
6468
|
...props,
|
|
6326
|
-
children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */
|
|
6469
|
+
children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ jsx38(
|
|
6327
6470
|
"div",
|
|
6328
6471
|
{
|
|
6329
6472
|
className: cn(variantClass, animationClass),
|
|
@@ -6334,7 +6477,7 @@ var Skeleton = forwardRef14(
|
|
|
6334
6477
|
}
|
|
6335
6478
|
);
|
|
6336
6479
|
}
|
|
6337
|
-
return /* @__PURE__ */
|
|
6480
|
+
return /* @__PURE__ */ jsx38(
|
|
6338
6481
|
"div",
|
|
6339
6482
|
{
|
|
6340
6483
|
ref,
|
|
@@ -6347,11 +6490,11 @@ var Skeleton = forwardRef14(
|
|
|
6347
6490
|
}
|
|
6348
6491
|
);
|
|
6349
6492
|
var SkeletonText = forwardRef14(
|
|
6350
|
-
(props, ref) => /* @__PURE__ */
|
|
6493
|
+
(props, ref) => /* @__PURE__ */ jsx38(Skeleton, { ref, variant: "text", ...props })
|
|
6351
6494
|
);
|
|
6352
|
-
var SkeletonCircle = forwardRef14((props, ref) => /* @__PURE__ */
|
|
6353
|
-
var SkeletonRectangle = forwardRef14((props, ref) => /* @__PURE__ */
|
|
6354
|
-
var SkeletonRounded = forwardRef14((props, ref) => /* @__PURE__ */
|
|
6495
|
+
var SkeletonCircle = forwardRef14((props, ref) => /* @__PURE__ */ jsx38(Skeleton, { ref, variant: "circular", ...props }));
|
|
6496
|
+
var SkeletonRectangle = forwardRef14((props, ref) => /* @__PURE__ */ jsx38(Skeleton, { ref, variant: "rectangular", ...props }));
|
|
6497
|
+
var SkeletonRounded = forwardRef14((props, ref) => /* @__PURE__ */ jsx38(Skeleton, { ref, variant: "rounded", ...props }));
|
|
6355
6498
|
var SkeletonCard = forwardRef14(
|
|
6356
6499
|
({
|
|
6357
6500
|
showAvatar = true,
|
|
@@ -6362,7 +6505,7 @@ var SkeletonCard = forwardRef14(
|
|
|
6362
6505
|
className = "",
|
|
6363
6506
|
...props
|
|
6364
6507
|
}, ref) => {
|
|
6365
|
-
return /* @__PURE__ */
|
|
6508
|
+
return /* @__PURE__ */ jsxs31(
|
|
6366
6509
|
"div",
|
|
6367
6510
|
{
|
|
6368
6511
|
ref,
|
|
@@ -6372,16 +6515,16 @@ var SkeletonCard = forwardRef14(
|
|
|
6372
6515
|
),
|
|
6373
6516
|
...props,
|
|
6374
6517
|
children: [
|
|
6375
|
-
/* @__PURE__ */
|
|
6376
|
-
showAvatar && /* @__PURE__ */
|
|
6377
|
-
/* @__PURE__ */
|
|
6378
|
-
showTitle && /* @__PURE__ */
|
|
6379
|
-
showDescription && /* @__PURE__ */
|
|
6518
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex items-start space-x-3", children: [
|
|
6519
|
+
showAvatar && /* @__PURE__ */ jsx38(SkeletonCircle, { width: 40, height: 40 }),
|
|
6520
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex-1 space-y-2", children: [
|
|
6521
|
+
showTitle && /* @__PURE__ */ jsx38(SkeletonText, { width: "60%", height: 20 }),
|
|
6522
|
+
showDescription && /* @__PURE__ */ jsx38(SkeletonText, { lines, spacing: "small" })
|
|
6380
6523
|
] })
|
|
6381
6524
|
] }),
|
|
6382
|
-
showActions && /* @__PURE__ */
|
|
6383
|
-
/* @__PURE__ */
|
|
6384
|
-
/* @__PURE__ */
|
|
6525
|
+
showActions && /* @__PURE__ */ jsxs31("div", { className: "flex justify-end space-x-2 mt-4", children: [
|
|
6526
|
+
/* @__PURE__ */ jsx38(SkeletonRectangle, { width: 80, height: 32 }),
|
|
6527
|
+
/* @__PURE__ */ jsx38(SkeletonRectangle, { width: 80, height: 32 })
|
|
6385
6528
|
] })
|
|
6386
6529
|
]
|
|
6387
6530
|
}
|
|
@@ -6398,19 +6541,19 @@ var SkeletonList = forwardRef14(
|
|
|
6398
6541
|
className = "",
|
|
6399
6542
|
...props
|
|
6400
6543
|
}, ref) => {
|
|
6401
|
-
return /* @__PURE__ */
|
|
6402
|
-
showAvatar && /* @__PURE__ */
|
|
6403
|
-
/* @__PURE__ */
|
|
6404
|
-
showTitle && /* @__PURE__ */
|
|
6405
|
-
showDescription && /* @__PURE__ */
|
|
6544
|
+
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: [
|
|
6545
|
+
showAvatar && /* @__PURE__ */ jsx38(SkeletonCircle, { width: 32, height: 32 }),
|
|
6546
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex-1 space-y-2", children: [
|
|
6547
|
+
showTitle && /* @__PURE__ */ jsx38(SkeletonText, { width: "40%", height: 16 }),
|
|
6548
|
+
showDescription && /* @__PURE__ */ jsx38(SkeletonText, { lines, spacing: "small" })
|
|
6406
6549
|
] })
|
|
6407
6550
|
] }, index)) });
|
|
6408
6551
|
}
|
|
6409
6552
|
);
|
|
6410
6553
|
var SkeletonTable = forwardRef14(
|
|
6411
6554
|
({ rows = 5, columns = 4, showHeader = true, className = "", ...props }, ref) => {
|
|
6412
|
-
return /* @__PURE__ */
|
|
6413
|
-
showHeader && /* @__PURE__ */
|
|
6555
|
+
return /* @__PURE__ */ jsxs31("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6556
|
+
showHeader && /* @__PURE__ */ jsx38("div", { className: "flex space-x-2 mb-3", children: Array.from({ length: columns }, (_, index) => /* @__PURE__ */ jsx38(
|
|
6414
6557
|
SkeletonText,
|
|
6415
6558
|
{
|
|
6416
6559
|
width: `${100 / columns}%`,
|
|
@@ -6418,7 +6561,7 @@ var SkeletonTable = forwardRef14(
|
|
|
6418
6561
|
},
|
|
6419
6562
|
index
|
|
6420
6563
|
)) }),
|
|
6421
|
-
/* @__PURE__ */
|
|
6564
|
+
/* @__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
6565
|
SkeletonText,
|
|
6423
6566
|
{
|
|
6424
6567
|
width: `${100 / columns}%`,
|
|
@@ -6755,14 +6898,14 @@ var createNotificationStore = (apiClient) => {
|
|
|
6755
6898
|
var mock_content_default = "./mock-content-K2CDVG6P.png";
|
|
6756
6899
|
|
|
6757
6900
|
// src/components/NotificationCard/NotificationCard.tsx
|
|
6758
|
-
import { Fragment as Fragment6, jsx as
|
|
6901
|
+
import { Fragment as Fragment6, jsx as jsx39, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6759
6902
|
var NotificationEmpty = ({
|
|
6760
6903
|
emptyStateImage,
|
|
6761
6904
|
emptyStateTitle = "Nenhuma notifica\xE7\xE3o no momento",
|
|
6762
6905
|
emptyStateDescription = "Voc\xEA est\xE1 em dia com todas as novidades. Volte depois para conferir atualiza\xE7\xF5es!"
|
|
6763
6906
|
}) => {
|
|
6764
|
-
return /* @__PURE__ */
|
|
6765
|
-
emptyStateImage && /* @__PURE__ */
|
|
6907
|
+
return /* @__PURE__ */ jsxs32("div", { className: "flex flex-col items-center justify-center gap-4 p-6 w-full", children: [
|
|
6908
|
+
emptyStateImage && /* @__PURE__ */ jsx39("div", { className: "w-20 h-20 flex items-center justify-center", children: /* @__PURE__ */ jsx39(
|
|
6766
6909
|
"img",
|
|
6767
6910
|
{
|
|
6768
6911
|
src: emptyStateImage,
|
|
@@ -6772,23 +6915,23 @@ var NotificationEmpty = ({
|
|
|
6772
6915
|
className: "object-contain"
|
|
6773
6916
|
}
|
|
6774
6917
|
) }),
|
|
6775
|
-
/* @__PURE__ */
|
|
6776
|
-
/* @__PURE__ */
|
|
6918
|
+
/* @__PURE__ */ jsx39("h3", { className: "text-xl font-semibold text-text-950 text-center leading-[23px]", children: emptyStateTitle }),
|
|
6919
|
+
/* @__PURE__ */ jsx39("p", { className: "text-sm font-normal text-text-400 text-center max-w-[316px] leading-[21px]", children: emptyStateDescription })
|
|
6777
6920
|
] });
|
|
6778
6921
|
};
|
|
6779
6922
|
var NotificationHeader = ({
|
|
6780
6923
|
unreadCount,
|
|
6781
6924
|
variant = "modal"
|
|
6782
6925
|
}) => {
|
|
6783
|
-
return /* @__PURE__ */
|
|
6784
|
-
variant === "modal" ? /* @__PURE__ */
|
|
6785
|
-
unreadCount > 0 && /* @__PURE__ */
|
|
6926
|
+
return /* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-between gap-2", children: [
|
|
6927
|
+
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" }),
|
|
6928
|
+
unreadCount > 0 && /* @__PURE__ */ jsx39(
|
|
6786
6929
|
Badge_default,
|
|
6787
6930
|
{
|
|
6788
6931
|
variant: "solid",
|
|
6789
6932
|
action: "info",
|
|
6790
6933
|
size: "small",
|
|
6791
|
-
iconLeft: /* @__PURE__ */
|
|
6934
|
+
iconLeft: /* @__PURE__ */ jsx39(Bell2, { size: 12, "aria-hidden": "true", focusable: "false" }),
|
|
6792
6935
|
className: "border-0",
|
|
6793
6936
|
children: unreadCount === 1 ? "1 n\xE3o lida" : `${unreadCount} n\xE3o lidas`
|
|
6794
6937
|
}
|
|
@@ -6824,7 +6967,7 @@ var SingleNotificationCard = ({
|
|
|
6824
6967
|
onNavigate();
|
|
6825
6968
|
}
|
|
6826
6969
|
};
|
|
6827
|
-
return /* @__PURE__ */
|
|
6970
|
+
return /* @__PURE__ */ jsxs32(
|
|
6828
6971
|
"div",
|
|
6829
6972
|
{
|
|
6830
6973
|
className: cn(
|
|
@@ -6833,20 +6976,20 @@ var SingleNotificationCard = ({
|
|
|
6833
6976
|
className
|
|
6834
6977
|
),
|
|
6835
6978
|
children: [
|
|
6836
|
-
/* @__PURE__ */
|
|
6837
|
-
!isRead && /* @__PURE__ */
|
|
6838
|
-
/* @__PURE__ */
|
|
6839
|
-
/* @__PURE__ */
|
|
6840
|
-
/* @__PURE__ */
|
|
6979
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2 w-full", children: [
|
|
6980
|
+
!isRead && /* @__PURE__ */ jsx39("div", { className: "w-[7px] h-[7px] bg-info-300 rounded-full flex-shrink-0" }),
|
|
6981
|
+
/* @__PURE__ */ jsx39("h3", { className: "font-bold text-sm leading-4 text-text-950 flex-grow", children: title }),
|
|
6982
|
+
/* @__PURE__ */ jsxs32(DropdownMenu_default, { children: [
|
|
6983
|
+
/* @__PURE__ */ jsx39(
|
|
6841
6984
|
DropdownMenuTrigger,
|
|
6842
6985
|
{
|
|
6843
6986
|
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
6987
|
"aria-label": "Menu de a\xE7\xF5es",
|
|
6845
|
-
children: /* @__PURE__ */
|
|
6988
|
+
children: /* @__PURE__ */ jsx39(DotsThreeVertical, { size: 24 })
|
|
6846
6989
|
}
|
|
6847
6990
|
),
|
|
6848
|
-
/* @__PURE__ */
|
|
6849
|
-
!isRead && /* @__PURE__ */
|
|
6991
|
+
/* @__PURE__ */ jsxs32(DropdownMenuContent, { align: "end", className: "min-w-[160px]", children: [
|
|
6992
|
+
!isRead && /* @__PURE__ */ jsx39(
|
|
6850
6993
|
DropdownMenuItem,
|
|
6851
6994
|
{
|
|
6852
6995
|
onClick: handleMarkAsRead,
|
|
@@ -6854,14 +6997,14 @@ var SingleNotificationCard = ({
|
|
|
6854
6997
|
children: "Marcar como lida"
|
|
6855
6998
|
}
|
|
6856
6999
|
),
|
|
6857
|
-
/* @__PURE__ */
|
|
7000
|
+
/* @__PURE__ */ jsx39(DropdownMenuItem, { onClick: handleDelete, className: "text-error-600", children: "Deletar" })
|
|
6858
7001
|
] })
|
|
6859
7002
|
] })
|
|
6860
7003
|
] }),
|
|
6861
|
-
/* @__PURE__ */
|
|
6862
|
-
/* @__PURE__ */
|
|
6863
|
-
/* @__PURE__ */
|
|
6864
|
-
onNavigate && actionLabel && /* @__PURE__ */
|
|
7004
|
+
/* @__PURE__ */ jsx39("p", { className: "text-sm leading-[21px] text-text-800 w-full", children: message }),
|
|
7005
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-between w-full", children: [
|
|
7006
|
+
/* @__PURE__ */ jsx39("span", { className: "text-sm font-medium text-text-400", children: time }),
|
|
7007
|
+
onNavigate && actionLabel && /* @__PURE__ */ jsx39(
|
|
6865
7008
|
"button",
|
|
6866
7009
|
{
|
|
6867
7010
|
type: "button",
|
|
@@ -6901,9 +7044,9 @@ var NotificationList = ({
|
|
|
6901
7044
|
}
|
|
6902
7045
|
};
|
|
6903
7046
|
if (error) {
|
|
6904
|
-
return /* @__PURE__ */
|
|
6905
|
-
/* @__PURE__ */
|
|
6906
|
-
onRetry && /* @__PURE__ */
|
|
7047
|
+
return /* @__PURE__ */ jsxs32("div", { className: "flex flex-col items-center gap-4 p-6 w-full", children: [
|
|
7048
|
+
/* @__PURE__ */ jsx39("p", { className: "text-sm text-error-600", children: error }),
|
|
7049
|
+
onRetry && /* @__PURE__ */ jsx39(
|
|
6907
7050
|
"button",
|
|
6908
7051
|
{
|
|
6909
7052
|
type: "button",
|
|
@@ -6915,8 +7058,8 @@ var NotificationList = ({
|
|
|
6915
7058
|
] });
|
|
6916
7059
|
}
|
|
6917
7060
|
if (loading) {
|
|
6918
|
-
return /* @__PURE__ */
|
|
6919
|
-
(skeletonId) => /* @__PURE__ */
|
|
7061
|
+
return /* @__PURE__ */ jsx39("div", { className: "flex flex-col gap-0 w-full", children: ["skeleton-first", "skeleton-second", "skeleton-third"].map(
|
|
7062
|
+
(skeletonId) => /* @__PURE__ */ jsx39(
|
|
6920
7063
|
SkeletonCard,
|
|
6921
7064
|
{
|
|
6922
7065
|
className: "p-4 border-b border-border-200"
|
|
@@ -6926,11 +7069,11 @@ var NotificationList = ({
|
|
|
6926
7069
|
) });
|
|
6927
7070
|
}
|
|
6928
7071
|
if (!groupedNotifications || groupedNotifications.length === 0) {
|
|
6929
|
-
return renderEmpty ? /* @__PURE__ */
|
|
7072
|
+
return renderEmpty ? /* @__PURE__ */ jsx39("div", { className: "w-full", children: renderEmpty() }) : /* @__PURE__ */ jsx39(NotificationEmpty, {});
|
|
6930
7073
|
}
|
|
6931
|
-
return /* @__PURE__ */
|
|
6932
|
-
groupedNotifications.map((group, idx) => /* @__PURE__ */
|
|
6933
|
-
/* @__PURE__ */
|
|
7074
|
+
return /* @__PURE__ */ jsxs32("div", { className: cn("flex flex-col gap-0 w-full", className), children: [
|
|
7075
|
+
groupedNotifications.map((group, idx) => /* @__PURE__ */ jsxs32("div", { className: "flex flex-col", children: [
|
|
7076
|
+
/* @__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
7077
|
group.notifications.map((notification) => {
|
|
6935
7078
|
const isGlobalNotification = !notification.entityType && !notification.entityId && !notification.activity && !notification.goal;
|
|
6936
7079
|
let navigationHandler;
|
|
@@ -6950,7 +7093,7 @@ var NotificationList = ({
|
|
|
6950
7093
|
notification.entityType ?? void 0
|
|
6951
7094
|
);
|
|
6952
7095
|
}
|
|
6953
|
-
return /* @__PURE__ */
|
|
7096
|
+
return /* @__PURE__ */ jsx39(
|
|
6954
7097
|
SingleNotificationCard,
|
|
6955
7098
|
{
|
|
6956
7099
|
title: notification.title,
|
|
@@ -6966,7 +7109,7 @@ var NotificationList = ({
|
|
|
6966
7109
|
);
|
|
6967
7110
|
})
|
|
6968
7111
|
] }, `${group.label}-${idx}`)),
|
|
6969
|
-
/* @__PURE__ */
|
|
7112
|
+
/* @__PURE__ */ jsx39(
|
|
6970
7113
|
Modal_default,
|
|
6971
7114
|
{
|
|
6972
7115
|
isOpen: globalNotificationModal.isOpen,
|
|
@@ -7024,7 +7167,7 @@ var NotificationCenter = ({
|
|
|
7024
7167
|
onFetchNotifications?.();
|
|
7025
7168
|
}
|
|
7026
7169
|
}, [isActive, onFetchNotifications]);
|
|
7027
|
-
const renderEmptyState = () => /* @__PURE__ */
|
|
7170
|
+
const renderEmptyState = () => /* @__PURE__ */ jsx39(
|
|
7028
7171
|
NotificationEmpty,
|
|
7029
7172
|
{
|
|
7030
7173
|
emptyStateImage,
|
|
@@ -7033,17 +7176,17 @@ var NotificationCenter = ({
|
|
|
7033
7176
|
}
|
|
7034
7177
|
);
|
|
7035
7178
|
if (isMobile) {
|
|
7036
|
-
return /* @__PURE__ */
|
|
7037
|
-
/* @__PURE__ */
|
|
7179
|
+
return /* @__PURE__ */ jsxs32(Fragment6, { children: [
|
|
7180
|
+
/* @__PURE__ */ jsx39(
|
|
7038
7181
|
IconButton_default,
|
|
7039
7182
|
{
|
|
7040
7183
|
active: isModalOpen,
|
|
7041
7184
|
onClick: handleMobileClick,
|
|
7042
|
-
icon: /* @__PURE__ */
|
|
7185
|
+
icon: /* @__PURE__ */ jsx39(Bell2, { size: 24, className: "text-primary" }),
|
|
7043
7186
|
className
|
|
7044
7187
|
}
|
|
7045
7188
|
),
|
|
7046
|
-
/* @__PURE__ */
|
|
7189
|
+
/* @__PURE__ */ jsx39(
|
|
7047
7190
|
Modal_default,
|
|
7048
7191
|
{
|
|
7049
7192
|
isOpen: isModalOpen,
|
|
@@ -7052,10 +7195,10 @@ var NotificationCenter = ({
|
|
|
7052
7195
|
size: "md",
|
|
7053
7196
|
hideCloseButton: false,
|
|
7054
7197
|
closeOnEscape: true,
|
|
7055
|
-
children: /* @__PURE__ */
|
|
7056
|
-
/* @__PURE__ */
|
|
7057
|
-
/* @__PURE__ */
|
|
7058
|
-
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */
|
|
7198
|
+
children: /* @__PURE__ */ jsxs32("div", { className: "flex flex-col h-full max-h-[80vh]", children: [
|
|
7199
|
+
/* @__PURE__ */ jsxs32("div", { className: "px-0 pb-3 border-b border-border-200", children: [
|
|
7200
|
+
/* @__PURE__ */ jsx39(NotificationHeader, { unreadCount, variant: "modal" }),
|
|
7201
|
+
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ jsx39(
|
|
7059
7202
|
"button",
|
|
7060
7203
|
{
|
|
7061
7204
|
type: "button",
|
|
@@ -7065,7 +7208,7 @@ var NotificationCenter = ({
|
|
|
7065
7208
|
}
|
|
7066
7209
|
)
|
|
7067
7210
|
] }),
|
|
7068
|
-
/* @__PURE__ */
|
|
7211
|
+
/* @__PURE__ */ jsx39("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsx39(
|
|
7069
7212
|
NotificationList,
|
|
7070
7213
|
{
|
|
7071
7214
|
groupedNotifications,
|
|
@@ -7093,7 +7236,7 @@ var NotificationCenter = ({
|
|
|
7093
7236
|
] })
|
|
7094
7237
|
}
|
|
7095
7238
|
),
|
|
7096
|
-
/* @__PURE__ */
|
|
7239
|
+
/* @__PURE__ */ jsx39(
|
|
7097
7240
|
Modal_default,
|
|
7098
7241
|
{
|
|
7099
7242
|
isOpen: globalNotificationModal.isOpen,
|
|
@@ -7109,18 +7252,18 @@ var NotificationCenter = ({
|
|
|
7109
7252
|
)
|
|
7110
7253
|
] });
|
|
7111
7254
|
}
|
|
7112
|
-
return /* @__PURE__ */
|
|
7113
|
-
/* @__PURE__ */
|
|
7255
|
+
return /* @__PURE__ */ jsxs32(Fragment6, { children: [
|
|
7256
|
+
/* @__PURE__ */ jsxs32(
|
|
7114
7257
|
DropdownMenu_default,
|
|
7115
7258
|
{
|
|
7116
7259
|
...typeof isActive === "boolean" ? { open: isActive, onOpenChange: handleOpenChange } : { onOpenChange: handleOpenChange },
|
|
7117
7260
|
children: [
|
|
7118
|
-
/* @__PURE__ */
|
|
7261
|
+
/* @__PURE__ */ jsx39(DropdownMenuTrigger, { className: "text-primary cursor-pointer", children: /* @__PURE__ */ jsx39(
|
|
7119
7262
|
IconButton_default,
|
|
7120
7263
|
{
|
|
7121
7264
|
active: isActive,
|
|
7122
7265
|
onClick: handleDesktopClick,
|
|
7123
|
-
icon: /* @__PURE__ */
|
|
7266
|
+
icon: /* @__PURE__ */ jsx39(
|
|
7124
7267
|
Bell2,
|
|
7125
7268
|
{
|
|
7126
7269
|
size: 24,
|
|
@@ -7130,22 +7273,22 @@ var NotificationCenter = ({
|
|
|
7130
7273
|
className
|
|
7131
7274
|
}
|
|
7132
7275
|
) }),
|
|
7133
|
-
/* @__PURE__ */
|
|
7276
|
+
/* @__PURE__ */ jsx39(
|
|
7134
7277
|
DropdownMenuContent,
|
|
7135
7278
|
{
|
|
7136
7279
|
className: "min-w-[320px] max-w-[400px] max-h-[500px] overflow-hidden",
|
|
7137
7280
|
side: "bottom",
|
|
7138
7281
|
align: "end",
|
|
7139
|
-
children: /* @__PURE__ */
|
|
7140
|
-
/* @__PURE__ */
|
|
7141
|
-
/* @__PURE__ */
|
|
7282
|
+
children: /* @__PURE__ */ jsxs32("div", { className: "flex flex-col", children: [
|
|
7283
|
+
/* @__PURE__ */ jsxs32("div", { className: "px-4 py-3 border-b border-border-200", children: [
|
|
7284
|
+
/* @__PURE__ */ jsx39(
|
|
7142
7285
|
NotificationHeader,
|
|
7143
7286
|
{
|
|
7144
7287
|
unreadCount,
|
|
7145
7288
|
variant: "dropdown"
|
|
7146
7289
|
}
|
|
7147
7290
|
),
|
|
7148
|
-
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */
|
|
7291
|
+
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ jsx39(
|
|
7149
7292
|
"button",
|
|
7150
7293
|
{
|
|
7151
7294
|
type: "button",
|
|
@@ -7155,7 +7298,7 @@ var NotificationCenter = ({
|
|
|
7155
7298
|
}
|
|
7156
7299
|
)
|
|
7157
7300
|
] }),
|
|
7158
|
-
/* @__PURE__ */
|
|
7301
|
+
/* @__PURE__ */ jsx39("div", { className: "max-h-[350px] overflow-y-auto", children: /* @__PURE__ */ jsx39(
|
|
7159
7302
|
NotificationList,
|
|
7160
7303
|
{
|
|
7161
7304
|
groupedNotifications,
|
|
@@ -7182,7 +7325,7 @@ var NotificationCenter = ({
|
|
|
7182
7325
|
]
|
|
7183
7326
|
}
|
|
7184
7327
|
),
|
|
7185
|
-
/* @__PURE__ */
|
|
7328
|
+
/* @__PURE__ */ jsx39(
|
|
7186
7329
|
Modal_default,
|
|
7187
7330
|
{
|
|
7188
7331
|
isOpen: globalNotificationModal.isOpen,
|
|
@@ -7201,7 +7344,7 @@ var NotificationCenter = ({
|
|
|
7201
7344
|
var NotificationCard = (props) => {
|
|
7202
7345
|
switch (props.mode) {
|
|
7203
7346
|
case "single":
|
|
7204
|
-
return /* @__PURE__ */
|
|
7347
|
+
return /* @__PURE__ */ jsx39(
|
|
7205
7348
|
SingleNotificationCard,
|
|
7206
7349
|
{
|
|
7207
7350
|
title: props.title,
|
|
@@ -7216,7 +7359,7 @@ var NotificationCard = (props) => {
|
|
|
7216
7359
|
}
|
|
7217
7360
|
);
|
|
7218
7361
|
case "list":
|
|
7219
|
-
return /* @__PURE__ */
|
|
7362
|
+
return /* @__PURE__ */ jsx39(
|
|
7220
7363
|
NotificationList,
|
|
7221
7364
|
{
|
|
7222
7365
|
groupedNotifications: props.groupedNotifications ?? (props.notifications ? [
|
|
@@ -7239,19 +7382,19 @@ var NotificationCard = (props) => {
|
|
|
7239
7382
|
}
|
|
7240
7383
|
);
|
|
7241
7384
|
case "center":
|
|
7242
|
-
return /* @__PURE__ */
|
|
7385
|
+
return /* @__PURE__ */ jsx39(NotificationCenter, { ...props });
|
|
7243
7386
|
default:
|
|
7244
|
-
return /* @__PURE__ */
|
|
7387
|
+
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
7388
|
}
|
|
7246
7389
|
};
|
|
7247
7390
|
var NotificationCard_default = NotificationCard;
|
|
7248
7391
|
|
|
7249
7392
|
// src/assets/icons/subjects/BookOpenText.tsx
|
|
7250
|
-
import { jsx as
|
|
7393
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
7251
7394
|
var BookOpenText = ({
|
|
7252
7395
|
size,
|
|
7253
7396
|
color
|
|
7254
|
-
}) => /* @__PURE__ */
|
|
7397
|
+
}) => /* @__PURE__ */ jsx40(
|
|
7255
7398
|
"svg",
|
|
7256
7399
|
{
|
|
7257
7400
|
width: size,
|
|
@@ -7259,7 +7402,7 @@ var BookOpenText = ({
|
|
|
7259
7402
|
viewBox: "0 0 32 32",
|
|
7260
7403
|
fill: "none",
|
|
7261
7404
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7262
|
-
children: /* @__PURE__ */
|
|
7405
|
+
children: /* @__PURE__ */ jsx40(
|
|
7263
7406
|
"path",
|
|
7264
7407
|
{
|
|
7265
7408
|
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 +7413,8 @@ var BookOpenText = ({
|
|
|
7270
7413
|
);
|
|
7271
7414
|
|
|
7272
7415
|
// src/assets/icons/subjects/ChatEN.tsx
|
|
7273
|
-
import { jsx as
|
|
7274
|
-
var ChatEN = ({ size, color }) => /* @__PURE__ */
|
|
7416
|
+
import { jsx as jsx41, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
7417
|
+
var ChatEN = ({ size, color }) => /* @__PURE__ */ jsxs33(
|
|
7275
7418
|
"svg",
|
|
7276
7419
|
{
|
|
7277
7420
|
width: size,
|
|
@@ -7280,21 +7423,21 @@ var ChatEN = ({ size, color }) => /* @__PURE__ */ jsxs32(
|
|
|
7280
7423
|
fill: "none",
|
|
7281
7424
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7282
7425
|
children: [
|
|
7283
|
-
/* @__PURE__ */
|
|
7426
|
+
/* @__PURE__ */ jsx41(
|
|
7284
7427
|
"path",
|
|
7285
7428
|
{
|
|
7286
7429
|
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
7430
|
fill: color
|
|
7288
7431
|
}
|
|
7289
7432
|
),
|
|
7290
|
-
/* @__PURE__ */
|
|
7433
|
+
/* @__PURE__ */ jsx41(
|
|
7291
7434
|
"path",
|
|
7292
7435
|
{
|
|
7293
7436
|
d: "M22.5488 12V20.5312H21.0781L17.252 14.4199V20.5312H15.7812V12H17.252L21.0898 18.123V12H22.5488Z",
|
|
7294
7437
|
fill: color
|
|
7295
7438
|
}
|
|
7296
7439
|
),
|
|
7297
|
-
/* @__PURE__ */
|
|
7440
|
+
/* @__PURE__ */ jsx41(
|
|
7298
7441
|
"path",
|
|
7299
7442
|
{
|
|
7300
7443
|
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 +7449,8 @@ var ChatEN = ({ size, color }) => /* @__PURE__ */ jsxs32(
|
|
|
7306
7449
|
);
|
|
7307
7450
|
|
|
7308
7451
|
// src/assets/icons/subjects/ChatES.tsx
|
|
7309
|
-
import { jsx as
|
|
7310
|
-
var ChatES = ({ size, color }) => /* @__PURE__ */
|
|
7452
|
+
import { jsx as jsx42, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
7453
|
+
var ChatES = ({ size, color }) => /* @__PURE__ */ jsxs34(
|
|
7311
7454
|
"svg",
|
|
7312
7455
|
{
|
|
7313
7456
|
width: size,
|
|
@@ -7316,21 +7459,21 @@ var ChatES = ({ size, color }) => /* @__PURE__ */ jsxs33(
|
|
|
7316
7459
|
fill: "none",
|
|
7317
7460
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7318
7461
|
children: [
|
|
7319
|
-
/* @__PURE__ */
|
|
7462
|
+
/* @__PURE__ */ jsx42(
|
|
7320
7463
|
"path",
|
|
7321
7464
|
{
|
|
7322
7465
|
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
7466
|
fill: color
|
|
7324
7467
|
}
|
|
7325
7468
|
),
|
|
7326
|
-
/* @__PURE__ */
|
|
7469
|
+
/* @__PURE__ */ jsx42(
|
|
7327
7470
|
"path",
|
|
7328
7471
|
{
|
|
7329
7472
|
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
7473
|
fill: color
|
|
7331
7474
|
}
|
|
7332
7475
|
),
|
|
7333
|
-
/* @__PURE__ */
|
|
7476
|
+
/* @__PURE__ */ jsx42(
|
|
7334
7477
|
"path",
|
|
7335
7478
|
{
|
|
7336
7479
|
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 +7485,8 @@ var ChatES = ({ size, color }) => /* @__PURE__ */ jsxs33(
|
|
|
7342
7485
|
);
|
|
7343
7486
|
|
|
7344
7487
|
// src/assets/icons/subjects/ChatPT.tsx
|
|
7345
|
-
import { jsx as
|
|
7346
|
-
var ChatPT = ({ size, color }) => /* @__PURE__ */
|
|
7488
|
+
import { jsx as jsx43, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7489
|
+
var ChatPT = ({ size, color }) => /* @__PURE__ */ jsxs35(
|
|
7347
7490
|
"svg",
|
|
7348
7491
|
{
|
|
7349
7492
|
width: size,
|
|
@@ -7352,21 +7495,21 @@ var ChatPT = ({ size, color }) => /* @__PURE__ */ jsxs34(
|
|
|
7352
7495
|
fill: "none",
|
|
7353
7496
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7354
7497
|
children: [
|
|
7355
|
-
/* @__PURE__ */
|
|
7498
|
+
/* @__PURE__ */ jsx43(
|
|
7356
7499
|
"path",
|
|
7357
7500
|
{
|
|
7358
7501
|
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
7502
|
fill: color
|
|
7360
7503
|
}
|
|
7361
7504
|
),
|
|
7362
|
-
/* @__PURE__ */
|
|
7505
|
+
/* @__PURE__ */ jsx43(
|
|
7363
7506
|
"path",
|
|
7364
7507
|
{
|
|
7365
7508
|
d: "M21.1758 12V20.5312H19.7168V12H21.1758ZM23.8535 12V13.1719H17.0625V12H23.8535Z",
|
|
7366
7509
|
fill: color
|
|
7367
7510
|
}
|
|
7368
7511
|
),
|
|
7369
|
-
/* @__PURE__ */
|
|
7512
|
+
/* @__PURE__ */ jsx43(
|
|
7370
7513
|
"path",
|
|
7371
7514
|
{
|
|
7372
7515
|
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 +7521,11 @@ var ChatPT = ({ size, color }) => /* @__PURE__ */ jsxs34(
|
|
|
7378
7521
|
);
|
|
7379
7522
|
|
|
7380
7523
|
// src/assets/icons/subjects/HeadCircuit.tsx
|
|
7381
|
-
import { jsx as
|
|
7524
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
7382
7525
|
var HeadCircuit = ({
|
|
7383
7526
|
size,
|
|
7384
7527
|
color
|
|
7385
|
-
}) => /* @__PURE__ */
|
|
7528
|
+
}) => /* @__PURE__ */ jsx44(
|
|
7386
7529
|
"svg",
|
|
7387
7530
|
{
|
|
7388
7531
|
width: size,
|
|
@@ -7390,7 +7533,7 @@ var HeadCircuit = ({
|
|
|
7390
7533
|
viewBox: "0 0 32 32",
|
|
7391
7534
|
fill: "none",
|
|
7392
7535
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7393
|
-
children: /* @__PURE__ */
|
|
7536
|
+
children: /* @__PURE__ */ jsx44(
|
|
7394
7537
|
"path",
|
|
7395
7538
|
{
|
|
7396
7539
|
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 +7544,11 @@ var HeadCircuit = ({
|
|
|
7401
7544
|
);
|
|
7402
7545
|
|
|
7403
7546
|
// src/assets/icons/subjects/Microscope.tsx
|
|
7404
|
-
import { jsx as
|
|
7547
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
7405
7548
|
var Microscope = ({
|
|
7406
7549
|
size,
|
|
7407
7550
|
color
|
|
7408
|
-
}) => /* @__PURE__ */
|
|
7551
|
+
}) => /* @__PURE__ */ jsx45(
|
|
7409
7552
|
"svg",
|
|
7410
7553
|
{
|
|
7411
7554
|
width: size,
|
|
@@ -7413,7 +7556,7 @@ var Microscope = ({
|
|
|
7413
7556
|
viewBox: "0 0 32 32",
|
|
7414
7557
|
fill: "none",
|
|
7415
7558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7416
|
-
children: /* @__PURE__ */
|
|
7559
|
+
children: /* @__PURE__ */ jsx45(
|
|
7417
7560
|
"path",
|
|
7418
7561
|
{
|
|
7419
7562
|
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 +7601,92 @@ import {
|
|
|
7458
7601
|
Person,
|
|
7459
7602
|
Scroll
|
|
7460
7603
|
} from "phosphor-react";
|
|
7461
|
-
import { jsx as
|
|
7604
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
7462
7605
|
var SubjectInfo = {
|
|
7463
7606
|
["F\xEDsica" /* FISICA */]: {
|
|
7464
|
-
icon: /* @__PURE__ */
|
|
7607
|
+
icon: /* @__PURE__ */ jsx46(Atom, { size: 17, color: "currentColor" }),
|
|
7465
7608
|
colorClass: "bg-subject-1",
|
|
7466
7609
|
name: "F\xEDsica" /* FISICA */
|
|
7467
7610
|
},
|
|
7468
7611
|
["Hist\xF3ria" /* HISTORIA */]: {
|
|
7469
|
-
icon: /* @__PURE__ */
|
|
7612
|
+
icon: /* @__PURE__ */ jsx46(Scroll, { size: 17, color: "currentColor" }),
|
|
7470
7613
|
colorClass: "bg-subject-2",
|
|
7471
7614
|
name: "Hist\xF3ria" /* HISTORIA */
|
|
7472
7615
|
},
|
|
7473
7616
|
["Literatura" /* LITERATURA */]: {
|
|
7474
|
-
icon: /* @__PURE__ */
|
|
7617
|
+
icon: /* @__PURE__ */ jsx46(BookOpenText, { size: 17, color: "currentColor" }),
|
|
7475
7618
|
colorClass: "bg-subject-3",
|
|
7476
7619
|
name: "Literatura" /* LITERATURA */
|
|
7477
7620
|
},
|
|
7478
7621
|
["Geografia" /* GEOGRAFIA */]: {
|
|
7479
|
-
icon: /* @__PURE__ */
|
|
7622
|
+
icon: /* @__PURE__ */ jsx46(GlobeHemisphereWest, { size: 17, color: "currentColor" }),
|
|
7480
7623
|
colorClass: "bg-subject-4",
|
|
7481
7624
|
name: "Geografia" /* GEOGRAFIA */
|
|
7482
7625
|
},
|
|
7483
7626
|
["Biologia" /* BIOLOGIA */]: {
|
|
7484
|
-
icon: /* @__PURE__ */
|
|
7627
|
+
icon: /* @__PURE__ */ jsx46(Microscope, { size: 17, color: "currentColor" }),
|
|
7485
7628
|
colorClass: "bg-subject-5",
|
|
7486
7629
|
name: "Biologia" /* BIOLOGIA */
|
|
7487
7630
|
},
|
|
7488
7631
|
["Portugu\xEAs" /* PORTUGUES */]: {
|
|
7489
|
-
icon: /* @__PURE__ */
|
|
7632
|
+
icon: /* @__PURE__ */ jsx46(ChatPT, { size: 17, color: "currentColor" }),
|
|
7490
7633
|
colorClass: "bg-subject-6",
|
|
7491
7634
|
name: "Portugu\xEAs" /* PORTUGUES */
|
|
7492
7635
|
},
|
|
7493
7636
|
["Qu\xEDmica" /* QUIMICA */]: {
|
|
7494
|
-
icon: /* @__PURE__ */
|
|
7637
|
+
icon: /* @__PURE__ */ jsx46(Flask, { size: 17, color: "currentColor" }),
|
|
7495
7638
|
colorClass: "bg-subject-7",
|
|
7496
7639
|
name: "Qu\xEDmica" /* QUIMICA */
|
|
7497
7640
|
},
|
|
7498
7641
|
["Artes" /* ARTES */]: {
|
|
7499
|
-
icon: /* @__PURE__ */
|
|
7642
|
+
icon: /* @__PURE__ */ jsx46(Palette, { size: 17, color: "currentColor" }),
|
|
7500
7643
|
colorClass: "bg-subject-8",
|
|
7501
7644
|
name: "Artes" /* ARTES */
|
|
7502
7645
|
},
|
|
7503
7646
|
["Matem\xE1tica" /* MATEMATICA */]: {
|
|
7504
|
-
icon: /* @__PURE__ */
|
|
7647
|
+
icon: /* @__PURE__ */ jsx46(MathOperations, { size: 17, color: "currentColor" }),
|
|
7505
7648
|
colorClass: "bg-subject-9",
|
|
7506
7649
|
name: "Matem\xE1tica" /* MATEMATICA */
|
|
7507
7650
|
},
|
|
7508
7651
|
["Filosofia" /* FILOSOFIA */]: {
|
|
7509
|
-
icon: /* @__PURE__ */
|
|
7652
|
+
icon: /* @__PURE__ */ jsx46(HeadCircuit, { size: 17, color: "currentColor" }),
|
|
7510
7653
|
colorClass: "bg-subject-10",
|
|
7511
7654
|
name: "Filosofia" /* FILOSOFIA */
|
|
7512
7655
|
},
|
|
7513
7656
|
["Espanhol" /* ESPANHOL */]: {
|
|
7514
|
-
icon: /* @__PURE__ */
|
|
7657
|
+
icon: /* @__PURE__ */ jsx46(ChatES, { size: 17, color: "currentColor" }),
|
|
7515
7658
|
colorClass: "bg-subject-11",
|
|
7516
7659
|
name: "Espanhol" /* ESPANHOL */
|
|
7517
7660
|
},
|
|
7518
7661
|
["Reda\xE7\xE3o" /* REDACAO */]: {
|
|
7519
|
-
icon: /* @__PURE__ */
|
|
7662
|
+
icon: /* @__PURE__ */ jsx46(ArticleNyTimes, { size: 17, color: "currentColor" }),
|
|
7520
7663
|
colorClass: "bg-subject-12",
|
|
7521
7664
|
name: "Reda\xE7\xE3o" /* REDACAO */
|
|
7522
7665
|
},
|
|
7523
7666
|
["Sociologia" /* SOCIOLOGIA */]: {
|
|
7524
|
-
icon: /* @__PURE__ */
|
|
7667
|
+
icon: /* @__PURE__ */ jsx46(Person, { size: 17, color: "currentColor" }),
|
|
7525
7668
|
colorClass: "bg-subject-13",
|
|
7526
7669
|
name: "Sociologia" /* SOCIOLOGIA */
|
|
7527
7670
|
},
|
|
7528
7671
|
["Ingl\xEAs" /* INGLES */]: {
|
|
7529
|
-
icon: /* @__PURE__ */
|
|
7672
|
+
icon: /* @__PURE__ */ jsx46(ChatEN, { size: 17, color: "currentColor" }),
|
|
7530
7673
|
colorClass: "bg-subject-14",
|
|
7531
7674
|
name: "Ingl\xEAs" /* INGLES */
|
|
7532
7675
|
},
|
|
7533
7676
|
["Ed. F\xEDsica" /* EDUCACAO_FISICA */]: {
|
|
7534
|
-
icon: /* @__PURE__ */
|
|
7677
|
+
icon: /* @__PURE__ */ jsx46(DribbbleLogo, { size: 17, color: "currentColor" }),
|
|
7535
7678
|
colorClass: "bg-subject-15",
|
|
7536
7679
|
name: "Ed. F\xEDsica" /* EDUCACAO_FISICA */
|
|
7537
7680
|
},
|
|
7538
7681
|
["Trilhas" /* TRILHAS */]: {
|
|
7539
|
-
icon: /* @__PURE__ */
|
|
7682
|
+
icon: /* @__PURE__ */ jsx46(BookBookmark, { size: 17, color: "currentColor" }),
|
|
7540
7683
|
colorClass: "bg-subject-16",
|
|
7541
7684
|
name: "Trilhas" /* TRILHAS */
|
|
7542
7685
|
}
|
|
7543
7686
|
};
|
|
7544
7687
|
var getSubjectInfo = (subject) => {
|
|
7545
7688
|
return SubjectInfo[subject] || {
|
|
7546
|
-
icon: /* @__PURE__ */
|
|
7689
|
+
icon: /* @__PURE__ */ jsx46(Book, { size: 17, color: "currentColor" }),
|
|
7547
7690
|
colorClass: "bg-subject-16",
|
|
7548
7691
|
name: subject
|
|
7549
7692
|
};
|
|
@@ -7675,7 +7818,7 @@ var createNotificationsHook = (apiClient) => {
|
|
|
7675
7818
|
};
|
|
7676
7819
|
|
|
7677
7820
|
// src/components/Filter/FilterModal.tsx
|
|
7678
|
-
import { jsx as
|
|
7821
|
+
import { jsx as jsx47, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7679
7822
|
var FilterModal = ({
|
|
7680
7823
|
isOpen,
|
|
7681
7824
|
onClose,
|
|
@@ -7703,20 +7846,20 @@ var FilterModal = ({
|
|
|
7703
7846
|
const handleClear = () => {
|
|
7704
7847
|
onClear();
|
|
7705
7848
|
};
|
|
7706
|
-
return /* @__PURE__ */
|
|
7849
|
+
return /* @__PURE__ */ jsx47(
|
|
7707
7850
|
Modal_default,
|
|
7708
7851
|
{
|
|
7709
7852
|
isOpen,
|
|
7710
7853
|
onClose,
|
|
7711
7854
|
title,
|
|
7712
7855
|
size,
|
|
7713
|
-
footer: /* @__PURE__ */
|
|
7714
|
-
/* @__PURE__ */
|
|
7715
|
-
/* @__PURE__ */
|
|
7856
|
+
footer: /* @__PURE__ */ jsxs36("div", { className: "flex gap-3 justify-end w-full", children: [
|
|
7857
|
+
/* @__PURE__ */ jsx47(Button_default, { variant: "outline", onClick: handleClear, children: clearLabel }),
|
|
7858
|
+
/* @__PURE__ */ jsx47(Button_default, { onClick: handleApply, children: applyLabel })
|
|
7716
7859
|
] }),
|
|
7717
|
-
children: /* @__PURE__ */
|
|
7718
|
-
/* @__PURE__ */
|
|
7719
|
-
config.key === "academic" && /* @__PURE__ */
|
|
7860
|
+
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: [
|
|
7861
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-2 text-text-400 text-sm font-medium uppercase", children: [
|
|
7862
|
+
config.key === "academic" && /* @__PURE__ */ jsxs36(
|
|
7720
7863
|
"svg",
|
|
7721
7864
|
{
|
|
7722
7865
|
width: "16",
|
|
@@ -7726,7 +7869,7 @@ var FilterModal = ({
|
|
|
7726
7869
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7727
7870
|
className: "text-text-400",
|
|
7728
7871
|
children: [
|
|
7729
|
-
/* @__PURE__ */
|
|
7872
|
+
/* @__PURE__ */ jsx47(
|
|
7730
7873
|
"path",
|
|
7731
7874
|
{
|
|
7732
7875
|
d: "M8 2L2 5.33333L8 8.66667L14 5.33333L8 2Z",
|
|
@@ -7736,7 +7879,7 @@ var FilterModal = ({
|
|
|
7736
7879
|
strokeLinejoin: "round"
|
|
7737
7880
|
}
|
|
7738
7881
|
),
|
|
7739
|
-
/* @__PURE__ */
|
|
7882
|
+
/* @__PURE__ */ jsx47(
|
|
7740
7883
|
"path",
|
|
7741
7884
|
{
|
|
7742
7885
|
d: "M2 10.6667L8 14L14 10.6667",
|
|
@@ -7746,7 +7889,7 @@ var FilterModal = ({
|
|
|
7746
7889
|
strokeLinejoin: "round"
|
|
7747
7890
|
}
|
|
7748
7891
|
),
|
|
7749
|
-
/* @__PURE__ */
|
|
7892
|
+
/* @__PURE__ */ jsx47(
|
|
7750
7893
|
"path",
|
|
7751
7894
|
{
|
|
7752
7895
|
d: "M2 8L8 11.3333L14 8",
|
|
@@ -7759,7 +7902,7 @@ var FilterModal = ({
|
|
|
7759
7902
|
]
|
|
7760
7903
|
}
|
|
7761
7904
|
),
|
|
7762
|
-
config.key === "content" && /* @__PURE__ */
|
|
7905
|
+
config.key === "content" && /* @__PURE__ */ jsxs36(
|
|
7763
7906
|
"svg",
|
|
7764
7907
|
{
|
|
7765
7908
|
width: "16",
|
|
@@ -7769,7 +7912,7 @@ var FilterModal = ({
|
|
|
7769
7912
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7770
7913
|
className: "text-text-400",
|
|
7771
7914
|
children: [
|
|
7772
|
-
/* @__PURE__ */
|
|
7915
|
+
/* @__PURE__ */ jsx47(
|
|
7773
7916
|
"path",
|
|
7774
7917
|
{
|
|
7775
7918
|
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 +7922,7 @@ var FilterModal = ({
|
|
|
7779
7922
|
strokeLinejoin: "round"
|
|
7780
7923
|
}
|
|
7781
7924
|
),
|
|
7782
|
-
/* @__PURE__ */
|
|
7925
|
+
/* @__PURE__ */ jsx47(
|
|
7783
7926
|
"path",
|
|
7784
7927
|
{
|
|
7785
7928
|
d: "M2 6H14",
|
|
@@ -7789,7 +7932,7 @@ var FilterModal = ({
|
|
|
7789
7932
|
strokeLinejoin: "round"
|
|
7790
7933
|
}
|
|
7791
7934
|
),
|
|
7792
|
-
/* @__PURE__ */
|
|
7935
|
+
/* @__PURE__ */ jsx47(
|
|
7793
7936
|
"path",
|
|
7794
7937
|
{
|
|
7795
7938
|
d: "M6 2V14",
|
|
@@ -7802,9 +7945,9 @@ var FilterModal = ({
|
|
|
7802
7945
|
]
|
|
7803
7946
|
}
|
|
7804
7947
|
),
|
|
7805
|
-
/* @__PURE__ */
|
|
7948
|
+
/* @__PURE__ */ jsx47("span", { children: config.label })
|
|
7806
7949
|
] }),
|
|
7807
|
-
/* @__PURE__ */
|
|
7950
|
+
/* @__PURE__ */ jsx47(
|
|
7808
7951
|
CheckboxGroup,
|
|
7809
7952
|
{
|
|
7810
7953
|
categories: config.categories,
|
|
@@ -7916,13 +8059,13 @@ import {
|
|
|
7916
8059
|
useEffect as useEffect19,
|
|
7917
8060
|
useRef as useRef8,
|
|
7918
8061
|
forwardRef as forwardRef15,
|
|
7919
|
-
isValidElement as
|
|
7920
|
-
Children as
|
|
7921
|
-
cloneElement as
|
|
8062
|
+
isValidElement as isValidElement5,
|
|
8063
|
+
Children as Children5,
|
|
8064
|
+
cloneElement as cloneElement5,
|
|
7922
8065
|
useId as useId8
|
|
7923
8066
|
} from "react";
|
|
7924
8067
|
import { CaretDown as CaretDown2, Check as Check4, WarningCircle as WarningCircle5 } from "phosphor-react";
|
|
7925
|
-
import { Fragment as Fragment7, jsx as
|
|
8068
|
+
import { Fragment as Fragment7, jsx as jsx48, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7926
8069
|
var VARIANT_CLASSES4 = {
|
|
7927
8070
|
outlined: "border-2 rounded-lg focus:border-primary-950",
|
|
7928
8071
|
underlined: "border-b-2 focus:border-primary-950",
|
|
@@ -7980,13 +8123,13 @@ function getLabelAsNode(children) {
|
|
|
7980
8123
|
if (typeof children === "string" || typeof children === "number") {
|
|
7981
8124
|
return children;
|
|
7982
8125
|
}
|
|
7983
|
-
const flattened =
|
|
8126
|
+
const flattened = Children5.toArray(children);
|
|
7984
8127
|
if (flattened.length === 1) return flattened[0];
|
|
7985
|
-
return /* @__PURE__ */
|
|
8128
|
+
return /* @__PURE__ */ jsx48(Fragment7, { children: flattened });
|
|
7986
8129
|
}
|
|
7987
8130
|
var injectStore4 = (children, store, size, selectId) => {
|
|
7988
|
-
return
|
|
7989
|
-
if (
|
|
8131
|
+
return Children5.map(children, (child) => {
|
|
8132
|
+
if (isValidElement5(child)) {
|
|
7990
8133
|
const typedChild = child;
|
|
7991
8134
|
const newProps = {
|
|
7992
8135
|
store
|
|
@@ -8003,7 +8146,7 @@ var injectStore4 = (children, store, size, selectId) => {
|
|
|
8003
8146
|
selectId
|
|
8004
8147
|
);
|
|
8005
8148
|
}
|
|
8006
|
-
return
|
|
8149
|
+
return cloneElement5(typedChild, newProps);
|
|
8007
8150
|
}
|
|
8008
8151
|
return child;
|
|
8009
8152
|
});
|
|
@@ -8030,8 +8173,8 @@ var Select = ({
|
|
|
8030
8173
|
const findLabelForValue = (children2, targetValue) => {
|
|
8031
8174
|
let found = null;
|
|
8032
8175
|
const search = (nodes) => {
|
|
8033
|
-
|
|
8034
|
-
if (!
|
|
8176
|
+
Children5.forEach(nodes, (child) => {
|
|
8177
|
+
if (!isValidElement5(child)) return;
|
|
8035
8178
|
const typedChild = child;
|
|
8036
8179
|
if (typedChild.type === SelectItem && typedChild.props.value === targetValue) {
|
|
8037
8180
|
if (typeof typedChild.props.children === "string")
|
|
@@ -8093,8 +8236,8 @@ var Select = ({
|
|
|
8093
8236
|
}
|
|
8094
8237
|
}, [propValue]);
|
|
8095
8238
|
const sizeClasses = SIZE_CLASSES12[size];
|
|
8096
|
-
return /* @__PURE__ */
|
|
8097
|
-
label && /* @__PURE__ */
|
|
8239
|
+
return /* @__PURE__ */ jsxs37("div", { className: cn("w-full", className), children: [
|
|
8240
|
+
label && /* @__PURE__ */ jsx48(
|
|
8098
8241
|
"label",
|
|
8099
8242
|
{
|
|
8100
8243
|
htmlFor: selectId,
|
|
@@ -8102,11 +8245,11 @@ var Select = ({
|
|
|
8102
8245
|
children: label
|
|
8103
8246
|
}
|
|
8104
8247
|
),
|
|
8105
|
-
/* @__PURE__ */
|
|
8106
|
-
(helperText || errorMessage) && /* @__PURE__ */
|
|
8107
|
-
helperText && /* @__PURE__ */
|
|
8108
|
-
errorMessage && /* @__PURE__ */
|
|
8109
|
-
/* @__PURE__ */
|
|
8248
|
+
/* @__PURE__ */ jsx48("div", { className: cn("relative w-full"), ref: selectRef, children: injectStore4(children, store, size, selectId) }),
|
|
8249
|
+
(helperText || errorMessage) && /* @__PURE__ */ jsxs37("div", { className: "mt-1.5 gap-1.5", children: [
|
|
8250
|
+
helperText && /* @__PURE__ */ jsx48("p", { className: "text-sm text-text-500", children: helperText }),
|
|
8251
|
+
errorMessage && /* @__PURE__ */ jsxs37("p", { className: "flex gap-1 items-center text-sm text-indicator-error", children: [
|
|
8252
|
+
/* @__PURE__ */ jsx48(WarningCircle5, { size: 16 }),
|
|
8110
8253
|
" ",
|
|
8111
8254
|
errorMessage
|
|
8112
8255
|
] })
|
|
@@ -8120,7 +8263,7 @@ var SelectValue = ({
|
|
|
8120
8263
|
const store = useSelectStore(externalStore);
|
|
8121
8264
|
const selectedLabel = useStore4(store, (s) => s.selectedLabel);
|
|
8122
8265
|
const value = useStore4(store, (s) => s.value);
|
|
8123
|
-
return /* @__PURE__ */
|
|
8266
|
+
return /* @__PURE__ */ jsx48("span", { className: "text-inherit flex gap-2 items-center", children: selectedLabel || placeholder || value });
|
|
8124
8267
|
};
|
|
8125
8268
|
var SelectTrigger = forwardRef15(
|
|
8126
8269
|
({
|
|
@@ -8139,7 +8282,7 @@ var SelectTrigger = forwardRef15(
|
|
|
8139
8282
|
const variantClasses = VARIANT_CLASSES4[variant];
|
|
8140
8283
|
const heightClasses = HEIGHT_CLASSES[size];
|
|
8141
8284
|
const paddingClasses = PADDING_CLASSES[size];
|
|
8142
|
-
return /* @__PURE__ */
|
|
8285
|
+
return /* @__PURE__ */ jsxs37(
|
|
8143
8286
|
"button",
|
|
8144
8287
|
{
|
|
8145
8288
|
ref,
|
|
@@ -8161,7 +8304,7 @@ var SelectTrigger = forwardRef15(
|
|
|
8161
8304
|
...props,
|
|
8162
8305
|
children: [
|
|
8163
8306
|
props.children,
|
|
8164
|
-
/* @__PURE__ */
|
|
8307
|
+
/* @__PURE__ */ jsx48(
|
|
8165
8308
|
CaretDown2,
|
|
8166
8309
|
{
|
|
8167
8310
|
className: cn(
|
|
@@ -8189,7 +8332,7 @@ var SelectContent = forwardRef15(
|
|
|
8189
8332
|
const open = useStore4(store, (s) => s.open);
|
|
8190
8333
|
if (!open) return null;
|
|
8191
8334
|
const getPositionClasses = () => `w-full min-w-full absolute ${SIDE_CLASSES2[side]} ${ALIGN_CLASSES2[align]}`;
|
|
8192
|
-
return /* @__PURE__ */
|
|
8335
|
+
return /* @__PURE__ */ jsx48(
|
|
8193
8336
|
"div",
|
|
8194
8337
|
{
|
|
8195
8338
|
role: "menu",
|
|
@@ -8233,7 +8376,7 @@ var SelectItem = forwardRef15(
|
|
|
8233
8376
|
}
|
|
8234
8377
|
props.onClick?.(e);
|
|
8235
8378
|
};
|
|
8236
|
-
return /* @__PURE__ */
|
|
8379
|
+
return /* @__PURE__ */ jsxs37(
|
|
8237
8380
|
"div",
|
|
8238
8381
|
{
|
|
8239
8382
|
role: "menuitem",
|
|
@@ -8253,7 +8396,7 @@ var SelectItem = forwardRef15(
|
|
|
8253
8396
|
tabIndex: disabled ? -1 : 0,
|
|
8254
8397
|
...props,
|
|
8255
8398
|
children: [
|
|
8256
|
-
/* @__PURE__ */
|
|
8399
|
+
/* @__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
8400
|
children
|
|
8258
8401
|
]
|
|
8259
8402
|
}
|
|
@@ -8269,13 +8412,13 @@ import {
|
|
|
8269
8412
|
useEffect as useEffect20,
|
|
8270
8413
|
useRef as useRef9,
|
|
8271
8414
|
forwardRef as forwardRef16,
|
|
8272
|
-
isValidElement as
|
|
8273
|
-
Children as
|
|
8274
|
-
cloneElement as
|
|
8415
|
+
isValidElement as isValidElement6,
|
|
8416
|
+
Children as Children6,
|
|
8417
|
+
cloneElement as cloneElement6,
|
|
8275
8418
|
useState as useState17
|
|
8276
8419
|
} from "react";
|
|
8277
8420
|
import { CaretLeft as CaretLeft3, CaretRight as CaretRight4 } from "phosphor-react";
|
|
8278
|
-
import { jsx as
|
|
8421
|
+
import { jsx as jsx49, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
8279
8422
|
var createMenuStore = (onValueChange) => create9((set) => ({
|
|
8280
8423
|
value: "",
|
|
8281
8424
|
setValue: (value) => {
|
|
@@ -8313,7 +8456,7 @@ var Menu = forwardRef16(
|
|
|
8313
8456
|
}, [defaultValue, propValue, setValue]);
|
|
8314
8457
|
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
8458
|
const variantClasses = VARIANT_CLASSES5[variant];
|
|
8316
|
-
return /* @__PURE__ */
|
|
8459
|
+
return /* @__PURE__ */ jsx49(
|
|
8317
8460
|
"div",
|
|
8318
8461
|
{
|
|
8319
8462
|
ref,
|
|
@@ -8333,7 +8476,7 @@ var MenuContent = forwardRef16(
|
|
|
8333
8476
|
({ className, children, variant = "menu", ...props }, ref) => {
|
|
8334
8477
|
const baseClasses = "w-full flex flex-row items-center gap-2";
|
|
8335
8478
|
const variantClasses = variant === "menu2" || variant === "menu-overflow" ? "overflow-x-auto scroll-smooth" : "";
|
|
8336
|
-
return /* @__PURE__ */
|
|
8479
|
+
return /* @__PURE__ */ jsx49(
|
|
8337
8480
|
"ul",
|
|
8338
8481
|
{
|
|
8339
8482
|
ref,
|
|
@@ -8385,7 +8528,7 @@ var MenuItem = forwardRef16(
|
|
|
8385
8528
|
...props
|
|
8386
8529
|
};
|
|
8387
8530
|
const variants = {
|
|
8388
|
-
menu: /* @__PURE__ */
|
|
8531
|
+
menu: /* @__PURE__ */ jsx49(
|
|
8389
8532
|
"li",
|
|
8390
8533
|
{
|
|
8391
8534
|
"data-variant": "menu",
|
|
@@ -8400,7 +8543,7 @@ var MenuItem = forwardRef16(
|
|
|
8400
8543
|
children
|
|
8401
8544
|
}
|
|
8402
8545
|
),
|
|
8403
|
-
menu2: /* @__PURE__ */
|
|
8546
|
+
menu2: /* @__PURE__ */ jsxs38(
|
|
8404
8547
|
"li",
|
|
8405
8548
|
{
|
|
8406
8549
|
"data-variant": "menu2",
|
|
@@ -8411,7 +8554,7 @@ var MenuItem = forwardRef16(
|
|
|
8411
8554
|
`,
|
|
8412
8555
|
...commonProps,
|
|
8413
8556
|
children: [
|
|
8414
|
-
/* @__PURE__ */
|
|
8557
|
+
/* @__PURE__ */ jsx49(
|
|
8415
8558
|
"span",
|
|
8416
8559
|
{
|
|
8417
8560
|
className: cn(
|
|
@@ -8421,11 +8564,11 @@ var MenuItem = forwardRef16(
|
|
|
8421
8564
|
children
|
|
8422
8565
|
}
|
|
8423
8566
|
),
|
|
8424
|
-
selectedValue === value && /* @__PURE__ */
|
|
8567
|
+
selectedValue === value && /* @__PURE__ */ jsx49("div", { className: "h-1 w-full bg-primary-950 rounded-lg" })
|
|
8425
8568
|
]
|
|
8426
8569
|
}
|
|
8427
8570
|
),
|
|
8428
|
-
"menu-overflow": /* @__PURE__ */
|
|
8571
|
+
"menu-overflow": /* @__PURE__ */ jsxs38(
|
|
8429
8572
|
"li",
|
|
8430
8573
|
{
|
|
8431
8574
|
"data-variant": "menu-overflow",
|
|
@@ -8436,7 +8579,7 @@ var MenuItem = forwardRef16(
|
|
|
8436
8579
|
`,
|
|
8437
8580
|
...commonProps,
|
|
8438
8581
|
children: [
|
|
8439
|
-
/* @__PURE__ */
|
|
8582
|
+
/* @__PURE__ */ jsx49(
|
|
8440
8583
|
"span",
|
|
8441
8584
|
{
|
|
8442
8585
|
className: cn(
|
|
@@ -8446,11 +8589,11 @@ var MenuItem = forwardRef16(
|
|
|
8446
8589
|
children
|
|
8447
8590
|
}
|
|
8448
8591
|
),
|
|
8449
|
-
selectedValue === value && /* @__PURE__ */
|
|
8592
|
+
selectedValue === value && /* @__PURE__ */ jsx49("div", { className: "h-1 w-full bg-primary-950 rounded-lg" })
|
|
8450
8593
|
]
|
|
8451
8594
|
}
|
|
8452
8595
|
),
|
|
8453
|
-
breadcrumb: /* @__PURE__ */
|
|
8596
|
+
breadcrumb: /* @__PURE__ */ jsxs38(
|
|
8454
8597
|
"li",
|
|
8455
8598
|
{
|
|
8456
8599
|
"data-variant": "breadcrumb",
|
|
@@ -8462,7 +8605,7 @@ var MenuItem = forwardRef16(
|
|
|
8462
8605
|
`,
|
|
8463
8606
|
...commonProps,
|
|
8464
8607
|
children: [
|
|
8465
|
-
/* @__PURE__ */
|
|
8608
|
+
/* @__PURE__ */ jsx49(
|
|
8466
8609
|
"span",
|
|
8467
8610
|
{
|
|
8468
8611
|
className: cn(
|
|
@@ -8472,7 +8615,7 @@ var MenuItem = forwardRef16(
|
|
|
8472
8615
|
children
|
|
8473
8616
|
}
|
|
8474
8617
|
),
|
|
8475
|
-
separator && /* @__PURE__ */
|
|
8618
|
+
separator && /* @__PURE__ */ jsx49(
|
|
8476
8619
|
CaretRight4,
|
|
8477
8620
|
{
|
|
8478
8621
|
size: 16,
|
|
@@ -8527,25 +8670,25 @@ var MenuOverflow = ({
|
|
|
8527
8670
|
window.removeEventListener("resize", checkScroll);
|
|
8528
8671
|
};
|
|
8529
8672
|
}, []);
|
|
8530
|
-
return /* @__PURE__ */
|
|
8673
|
+
return /* @__PURE__ */ jsxs38(
|
|
8531
8674
|
"div",
|
|
8532
8675
|
{
|
|
8533
8676
|
"data-testid": "menu-overflow-wrapper",
|
|
8534
8677
|
className: cn("relative w-full overflow-hidden", className),
|
|
8535
8678
|
children: [
|
|
8536
|
-
showLeftArrow && /* @__PURE__ */
|
|
8679
|
+
showLeftArrow && /* @__PURE__ */ jsxs38(
|
|
8537
8680
|
"button",
|
|
8538
8681
|
{
|
|
8539
8682
|
onClick: () => internalScroll(containerRef.current, "left"),
|
|
8540
8683
|
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
8684
|
"data-testid": "scroll-left-button",
|
|
8542
8685
|
children: [
|
|
8543
|
-
/* @__PURE__ */
|
|
8544
|
-
/* @__PURE__ */
|
|
8686
|
+
/* @__PURE__ */ jsx49(CaretLeft3, { size: 16 }),
|
|
8687
|
+
/* @__PURE__ */ jsx49("span", { className: "sr-only", children: "Scroll left" })
|
|
8545
8688
|
]
|
|
8546
8689
|
}
|
|
8547
8690
|
),
|
|
8548
|
-
/* @__PURE__ */
|
|
8691
|
+
/* @__PURE__ */ jsx49(
|
|
8549
8692
|
Menu,
|
|
8550
8693
|
{
|
|
8551
8694
|
defaultValue,
|
|
@@ -8553,18 +8696,18 @@ var MenuOverflow = ({
|
|
|
8553
8696
|
value,
|
|
8554
8697
|
variant: "menu2",
|
|
8555
8698
|
...props,
|
|
8556
|
-
children: /* @__PURE__ */
|
|
8699
|
+
children: /* @__PURE__ */ jsx49(MenuContent, { ref: containerRef, variant: "menu2", children })
|
|
8557
8700
|
}
|
|
8558
8701
|
),
|
|
8559
|
-
showRightArrow && /* @__PURE__ */
|
|
8702
|
+
showRightArrow && /* @__PURE__ */ jsxs38(
|
|
8560
8703
|
"button",
|
|
8561
8704
|
{
|
|
8562
8705
|
onClick: () => internalScroll(containerRef.current, "right"),
|
|
8563
8706
|
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
8707
|
"data-testid": "scroll-right-button",
|
|
8565
8708
|
children: [
|
|
8566
|
-
/* @__PURE__ */
|
|
8567
|
-
/* @__PURE__ */
|
|
8709
|
+
/* @__PURE__ */ jsx49(CaretRight4, { size: 16 }),
|
|
8710
|
+
/* @__PURE__ */ jsx49("span", { className: "sr-only", children: "Scroll right" })
|
|
8568
8711
|
]
|
|
8569
8712
|
}
|
|
8570
8713
|
)
|
|
@@ -8572,11 +8715,11 @@ var MenuOverflow = ({
|
|
|
8572
8715
|
}
|
|
8573
8716
|
);
|
|
8574
8717
|
};
|
|
8575
|
-
var injectStore5 = (children, store) =>
|
|
8576
|
-
if (!
|
|
8718
|
+
var injectStore5 = (children, store) => Children6.map(children, (child) => {
|
|
8719
|
+
if (!isValidElement6(child)) return child;
|
|
8577
8720
|
const typedChild = child;
|
|
8578
8721
|
const shouldInject = typedChild.type === MenuItem;
|
|
8579
|
-
return
|
|
8722
|
+
return cloneElement6(typedChild, {
|
|
8580
8723
|
...shouldInject ? { store } : {},
|
|
8581
8724
|
...typedChild.props.children ? { children: injectStore5(typedChild.props.children, store) } : {}
|
|
8582
8725
|
});
|
|
@@ -8605,9 +8748,9 @@ import {
|
|
|
8605
8748
|
} from "phosphor-react";
|
|
8606
8749
|
|
|
8607
8750
|
// src/components/IconRender/IconRender.tsx
|
|
8608
|
-
import { cloneElement as
|
|
8751
|
+
import { cloneElement as cloneElement7 } from "react";
|
|
8609
8752
|
import * as PhosphorIcons from "phosphor-react";
|
|
8610
|
-
import { jsx as
|
|
8753
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
8611
8754
|
var IconRender = ({
|
|
8612
8755
|
iconName,
|
|
8613
8756
|
color = "#000000",
|
|
@@ -8617,18 +8760,18 @@ var IconRender = ({
|
|
|
8617
8760
|
if (typeof iconName === "string") {
|
|
8618
8761
|
switch (iconName) {
|
|
8619
8762
|
case "Chat_PT":
|
|
8620
|
-
return /* @__PURE__ */
|
|
8763
|
+
return /* @__PURE__ */ jsx50(ChatPT, { size, color });
|
|
8621
8764
|
case "Chat_EN":
|
|
8622
|
-
return /* @__PURE__ */
|
|
8765
|
+
return /* @__PURE__ */ jsx50(ChatEN, { size, color });
|
|
8623
8766
|
case "Chat_ES":
|
|
8624
|
-
return /* @__PURE__ */
|
|
8767
|
+
return /* @__PURE__ */ jsx50(ChatES, { size, color });
|
|
8625
8768
|
default: {
|
|
8626
8769
|
const IconComponent = PhosphorIcons[iconName] || PhosphorIcons.Question;
|
|
8627
|
-
return /* @__PURE__ */
|
|
8770
|
+
return /* @__PURE__ */ jsx50(IconComponent, { size, color, weight });
|
|
8628
8771
|
}
|
|
8629
8772
|
}
|
|
8630
8773
|
} else {
|
|
8631
|
-
return
|
|
8774
|
+
return cloneElement7(iconName, {
|
|
8632
8775
|
size,
|
|
8633
8776
|
color: "currentColor"
|
|
8634
8777
|
});
|
|
@@ -8637,7 +8780,7 @@ var IconRender = ({
|
|
|
8637
8780
|
var IconRender_default = IconRender;
|
|
8638
8781
|
|
|
8639
8782
|
// src/components/Card/Card.tsx
|
|
8640
|
-
import { Fragment as Fragment9, jsx as
|
|
8783
|
+
import { Fragment as Fragment9, jsx as jsx51, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
8641
8784
|
var CARD_BASE_CLASSES = {
|
|
8642
8785
|
default: "w-full bg-background border border-border-50 rounded-xl",
|
|
8643
8786
|
compact: "w-full bg-background border border-border-50 rounded-lg",
|
|
@@ -8679,7 +8822,7 @@ var CardBase = forwardRef17(
|
|
|
8679
8822
|
const minHeightClasses = CARD_MIN_HEIGHT_CLASSES[minHeight];
|
|
8680
8823
|
const layoutClasses = CARD_LAYOUT_CLASSES[layout];
|
|
8681
8824
|
const cursorClasses = CARD_CURSOR_CLASSES[cursor];
|
|
8682
|
-
return /* @__PURE__ */
|
|
8825
|
+
return /* @__PURE__ */ jsx51(
|
|
8683
8826
|
"div",
|
|
8684
8827
|
{
|
|
8685
8828
|
ref,
|
|
@@ -8737,7 +8880,7 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8737
8880
|
const actionIconClasses = ACTION_ICON_CLASSES[action];
|
|
8738
8881
|
const actionSubTitleClasses = ACTION_SUBTITLE_CLASSES[action];
|
|
8739
8882
|
const actionHeaderClasses = ACTION_HEADER_CLASSES[action];
|
|
8740
|
-
return /* @__PURE__ */
|
|
8883
|
+
return /* @__PURE__ */ jsxs39(
|
|
8741
8884
|
"div",
|
|
8742
8885
|
{
|
|
8743
8886
|
ref,
|
|
@@ -8747,7 +8890,7 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8747
8890
|
),
|
|
8748
8891
|
...props,
|
|
8749
8892
|
children: [
|
|
8750
|
-
/* @__PURE__ */
|
|
8893
|
+
/* @__PURE__ */ jsxs39(
|
|
8751
8894
|
"div",
|
|
8752
8895
|
{
|
|
8753
8896
|
className: cn(
|
|
@@ -8756,7 +8899,7 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8756
8899
|
extended ? "rounded-t-xl" : "rounded-xl"
|
|
8757
8900
|
),
|
|
8758
8901
|
children: [
|
|
8759
|
-
/* @__PURE__ */
|
|
8902
|
+
/* @__PURE__ */ jsx51(
|
|
8760
8903
|
"span",
|
|
8761
8904
|
{
|
|
8762
8905
|
className: cn(
|
|
@@ -8766,7 +8909,7 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8766
8909
|
children: icon
|
|
8767
8910
|
}
|
|
8768
8911
|
),
|
|
8769
|
-
/* @__PURE__ */
|
|
8912
|
+
/* @__PURE__ */ jsx51(
|
|
8770
8913
|
Text_default,
|
|
8771
8914
|
{
|
|
8772
8915
|
size: "2xs",
|
|
@@ -8775,7 +8918,7 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8775
8918
|
children: title
|
|
8776
8919
|
}
|
|
8777
8920
|
),
|
|
8778
|
-
/* @__PURE__ */
|
|
8921
|
+
/* @__PURE__ */ jsx51(
|
|
8779
8922
|
"p",
|
|
8780
8923
|
{
|
|
8781
8924
|
className: cn("text-lg font-bold truncate", actionSubTitleClasses),
|
|
@@ -8785,8 +8928,8 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8785
8928
|
]
|
|
8786
8929
|
}
|
|
8787
8930
|
),
|
|
8788
|
-
extended && /* @__PURE__ */
|
|
8789
|
-
/* @__PURE__ */
|
|
8931
|
+
extended && /* @__PURE__ */ jsxs39("div", { className: "flex flex-col items-center gap-2.5 pb-9.5 pt-2.5", children: [
|
|
8932
|
+
/* @__PURE__ */ jsx51(
|
|
8790
8933
|
"p",
|
|
8791
8934
|
{
|
|
8792
8935
|
className: cn(
|
|
@@ -8796,7 +8939,7 @@ var CardActivitiesResults = forwardRef17(
|
|
|
8796
8939
|
children: header
|
|
8797
8940
|
}
|
|
8798
8941
|
),
|
|
8799
|
-
/* @__PURE__ */
|
|
8942
|
+
/* @__PURE__ */ jsx51(Badge_default, { size: "large", action: "info", children: description })
|
|
8800
8943
|
] })
|
|
8801
8944
|
]
|
|
8802
8945
|
}
|
|
@@ -8815,7 +8958,7 @@ var CardQuestions = forwardRef17(
|
|
|
8815
8958
|
const isDone = state === "done";
|
|
8816
8959
|
const stateLabel = isDone ? "Realizado" : "N\xE3o Realizado";
|
|
8817
8960
|
const buttonLabel = isDone ? "Ver Resultado" : "Responder";
|
|
8818
|
-
return /* @__PURE__ */
|
|
8961
|
+
return /* @__PURE__ */ jsxs39(
|
|
8819
8962
|
CardBase,
|
|
8820
8963
|
{
|
|
8821
8964
|
ref,
|
|
@@ -8825,9 +8968,9 @@ var CardQuestions = forwardRef17(
|
|
|
8825
8968
|
className: cn("justify-between gap-4", className),
|
|
8826
8969
|
...props,
|
|
8827
8970
|
children: [
|
|
8828
|
-
/* @__PURE__ */
|
|
8829
|
-
/* @__PURE__ */
|
|
8830
|
-
/* @__PURE__ */
|
|
8971
|
+
/* @__PURE__ */ jsxs39("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
8972
|
+
/* @__PURE__ */ jsx51("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
|
|
8973
|
+
/* @__PURE__ */ jsx51("div", { className: "flex flex-row gap-6 items-center", children: /* @__PURE__ */ jsx51(
|
|
8831
8974
|
Badge_default,
|
|
8832
8975
|
{
|
|
8833
8976
|
size: "medium",
|
|
@@ -8837,7 +8980,7 @@ var CardQuestions = forwardRef17(
|
|
|
8837
8980
|
}
|
|
8838
8981
|
) })
|
|
8839
8982
|
] }),
|
|
8840
|
-
/* @__PURE__ */
|
|
8983
|
+
/* @__PURE__ */ jsx51("span", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx51(
|
|
8841
8984
|
Button_default,
|
|
8842
8985
|
{
|
|
8843
8986
|
size: "extra-small",
|
|
@@ -8868,19 +9011,19 @@ var CardProgress = forwardRef17(
|
|
|
8868
9011
|
}, ref) => {
|
|
8869
9012
|
const isHorizontal = direction === "horizontal";
|
|
8870
9013
|
const contentComponent = {
|
|
8871
|
-
horizontal: /* @__PURE__ */
|
|
8872
|
-
showDates && /* @__PURE__ */
|
|
8873
|
-
initialDate && /* @__PURE__ */
|
|
8874
|
-
/* @__PURE__ */
|
|
8875
|
-
/* @__PURE__ */
|
|
9014
|
+
horizontal: /* @__PURE__ */ jsxs39(Fragment9, { children: [
|
|
9015
|
+
showDates && /* @__PURE__ */ jsxs39("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
9016
|
+
initialDate && /* @__PURE__ */ jsxs39("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
9017
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-800 font-semibold", children: "In\xEDcio" }),
|
|
9018
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-600", children: initialDate })
|
|
8876
9019
|
] }),
|
|
8877
|
-
endDate && /* @__PURE__ */
|
|
8878
|
-
/* @__PURE__ */
|
|
8879
|
-
/* @__PURE__ */
|
|
9020
|
+
endDate && /* @__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: "Fim" }),
|
|
9022
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-600", children: endDate })
|
|
8880
9023
|
] })
|
|
8881
9024
|
] }),
|
|
8882
|
-
/* @__PURE__ */
|
|
8883
|
-
/* @__PURE__ */
|
|
9025
|
+
/* @__PURE__ */ jsxs39("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
9026
|
+
/* @__PURE__ */ jsx51(
|
|
8884
9027
|
ProgressBar_default,
|
|
8885
9028
|
{
|
|
8886
9029
|
size: "small",
|
|
@@ -8889,7 +9032,7 @@ var CardProgress = forwardRef17(
|
|
|
8889
9032
|
"data-testid": "progress-bar"
|
|
8890
9033
|
}
|
|
8891
9034
|
),
|
|
8892
|
-
/* @__PURE__ */
|
|
9035
|
+
/* @__PURE__ */ jsxs39(
|
|
8893
9036
|
Text_default,
|
|
8894
9037
|
{
|
|
8895
9038
|
size: "xs",
|
|
@@ -8905,9 +9048,9 @@ var CardProgress = forwardRef17(
|
|
|
8905
9048
|
)
|
|
8906
9049
|
] })
|
|
8907
9050
|
] }),
|
|
8908
|
-
vertical: /* @__PURE__ */
|
|
9051
|
+
vertical: /* @__PURE__ */ jsx51("p", { className: "text-sm text-text-800", children: subhead })
|
|
8909
9052
|
};
|
|
8910
|
-
return /* @__PURE__ */
|
|
9053
|
+
return /* @__PURE__ */ jsxs39(
|
|
8911
9054
|
CardBase,
|
|
8912
9055
|
{
|
|
8913
9056
|
ref,
|
|
@@ -8918,7 +9061,7 @@ var CardProgress = forwardRef17(
|
|
|
8918
9061
|
className: cn(isHorizontal ? "h-20" : "", className),
|
|
8919
9062
|
...props,
|
|
8920
9063
|
children: [
|
|
8921
|
-
/* @__PURE__ */
|
|
9064
|
+
/* @__PURE__ */ jsx51(
|
|
8922
9065
|
"div",
|
|
8923
9066
|
{
|
|
8924
9067
|
className: cn(
|
|
@@ -8931,7 +9074,7 @@ var CardProgress = forwardRef17(
|
|
|
8931
9074
|
children: icon
|
|
8932
9075
|
}
|
|
8933
9076
|
),
|
|
8934
|
-
/* @__PURE__ */
|
|
9077
|
+
/* @__PURE__ */ jsxs39(
|
|
8935
9078
|
"div",
|
|
8936
9079
|
{
|
|
8937
9080
|
className: cn(
|
|
@@ -8939,7 +9082,7 @@ var CardProgress = forwardRef17(
|
|
|
8939
9082
|
!isHorizontal && "gap-4"
|
|
8940
9083
|
),
|
|
8941
9084
|
children: [
|
|
8942
|
-
/* @__PURE__ */
|
|
9085
|
+
/* @__PURE__ */ jsx51(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
|
|
8943
9086
|
contentComponent[direction]
|
|
8944
9087
|
]
|
|
8945
9088
|
}
|
|
@@ -8959,7 +9102,7 @@ var CardTopic = forwardRef17(
|
|
|
8959
9102
|
className = "",
|
|
8960
9103
|
...props
|
|
8961
9104
|
}, ref) => {
|
|
8962
|
-
return /* @__PURE__ */
|
|
9105
|
+
return /* @__PURE__ */ jsxs39(
|
|
8963
9106
|
CardBase,
|
|
8964
9107
|
{
|
|
8965
9108
|
ref,
|
|
@@ -8970,13 +9113,13 @@ var CardTopic = forwardRef17(
|
|
|
8970
9113
|
className: cn("justify-center gap-2 py-2 px-4", className),
|
|
8971
9114
|
...props,
|
|
8972
9115
|
children: [
|
|
8973
|
-
subHead && /* @__PURE__ */
|
|
8974
|
-
/* @__PURE__ */
|
|
8975
|
-
index < subHead.length - 1 && /* @__PURE__ */
|
|
9116
|
+
subHead && /* @__PURE__ */ jsx51("span", { className: "text-text-600 text-2xs flex flex-row gap-1", children: subHead.map((text, index) => /* @__PURE__ */ jsxs39(Fragment8, { children: [
|
|
9117
|
+
/* @__PURE__ */ jsx51("p", { children: text }),
|
|
9118
|
+
index < subHead.length - 1 && /* @__PURE__ */ jsx51("p", { children: "\u2022" })
|
|
8976
9119
|
] }, `${text} - ${index}`)) }),
|
|
8977
|
-
/* @__PURE__ */
|
|
8978
|
-
/* @__PURE__ */
|
|
8979
|
-
/* @__PURE__ */
|
|
9120
|
+
/* @__PURE__ */ jsx51("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
|
|
9121
|
+
/* @__PURE__ */ jsxs39("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
9122
|
+
/* @__PURE__ */ jsx51(
|
|
8980
9123
|
ProgressBar_default,
|
|
8981
9124
|
{
|
|
8982
9125
|
size: "small",
|
|
@@ -8985,7 +9128,7 @@ var CardTopic = forwardRef17(
|
|
|
8985
9128
|
"data-testid": "progress-bar"
|
|
8986
9129
|
}
|
|
8987
9130
|
),
|
|
8988
|
-
showPercentage && /* @__PURE__ */
|
|
9131
|
+
showPercentage && /* @__PURE__ */ jsxs39(
|
|
8989
9132
|
Text_default,
|
|
8990
9133
|
{
|
|
8991
9134
|
size: "xs",
|
|
@@ -9019,7 +9162,7 @@ var CardPerformance = forwardRef17(
|
|
|
9019
9162
|
...props
|
|
9020
9163
|
}, ref) => {
|
|
9021
9164
|
const hasProgress = progress !== void 0;
|
|
9022
|
-
return /* @__PURE__ */
|
|
9165
|
+
return /* @__PURE__ */ jsxs39(
|
|
9023
9166
|
CardBase,
|
|
9024
9167
|
{
|
|
9025
9168
|
ref,
|
|
@@ -9033,10 +9176,10 @@ var CardPerformance = forwardRef17(
|
|
|
9033
9176
|
onClick: () => actionVariant == "caret" && onClickButton?.(valueButton),
|
|
9034
9177
|
...props,
|
|
9035
9178
|
children: [
|
|
9036
|
-
/* @__PURE__ */
|
|
9037
|
-
/* @__PURE__ */
|
|
9038
|
-
/* @__PURE__ */
|
|
9039
|
-
actionVariant === "button" && /* @__PURE__ */
|
|
9179
|
+
/* @__PURE__ */ jsxs39("div", { className: "w-full flex flex-col justify-between gap-2", children: [
|
|
9180
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-row justify-between items-center gap-2", children: [
|
|
9181
|
+
/* @__PURE__ */ jsx51("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
9182
|
+
actionVariant === "button" && /* @__PURE__ */ jsx51(
|
|
9040
9183
|
Button_default,
|
|
9041
9184
|
{
|
|
9042
9185
|
variant: "outline",
|
|
@@ -9047,16 +9190,16 @@ var CardPerformance = forwardRef17(
|
|
|
9047
9190
|
}
|
|
9048
9191
|
)
|
|
9049
9192
|
] }),
|
|
9050
|
-
/* @__PURE__ */
|
|
9193
|
+
/* @__PURE__ */ jsx51("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ jsx51(
|
|
9051
9194
|
ProgressBar_default,
|
|
9052
9195
|
{
|
|
9053
9196
|
value: progress,
|
|
9054
9197
|
label: `${progress}% ${labelProgress}`,
|
|
9055
9198
|
variant: progressVariant
|
|
9056
9199
|
}
|
|
9057
|
-
) : /* @__PURE__ */
|
|
9200
|
+
) : /* @__PURE__ */ jsx51("p", { className: "text-xs text-text-600 truncate", children: description }) })
|
|
9058
9201
|
] }),
|
|
9059
|
-
actionVariant == "caret" && /* @__PURE__ */
|
|
9202
|
+
actionVariant == "caret" && /* @__PURE__ */ jsx51(
|
|
9060
9203
|
CaretRight5,
|
|
9061
9204
|
{
|
|
9062
9205
|
className: "size-4.5 text-text-800 cursor-pointer",
|
|
@@ -9080,7 +9223,7 @@ var CardResults = forwardRef17(
|
|
|
9080
9223
|
...props
|
|
9081
9224
|
}, ref) => {
|
|
9082
9225
|
const isRow = direction == "row";
|
|
9083
|
-
return /* @__PURE__ */
|
|
9226
|
+
return /* @__PURE__ */ jsxs39(
|
|
9084
9227
|
CardBase,
|
|
9085
9228
|
{
|
|
9086
9229
|
ref,
|
|
@@ -9090,7 +9233,7 @@ var CardResults = forwardRef17(
|
|
|
9090
9233
|
className: cn("items-stretch cursor-pointer pr-4", className),
|
|
9091
9234
|
...props,
|
|
9092
9235
|
children: [
|
|
9093
|
-
/* @__PURE__ */
|
|
9236
|
+
/* @__PURE__ */ jsx51(
|
|
9094
9237
|
"div",
|
|
9095
9238
|
{
|
|
9096
9239
|
className: cn(
|
|
@@ -9099,11 +9242,11 @@ var CardResults = forwardRef17(
|
|
|
9099
9242
|
style: {
|
|
9100
9243
|
backgroundColor: color
|
|
9101
9244
|
},
|
|
9102
|
-
children: /* @__PURE__ */
|
|
9245
|
+
children: /* @__PURE__ */ jsx51(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
|
|
9103
9246
|
}
|
|
9104
9247
|
),
|
|
9105
|
-
/* @__PURE__ */
|
|
9106
|
-
/* @__PURE__ */
|
|
9248
|
+
/* @__PURE__ */ jsxs39("div", { className: "w-full flex flex-row justify-between items-center", children: [
|
|
9249
|
+
/* @__PURE__ */ jsxs39(
|
|
9107
9250
|
"div",
|
|
9108
9251
|
{
|
|
9109
9252
|
className: cn(
|
|
@@ -9111,28 +9254,28 @@ var CardResults = forwardRef17(
|
|
|
9111
9254
|
isRow ? "flex-row items-center gap-2" : "flex-col"
|
|
9112
9255
|
),
|
|
9113
9256
|
children: [
|
|
9114
|
-
/* @__PURE__ */
|
|
9115
|
-
/* @__PURE__ */
|
|
9116
|
-
/* @__PURE__ */
|
|
9257
|
+
/* @__PURE__ */ jsx51("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
|
|
9258
|
+
/* @__PURE__ */ jsxs39("span", { className: "flex flex-wrap flex-row gap-1 items-center", children: [
|
|
9259
|
+
/* @__PURE__ */ jsxs39(
|
|
9117
9260
|
Badge_default,
|
|
9118
9261
|
{
|
|
9119
9262
|
action: "success",
|
|
9120
9263
|
variant: "solid",
|
|
9121
9264
|
size: "large",
|
|
9122
|
-
iconLeft: /* @__PURE__ */
|
|
9265
|
+
iconLeft: /* @__PURE__ */ jsx51(CheckCircle3, {}),
|
|
9123
9266
|
children: [
|
|
9124
9267
|
correct_answers,
|
|
9125
9268
|
" Corretas"
|
|
9126
9269
|
]
|
|
9127
9270
|
}
|
|
9128
9271
|
),
|
|
9129
|
-
/* @__PURE__ */
|
|
9272
|
+
/* @__PURE__ */ jsxs39(
|
|
9130
9273
|
Badge_default,
|
|
9131
9274
|
{
|
|
9132
9275
|
action: "error",
|
|
9133
9276
|
variant: "solid",
|
|
9134
9277
|
size: "large",
|
|
9135
|
-
iconLeft: /* @__PURE__ */
|
|
9278
|
+
iconLeft: /* @__PURE__ */ jsx51(XCircle2, {}),
|
|
9136
9279
|
children: [
|
|
9137
9280
|
incorrect_answers,
|
|
9138
9281
|
" Incorretas"
|
|
@@ -9143,7 +9286,7 @@ var CardResults = forwardRef17(
|
|
|
9143
9286
|
]
|
|
9144
9287
|
}
|
|
9145
9288
|
),
|
|
9146
|
-
/* @__PURE__ */
|
|
9289
|
+
/* @__PURE__ */ jsx51(CaretRight5, { className: "min-w-6 min-h-6 text-text-800" })
|
|
9147
9290
|
] })
|
|
9148
9291
|
]
|
|
9149
9292
|
}
|
|
@@ -9169,13 +9312,13 @@ var CardStatus = forwardRef17(
|
|
|
9169
9312
|
const getIconBadge = (status2) => {
|
|
9170
9313
|
switch (status2) {
|
|
9171
9314
|
case "correct":
|
|
9172
|
-
return /* @__PURE__ */
|
|
9315
|
+
return /* @__PURE__ */ jsx51(CheckCircle3, {});
|
|
9173
9316
|
case "incorrect":
|
|
9174
|
-
return /* @__PURE__ */
|
|
9317
|
+
return /* @__PURE__ */ jsx51(XCircle2, {});
|
|
9175
9318
|
case "pending":
|
|
9176
|
-
return /* @__PURE__ */
|
|
9319
|
+
return /* @__PURE__ */ jsx51(Clock, {});
|
|
9177
9320
|
default:
|
|
9178
|
-
return /* @__PURE__ */
|
|
9321
|
+
return /* @__PURE__ */ jsx51(XCircle2, {});
|
|
9179
9322
|
}
|
|
9180
9323
|
};
|
|
9181
9324
|
const getActionBadge = (status2) => {
|
|
@@ -9190,7 +9333,7 @@ var CardStatus = forwardRef17(
|
|
|
9190
9333
|
return "info";
|
|
9191
9334
|
}
|
|
9192
9335
|
};
|
|
9193
|
-
return /* @__PURE__ */
|
|
9336
|
+
return /* @__PURE__ */ jsx51(
|
|
9194
9337
|
CardBase,
|
|
9195
9338
|
{
|
|
9196
9339
|
ref,
|
|
@@ -9199,10 +9342,10 @@ var CardStatus = forwardRef17(
|
|
|
9199
9342
|
minHeight: "medium",
|
|
9200
9343
|
className: cn("items-center cursor-pointer", className),
|
|
9201
9344
|
...props,
|
|
9202
|
-
children: /* @__PURE__ */
|
|
9203
|
-
/* @__PURE__ */
|
|
9204
|
-
/* @__PURE__ */
|
|
9205
|
-
status && /* @__PURE__ */
|
|
9345
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
9346
|
+
/* @__PURE__ */ jsx51("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
9347
|
+
/* @__PURE__ */ jsxs39("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
9348
|
+
status && /* @__PURE__ */ jsx51(
|
|
9206
9349
|
Badge_default,
|
|
9207
9350
|
{
|
|
9208
9351
|
action: getActionBadge(status),
|
|
@@ -9212,9 +9355,9 @@ var CardStatus = forwardRef17(
|
|
|
9212
9355
|
children: getLabelBadge(status)
|
|
9213
9356
|
}
|
|
9214
9357
|
),
|
|
9215
|
-
label && /* @__PURE__ */
|
|
9358
|
+
label && /* @__PURE__ */ jsx51("p", { className: "text-sm text-text-800", children: label })
|
|
9216
9359
|
] }),
|
|
9217
|
-
/* @__PURE__ */
|
|
9360
|
+
/* @__PURE__ */ jsx51(CaretRight5, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
9218
9361
|
] })
|
|
9219
9362
|
}
|
|
9220
9363
|
);
|
|
@@ -9222,7 +9365,7 @@ var CardStatus = forwardRef17(
|
|
|
9222
9365
|
);
|
|
9223
9366
|
var CardSettings = forwardRef17(
|
|
9224
9367
|
({ header, className, icon, ...props }, ref) => {
|
|
9225
|
-
return /* @__PURE__ */
|
|
9368
|
+
return /* @__PURE__ */ jsxs39(
|
|
9226
9369
|
CardBase,
|
|
9227
9370
|
{
|
|
9228
9371
|
ref,
|
|
@@ -9235,9 +9378,9 @@ var CardSettings = forwardRef17(
|
|
|
9235
9378
|
),
|
|
9236
9379
|
...props,
|
|
9237
9380
|
children: [
|
|
9238
|
-
/* @__PURE__ */
|
|
9239
|
-
/* @__PURE__ */
|
|
9240
|
-
/* @__PURE__ */
|
|
9381
|
+
/* @__PURE__ */ jsx51("span", { className: "[&>svg]:size-6", children: icon }),
|
|
9382
|
+
/* @__PURE__ */ jsx51("p", { className: "w-full text-sm truncate", children: header }),
|
|
9383
|
+
/* @__PURE__ */ jsx51(CaretRight5, { size: 24, className: "cursor-pointer" })
|
|
9241
9384
|
]
|
|
9242
9385
|
}
|
|
9243
9386
|
);
|
|
@@ -9245,7 +9388,7 @@ var CardSettings = forwardRef17(
|
|
|
9245
9388
|
);
|
|
9246
9389
|
var CardSupport = forwardRef17(
|
|
9247
9390
|
({ header, className, direction = "col", children, ...props }, ref) => {
|
|
9248
|
-
return /* @__PURE__ */
|
|
9391
|
+
return /* @__PURE__ */ jsxs39(
|
|
9249
9392
|
CardBase,
|
|
9250
9393
|
{
|
|
9251
9394
|
ref,
|
|
@@ -9258,7 +9401,7 @@ var CardSupport = forwardRef17(
|
|
|
9258
9401
|
),
|
|
9259
9402
|
...props,
|
|
9260
9403
|
children: [
|
|
9261
|
-
/* @__PURE__ */
|
|
9404
|
+
/* @__PURE__ */ jsxs39(
|
|
9262
9405
|
"div",
|
|
9263
9406
|
{
|
|
9264
9407
|
className: cn(
|
|
@@ -9266,12 +9409,12 @@ var CardSupport = forwardRef17(
|
|
|
9266
9409
|
direction == "col" ? "flex-col" : "flex-row items-center"
|
|
9267
9410
|
),
|
|
9268
9411
|
children: [
|
|
9269
|
-
/* @__PURE__ */
|
|
9270
|
-
/* @__PURE__ */
|
|
9412
|
+
/* @__PURE__ */ jsx51("span", { className: "w-full min-w-0", children: /* @__PURE__ */ jsx51("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
|
|
9413
|
+
/* @__PURE__ */ jsx51("span", { className: "flex flex-row gap-1", children })
|
|
9271
9414
|
]
|
|
9272
9415
|
}
|
|
9273
9416
|
),
|
|
9274
|
-
/* @__PURE__ */
|
|
9417
|
+
/* @__PURE__ */ jsx51(CaretRight5, { className: "text-text-800 cursor-pointer", size: 24 })
|
|
9275
9418
|
]
|
|
9276
9419
|
}
|
|
9277
9420
|
);
|
|
@@ -9291,7 +9434,7 @@ var CardForum = forwardRef17(
|
|
|
9291
9434
|
hour,
|
|
9292
9435
|
...props
|
|
9293
9436
|
}, ref) => {
|
|
9294
|
-
return /* @__PURE__ */
|
|
9437
|
+
return /* @__PURE__ */ jsxs39(
|
|
9295
9438
|
CardBase,
|
|
9296
9439
|
{
|
|
9297
9440
|
ref,
|
|
@@ -9302,7 +9445,7 @@ var CardForum = forwardRef17(
|
|
|
9302
9445
|
className: cn("w-auto h-auto gap-3", className),
|
|
9303
9446
|
...props,
|
|
9304
9447
|
children: [
|
|
9305
|
-
/* @__PURE__ */
|
|
9448
|
+
/* @__PURE__ */ jsx51(
|
|
9306
9449
|
"button",
|
|
9307
9450
|
{
|
|
9308
9451
|
type: "button",
|
|
@@ -9311,18 +9454,18 @@ var CardForum = forwardRef17(
|
|
|
9311
9454
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
9312
9455
|
}
|
|
9313
9456
|
),
|
|
9314
|
-
/* @__PURE__ */
|
|
9315
|
-
/* @__PURE__ */
|
|
9316
|
-
/* @__PURE__ */
|
|
9317
|
-
/* @__PURE__ */
|
|
9457
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
9458
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
9459
|
+
/* @__PURE__ */ jsx51("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
9460
|
+
/* @__PURE__ */ jsxs39("p", { className: "text-xs text-text-600", children: [
|
|
9318
9461
|
"\u2022 ",
|
|
9319
9462
|
date,
|
|
9320
9463
|
" \u2022 ",
|
|
9321
9464
|
hour
|
|
9322
9465
|
] })
|
|
9323
9466
|
] }),
|
|
9324
|
-
/* @__PURE__ */
|
|
9325
|
-
/* @__PURE__ */
|
|
9467
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
9468
|
+
/* @__PURE__ */ jsxs39(
|
|
9326
9469
|
"button",
|
|
9327
9470
|
{
|
|
9328
9471
|
type: "button",
|
|
@@ -9330,8 +9473,8 @@ var CardForum = forwardRef17(
|
|
|
9330
9473
|
onClick: () => onClickComments?.(valueComments),
|
|
9331
9474
|
className: "text-text-600 flex flex-row gap-2 items-center",
|
|
9332
9475
|
children: [
|
|
9333
|
-
/* @__PURE__ */
|
|
9334
|
-
/* @__PURE__ */
|
|
9476
|
+
/* @__PURE__ */ jsx51(ChatCircleText, { "aria-hidden": "true", size: 16 }),
|
|
9477
|
+
/* @__PURE__ */ jsxs39("p", { className: "text-xs", children: [
|
|
9335
9478
|
comments,
|
|
9336
9479
|
" respostas"
|
|
9337
9480
|
] })
|
|
@@ -9434,12 +9577,12 @@ var CardAudio = forwardRef17(
|
|
|
9434
9577
|
};
|
|
9435
9578
|
const getVolumeIcon = () => {
|
|
9436
9579
|
if (volume === 0) {
|
|
9437
|
-
return /* @__PURE__ */
|
|
9580
|
+
return /* @__PURE__ */ jsx51(SpeakerSimpleX, { size: 24 });
|
|
9438
9581
|
}
|
|
9439
9582
|
if (volume < 0.5) {
|
|
9440
|
-
return /* @__PURE__ */
|
|
9583
|
+
return /* @__PURE__ */ jsx51(SpeakerLow, { size: 24 });
|
|
9441
9584
|
}
|
|
9442
|
-
return /* @__PURE__ */
|
|
9585
|
+
return /* @__PURE__ */ jsx51(SpeakerHigh, { size: 24 });
|
|
9443
9586
|
};
|
|
9444
9587
|
useEffect21(() => {
|
|
9445
9588
|
const handleClickOutside = (event) => {
|
|
@@ -9455,7 +9598,7 @@ var CardAudio = forwardRef17(
|
|
|
9455
9598
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
9456
9599
|
};
|
|
9457
9600
|
}, []);
|
|
9458
|
-
return /* @__PURE__ */
|
|
9601
|
+
return /* @__PURE__ */ jsxs39(
|
|
9459
9602
|
CardBase,
|
|
9460
9603
|
{
|
|
9461
9604
|
ref,
|
|
@@ -9468,7 +9611,7 @@ var CardAudio = forwardRef17(
|
|
|
9468
9611
|
),
|
|
9469
9612
|
...props,
|
|
9470
9613
|
children: [
|
|
9471
|
-
/* @__PURE__ */
|
|
9614
|
+
/* @__PURE__ */ jsx51(
|
|
9472
9615
|
"audio",
|
|
9473
9616
|
{
|
|
9474
9617
|
ref: audioRef,
|
|
@@ -9480,7 +9623,7 @@ var CardAudio = forwardRef17(
|
|
|
9480
9623
|
onEnded: handleEnded,
|
|
9481
9624
|
"data-testid": "audio-element",
|
|
9482
9625
|
"aria-label": title,
|
|
9483
|
-
children: tracks ? tracks.map((track) => /* @__PURE__ */
|
|
9626
|
+
children: tracks ? tracks.map((track) => /* @__PURE__ */ jsx51(
|
|
9484
9627
|
"track",
|
|
9485
9628
|
{
|
|
9486
9629
|
kind: track.kind,
|
|
@@ -9490,7 +9633,7 @@ var CardAudio = forwardRef17(
|
|
|
9490
9633
|
default: track.default
|
|
9491
9634
|
},
|
|
9492
9635
|
track.src
|
|
9493
|
-
)) : /* @__PURE__ */
|
|
9636
|
+
)) : /* @__PURE__ */ jsx51(
|
|
9494
9637
|
"track",
|
|
9495
9638
|
{
|
|
9496
9639
|
kind: "captions",
|
|
@@ -9501,7 +9644,7 @@ var CardAudio = forwardRef17(
|
|
|
9501
9644
|
)
|
|
9502
9645
|
}
|
|
9503
9646
|
),
|
|
9504
|
-
/* @__PURE__ */
|
|
9647
|
+
/* @__PURE__ */ jsx51(
|
|
9505
9648
|
"button",
|
|
9506
9649
|
{
|
|
9507
9650
|
type: "button",
|
|
@@ -9509,14 +9652,14 @@ var CardAudio = forwardRef17(
|
|
|
9509
9652
|
disabled: !src,
|
|
9510
9653
|
className: "cursor-pointer text-text-950 hover:text-primary-600 disabled:text-text-400 disabled:cursor-not-allowed",
|
|
9511
9654
|
"aria-label": isPlaying ? "Pausar" : "Reproduzir",
|
|
9512
|
-
children: isPlaying ? /* @__PURE__ */
|
|
9513
|
-
/* @__PURE__ */
|
|
9514
|
-
/* @__PURE__ */
|
|
9515
|
-
] }) }) : /* @__PURE__ */
|
|
9655
|
+
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: [
|
|
9656
|
+
/* @__PURE__ */ jsx51("div", { className: "w-1 h-4 bg-current rounded-sm" }),
|
|
9657
|
+
/* @__PURE__ */ jsx51("div", { className: "w-1 h-4 bg-current rounded-sm" })
|
|
9658
|
+
] }) }) : /* @__PURE__ */ jsx51(Play, { size: 24 })
|
|
9516
9659
|
}
|
|
9517
9660
|
),
|
|
9518
|
-
/* @__PURE__ */
|
|
9519
|
-
/* @__PURE__ */
|
|
9661
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-800 text-md font-medium min-w-[2.5rem]", children: formatTime2(currentTime) }),
|
|
9662
|
+
/* @__PURE__ */ jsx51("div", { className: "flex-1 relative", "data-testid": "progress-bar", children: /* @__PURE__ */ jsx51(
|
|
9520
9663
|
"button",
|
|
9521
9664
|
{
|
|
9522
9665
|
type: "button",
|
|
@@ -9531,7 +9674,7 @@ var CardAudio = forwardRef17(
|
|
|
9531
9674
|
}
|
|
9532
9675
|
},
|
|
9533
9676
|
"aria-label": "Barra de progresso do \xE1udio",
|
|
9534
|
-
children: /* @__PURE__ */
|
|
9677
|
+
children: /* @__PURE__ */ jsx51(
|
|
9535
9678
|
"div",
|
|
9536
9679
|
{
|
|
9537
9680
|
className: "h-full bg-primary-600 rounded-full transition-all duration-100",
|
|
@@ -9542,19 +9685,19 @@ var CardAudio = forwardRef17(
|
|
|
9542
9685
|
)
|
|
9543
9686
|
}
|
|
9544
9687
|
) }),
|
|
9545
|
-
/* @__PURE__ */
|
|
9546
|
-
/* @__PURE__ */
|
|
9547
|
-
/* @__PURE__ */
|
|
9688
|
+
/* @__PURE__ */ jsx51("p", { className: "text-text-800 text-md font-medium min-w-[2.5rem]", children: formatTime2(duration) }),
|
|
9689
|
+
/* @__PURE__ */ jsxs39("div", { className: "relative h-6", ref: volumeControlRef, children: [
|
|
9690
|
+
/* @__PURE__ */ jsx51(
|
|
9548
9691
|
"button",
|
|
9549
9692
|
{
|
|
9550
9693
|
type: "button",
|
|
9551
9694
|
onClick: toggleVolumeControl,
|
|
9552
9695
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
9553
9696
|
"aria-label": "Controle de volume",
|
|
9554
|
-
children: /* @__PURE__ */
|
|
9697
|
+
children: /* @__PURE__ */ jsx51("div", { className: "w-6 h-6 flex items-center justify-center", children: getVolumeIcon() })
|
|
9555
9698
|
}
|
|
9556
9699
|
),
|
|
9557
|
-
showVolumeControl && /* @__PURE__ */
|
|
9700
|
+
showVolumeControl && /* @__PURE__ */ jsx51(
|
|
9558
9701
|
"button",
|
|
9559
9702
|
{
|
|
9560
9703
|
type: "button",
|
|
@@ -9564,7 +9707,7 @@ var CardAudio = forwardRef17(
|
|
|
9564
9707
|
setShowVolumeControl(false);
|
|
9565
9708
|
}
|
|
9566
9709
|
},
|
|
9567
|
-
children: /* @__PURE__ */
|
|
9710
|
+
children: /* @__PURE__ */ jsx51(
|
|
9568
9711
|
"input",
|
|
9569
9712
|
{
|
|
9570
9713
|
type: "range",
|
|
@@ -9605,22 +9748,22 @@ var CardAudio = forwardRef17(
|
|
|
9605
9748
|
}
|
|
9606
9749
|
)
|
|
9607
9750
|
] }),
|
|
9608
|
-
/* @__PURE__ */
|
|
9609
|
-
/* @__PURE__ */
|
|
9751
|
+
/* @__PURE__ */ jsxs39("div", { className: "relative h-6", ref: speedMenuRef, children: [
|
|
9752
|
+
/* @__PURE__ */ jsx51(
|
|
9610
9753
|
"button",
|
|
9611
9754
|
{
|
|
9612
9755
|
type: "button",
|
|
9613
9756
|
onClick: toggleSpeedMenu,
|
|
9614
9757
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
9615
9758
|
"aria-label": "Op\xE7\xF5es de velocidade",
|
|
9616
|
-
children: /* @__PURE__ */
|
|
9759
|
+
children: /* @__PURE__ */ jsx51(DotsThreeVertical2, { size: 24 })
|
|
9617
9760
|
}
|
|
9618
9761
|
),
|
|
9619
|
-
showSpeedMenu && /* @__PURE__ */
|
|
9762
|
+
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
9763
|
{ speed: 1, label: "1x" },
|
|
9621
9764
|
{ speed: 1.5, label: "1.5x" },
|
|
9622
9765
|
{ speed: 2, label: "2x" }
|
|
9623
|
-
].map(({ speed, label }) => /* @__PURE__ */
|
|
9766
|
+
].map(({ speed, label }) => /* @__PURE__ */ jsx51(
|
|
9624
9767
|
"button",
|
|
9625
9768
|
{
|
|
9626
9769
|
type: "button",
|
|
@@ -9648,7 +9791,7 @@ var SIMULADO_BACKGROUND_CLASSES = {
|
|
|
9648
9791
|
var CardSimulado = forwardRef17(
|
|
9649
9792
|
({ title, duration, info, backgroundColor, className, ...props }, ref) => {
|
|
9650
9793
|
const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
|
|
9651
|
-
return /* @__PURE__ */
|
|
9794
|
+
return /* @__PURE__ */ jsx51(
|
|
9652
9795
|
CardBase,
|
|
9653
9796
|
{
|
|
9654
9797
|
ref,
|
|
@@ -9661,18 +9804,18 @@ var CardSimulado = forwardRef17(
|
|
|
9661
9804
|
className
|
|
9662
9805
|
),
|
|
9663
9806
|
...props,
|
|
9664
|
-
children: /* @__PURE__ */
|
|
9665
|
-
/* @__PURE__ */
|
|
9666
|
-
/* @__PURE__ */
|
|
9667
|
-
/* @__PURE__ */
|
|
9668
|
-
duration && /* @__PURE__ */
|
|
9669
|
-
/* @__PURE__ */
|
|
9670
|
-
/* @__PURE__ */
|
|
9807
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex justify-between items-center w-full gap-4", children: [
|
|
9808
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
9809
|
+
/* @__PURE__ */ jsx51(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
|
|
9810
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex items-center gap-4 text-text-700", children: [
|
|
9811
|
+
duration && /* @__PURE__ */ jsxs39("div", { className: "flex items-center gap-1", children: [
|
|
9812
|
+
/* @__PURE__ */ jsx51(Clock, { size: 16, className: "flex-shrink-0" }),
|
|
9813
|
+
/* @__PURE__ */ jsx51(Text_default, { size: "sm", children: duration })
|
|
9671
9814
|
] }),
|
|
9672
|
-
/* @__PURE__ */
|
|
9815
|
+
/* @__PURE__ */ jsx51(Text_default, { size: "sm", className: "truncate", children: info })
|
|
9673
9816
|
] })
|
|
9674
9817
|
] }),
|
|
9675
|
-
/* @__PURE__ */
|
|
9818
|
+
/* @__PURE__ */ jsx51(
|
|
9676
9819
|
CaretRight5,
|
|
9677
9820
|
{
|
|
9678
9821
|
size: 24,
|
|
@@ -9717,7 +9860,7 @@ var CardTest = forwardRef17(
|
|
|
9717
9860
|
const interactiveClasses = isSelectable ? "cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary-950 focus:ring-offset-2" : "";
|
|
9718
9861
|
const selectedClasses = selected ? "ring-2 ring-primary-950 ring-offset-2" : "";
|
|
9719
9862
|
if (isSelectable) {
|
|
9720
|
-
return /* @__PURE__ */
|
|
9863
|
+
return /* @__PURE__ */ jsx51(
|
|
9721
9864
|
"button",
|
|
9722
9865
|
{
|
|
9723
9866
|
ref,
|
|
@@ -9729,8 +9872,8 @@ var CardTest = forwardRef17(
|
|
|
9729
9872
|
onKeyDown: handleKeyDown,
|
|
9730
9873
|
"aria-pressed": selected,
|
|
9731
9874
|
...props,
|
|
9732
|
-
children: /* @__PURE__ */
|
|
9733
|
-
/* @__PURE__ */
|
|
9875
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
9876
|
+
/* @__PURE__ */ jsx51(
|
|
9734
9877
|
Text_default,
|
|
9735
9878
|
{
|
|
9736
9879
|
size: "md",
|
|
@@ -9739,10 +9882,10 @@ var CardTest = forwardRef17(
|
|
|
9739
9882
|
children: title
|
|
9740
9883
|
}
|
|
9741
9884
|
),
|
|
9742
|
-
/* @__PURE__ */
|
|
9743
|
-
duration && /* @__PURE__ */
|
|
9744
|
-
/* @__PURE__ */
|
|
9745
|
-
/* @__PURE__ */
|
|
9885
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
9886
|
+
duration && /* @__PURE__ */ jsxs39("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
9887
|
+
/* @__PURE__ */ jsx51(Clock, { size: 16, className: "text-text-700" }),
|
|
9888
|
+
/* @__PURE__ */ jsx51(
|
|
9746
9889
|
Text_default,
|
|
9747
9890
|
{
|
|
9748
9891
|
size: "sm",
|
|
@@ -9751,7 +9894,7 @@ var CardTest = forwardRef17(
|
|
|
9751
9894
|
}
|
|
9752
9895
|
)
|
|
9753
9896
|
] }),
|
|
9754
|
-
/* @__PURE__ */
|
|
9897
|
+
/* @__PURE__ */ jsx51(
|
|
9755
9898
|
Text_default,
|
|
9756
9899
|
{
|
|
9757
9900
|
size: "sm",
|
|
@@ -9764,14 +9907,14 @@ var CardTest = forwardRef17(
|
|
|
9764
9907
|
}
|
|
9765
9908
|
);
|
|
9766
9909
|
}
|
|
9767
|
-
return /* @__PURE__ */
|
|
9910
|
+
return /* @__PURE__ */ jsx51(
|
|
9768
9911
|
"div",
|
|
9769
9912
|
{
|
|
9770
9913
|
ref,
|
|
9771
9914
|
className: cn(`${baseClasses} ${className}`.trim()),
|
|
9772
9915
|
...props,
|
|
9773
|
-
children: /* @__PURE__ */
|
|
9774
|
-
/* @__PURE__ */
|
|
9916
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
9917
|
+
/* @__PURE__ */ jsx51(
|
|
9775
9918
|
Text_default,
|
|
9776
9919
|
{
|
|
9777
9920
|
size: "md",
|
|
@@ -9780,10 +9923,10 @@ var CardTest = forwardRef17(
|
|
|
9780
9923
|
children: title
|
|
9781
9924
|
}
|
|
9782
9925
|
),
|
|
9783
|
-
/* @__PURE__ */
|
|
9784
|
-
duration && /* @__PURE__ */
|
|
9785
|
-
/* @__PURE__ */
|
|
9786
|
-
/* @__PURE__ */
|
|
9926
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
9927
|
+
duration && /* @__PURE__ */ jsxs39("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
9928
|
+
/* @__PURE__ */ jsx51(Clock, { size: 16, className: "text-text-700" }),
|
|
9929
|
+
/* @__PURE__ */ jsx51(
|
|
9787
9930
|
Text_default,
|
|
9788
9931
|
{
|
|
9789
9932
|
size: "sm",
|
|
@@ -9792,7 +9935,7 @@ var CardTest = forwardRef17(
|
|
|
9792
9935
|
}
|
|
9793
9936
|
)
|
|
9794
9937
|
] }),
|
|
9795
|
-
/* @__PURE__ */
|
|
9938
|
+
/* @__PURE__ */ jsx51(
|
|
9796
9939
|
Text_default,
|
|
9797
9940
|
{
|
|
9798
9941
|
size: "sm",
|
|
@@ -9829,14 +9972,14 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
9829
9972
|
}
|
|
9830
9973
|
};
|
|
9831
9974
|
var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
9832
|
-
return /* @__PURE__ */
|
|
9975
|
+
return /* @__PURE__ */ jsx51(
|
|
9833
9976
|
"div",
|
|
9834
9977
|
{
|
|
9835
9978
|
ref,
|
|
9836
9979
|
className: cn("w-full max-w-[992px] h-auto", className),
|
|
9837
9980
|
...props,
|
|
9838
|
-
children: /* @__PURE__ */
|
|
9839
|
-
data.map((section, sectionIndex) => /* @__PURE__ */
|
|
9981
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex flex-col gap-0", children: [
|
|
9982
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ jsx51("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxs39(
|
|
9840
9983
|
"div",
|
|
9841
9984
|
{
|
|
9842
9985
|
className: cn(
|
|
@@ -9844,7 +9987,7 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9844
9987
|
sectionIndex === 0 ? "rounded-t-3xl" : ""
|
|
9845
9988
|
),
|
|
9846
9989
|
children: [
|
|
9847
|
-
/* @__PURE__ */
|
|
9990
|
+
/* @__PURE__ */ jsx51(
|
|
9848
9991
|
Text_default,
|
|
9849
9992
|
{
|
|
9850
9993
|
size: "xs",
|
|
@@ -9853,9 +9996,9 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9853
9996
|
children: section.date
|
|
9854
9997
|
}
|
|
9855
9998
|
),
|
|
9856
|
-
/* @__PURE__ */
|
|
9999
|
+
/* @__PURE__ */ jsx51("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
9857
10000
|
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
9858
|
-
return /* @__PURE__ */
|
|
10001
|
+
return /* @__PURE__ */ jsx51(
|
|
9859
10002
|
CardBase,
|
|
9860
10003
|
{
|
|
9861
10004
|
layout: "horizontal",
|
|
@@ -9867,9 +10010,9 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9867
10010
|
transition-shadow duration-200 h-auto min-h-[61px]`
|
|
9868
10011
|
),
|
|
9869
10012
|
onClick: () => onSimulationClick?.(simulation),
|
|
9870
|
-
children: /* @__PURE__ */
|
|
9871
|
-
/* @__PURE__ */
|
|
9872
|
-
/* @__PURE__ */
|
|
10013
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
10014
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-wrap flex-col justify-between sm:flex-row gap-2 flex-1 min-w-0", children: [
|
|
10015
|
+
/* @__PURE__ */ jsx51(
|
|
9873
10016
|
Text_default,
|
|
9874
10017
|
{
|
|
9875
10018
|
size: "lg",
|
|
@@ -9878,8 +10021,8 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9878
10021
|
children: simulation.title
|
|
9879
10022
|
}
|
|
9880
10023
|
),
|
|
9881
|
-
/* @__PURE__ */
|
|
9882
|
-
/* @__PURE__ */
|
|
10024
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex items-center gap-2", children: [
|
|
10025
|
+
/* @__PURE__ */ jsx51(
|
|
9883
10026
|
Badge_default,
|
|
9884
10027
|
{
|
|
9885
10028
|
variant: "examsOutlined",
|
|
@@ -9888,10 +10031,10 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9888
10031
|
children: typeStyles.text
|
|
9889
10032
|
}
|
|
9890
10033
|
),
|
|
9891
|
-
/* @__PURE__ */
|
|
10034
|
+
/* @__PURE__ */ jsx51(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
9892
10035
|
] })
|
|
9893
10036
|
] }),
|
|
9894
|
-
/* @__PURE__ */
|
|
10037
|
+
/* @__PURE__ */ jsx51(
|
|
9895
10038
|
CaretRight5,
|
|
9896
10039
|
{
|
|
9897
10040
|
size: 24,
|
|
@@ -9907,7 +10050,7 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9907
10050
|
]
|
|
9908
10051
|
}
|
|
9909
10052
|
) }, section.date)),
|
|
9910
|
-
data.length > 0 && /* @__PURE__ */
|
|
10053
|
+
data.length > 0 && /* @__PURE__ */ jsx51("div", { className: "w-full h-6 bg-background rounded-b-3xl" })
|
|
9911
10054
|
] })
|
|
9912
10055
|
}
|
|
9913
10056
|
);
|
|
@@ -9915,7 +10058,7 @@ var CardSimulationHistory = forwardRef17(({ data, onSimulationClick, className,
|
|
|
9915
10058
|
|
|
9916
10059
|
// src/components/StatisticsCard/StatisticsCard.tsx
|
|
9917
10060
|
import { Plus } from "phosphor-react";
|
|
9918
|
-
import { jsx as
|
|
10061
|
+
import { jsx as jsx52, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
9919
10062
|
var VARIANT_STYLES = {
|
|
9920
10063
|
high: "bg-success-background",
|
|
9921
10064
|
medium: "bg-warning-background",
|
|
@@ -9929,12 +10072,12 @@ var VALUE_TEXT_COLORS = {
|
|
|
9929
10072
|
total: "text-info-700"
|
|
9930
10073
|
};
|
|
9931
10074
|
var StatCard = ({ item, showPlaceholder = false }) => {
|
|
9932
|
-
return /* @__PURE__ */
|
|
10075
|
+
return /* @__PURE__ */ jsxs40(
|
|
9933
10076
|
"div",
|
|
9934
10077
|
{
|
|
9935
10078
|
className: `rounded-xl py-[17px] px-6 min-h-[105px] flex flex-col justify-center items-start gap-1 ${VARIANT_STYLES[item.variant]}`,
|
|
9936
10079
|
children: [
|
|
9937
|
-
/* @__PURE__ */
|
|
10080
|
+
/* @__PURE__ */ jsx52(
|
|
9938
10081
|
Text_default,
|
|
9939
10082
|
{
|
|
9940
10083
|
size: "4xl",
|
|
@@ -9943,7 +10086,7 @@ var StatCard = ({ item, showPlaceholder = false }) => {
|
|
|
9943
10086
|
children: showPlaceholder ? "-" : item.value
|
|
9944
10087
|
}
|
|
9945
10088
|
),
|
|
9946
|
-
/* @__PURE__ */
|
|
10089
|
+
/* @__PURE__ */ jsx52(
|
|
9947
10090
|
Text_default,
|
|
9948
10091
|
{
|
|
9949
10092
|
size: "xs",
|
|
@@ -9978,13 +10121,13 @@ var StatisticsCard = ({
|
|
|
9978
10121
|
}) => {
|
|
9979
10122
|
const hasData = data && data.length > 0;
|
|
9980
10123
|
const gridColumnsClass = hasData ? getGridColumnsClass(data.length) : "";
|
|
9981
|
-
return /* @__PURE__ */
|
|
10124
|
+
return /* @__PURE__ */ jsxs40(
|
|
9982
10125
|
"div",
|
|
9983
10126
|
{
|
|
9984
10127
|
className: `bg-background rounded-xl p-4 h-auto lg:h-[185px] flex flex-col gap-2 ${className}`,
|
|
9985
10128
|
children: [
|
|
9986
|
-
/* @__PURE__ */
|
|
9987
|
-
/* @__PURE__ */
|
|
10129
|
+
/* @__PURE__ */ jsxs40("div", { className: "flex flex-row justify-between items-center gap-4", children: [
|
|
10130
|
+
/* @__PURE__ */ jsx52(
|
|
9988
10131
|
Text_default,
|
|
9989
10132
|
{
|
|
9990
10133
|
as: "h3",
|
|
@@ -9995,22 +10138,22 @@ var StatisticsCard = ({
|
|
|
9995
10138
|
children: title
|
|
9996
10139
|
}
|
|
9997
10140
|
),
|
|
9998
|
-
dropdownOptions && dropdownOptions.length > 0 && /* @__PURE__ */
|
|
10141
|
+
dropdownOptions && dropdownOptions.length > 0 && /* @__PURE__ */ jsx52("div", { className: "w-[120px] min-w-[90px] sm:shrink-0", children: /* @__PURE__ */ jsxs40(
|
|
9999
10142
|
Select_default,
|
|
10000
10143
|
{
|
|
10001
10144
|
value: selectedDropdownValue,
|
|
10002
10145
|
onValueChange: onDropdownChange,
|
|
10003
10146
|
size: "medium",
|
|
10004
10147
|
children: [
|
|
10005
|
-
/* @__PURE__ */
|
|
10148
|
+
/* @__PURE__ */ jsx52(
|
|
10006
10149
|
SelectTrigger,
|
|
10007
10150
|
{
|
|
10008
10151
|
className: "border border-border-300 rounded [&>span]:whitespace-nowrap [&>span]:overflow-hidden [&>span]:text-ellipsis",
|
|
10009
10152
|
"aria-label": dropdownAriaLabel,
|
|
10010
|
-
children: /* @__PURE__ */
|
|
10153
|
+
children: /* @__PURE__ */ jsx52(SelectValue, { placeholder: selectPlaceholder })
|
|
10011
10154
|
}
|
|
10012
10155
|
),
|
|
10013
|
-
/* @__PURE__ */
|
|
10156
|
+
/* @__PURE__ */ jsx52(SelectContent, { className: "min-w-[120px]", children: dropdownOptions.map((option) => /* @__PURE__ */ jsx52(
|
|
10014
10157
|
SelectItem,
|
|
10015
10158
|
{
|
|
10016
10159
|
value: option.value,
|
|
@@ -10023,11 +10166,11 @@ var StatisticsCard = ({
|
|
|
10023
10166
|
}
|
|
10024
10167
|
) })
|
|
10025
10168
|
] }),
|
|
10026
|
-
hasData ? /* @__PURE__ */
|
|
10169
|
+
hasData ? /* @__PURE__ */ jsx52(
|
|
10027
10170
|
"div",
|
|
10028
10171
|
{
|
|
10029
10172
|
className: `grid grid-cols-1 sm:grid-cols-2 gap-[13px] ${gridColumnsClass}`,
|
|
10030
|
-
children: data.map((item, index) => /* @__PURE__ */
|
|
10173
|
+
children: data.map((item, index) => /* @__PURE__ */ jsx52(
|
|
10031
10174
|
StatCard,
|
|
10032
10175
|
{
|
|
10033
10176
|
item,
|
|
@@ -10036,8 +10179,8 @@ var StatisticsCard = ({
|
|
|
10036
10179
|
`${item.variant}-${item.label}-${index}`
|
|
10037
10180
|
))
|
|
10038
10181
|
}
|
|
10039
|
-
) : /* @__PURE__ */
|
|
10040
|
-
/* @__PURE__ */
|
|
10182
|
+
) : /* @__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: [
|
|
10183
|
+
/* @__PURE__ */ jsx52(
|
|
10041
10184
|
Text_default,
|
|
10042
10185
|
{
|
|
10043
10186
|
size: "sm",
|
|
@@ -10046,14 +10189,14 @@ var StatisticsCard = ({
|
|
|
10046
10189
|
children: emptyStateMessage
|
|
10047
10190
|
}
|
|
10048
10191
|
),
|
|
10049
|
-
onEmptyStateButtonClick && /* @__PURE__ */
|
|
10192
|
+
onEmptyStateButtonClick && /* @__PURE__ */ jsx52(
|
|
10050
10193
|
Button_default,
|
|
10051
10194
|
{
|
|
10052
10195
|
variant: "outline",
|
|
10053
10196
|
action: "primary",
|
|
10054
10197
|
size: "small",
|
|
10055
10198
|
onClick: onEmptyStateButtonClick,
|
|
10056
|
-
iconLeft: /* @__PURE__ */
|
|
10199
|
+
iconLeft: /* @__PURE__ */ jsx52(Plus, { size: 16, weight: "bold" }),
|
|
10057
10200
|
children: emptyStateButtonText
|
|
10058
10201
|
}
|
|
10059
10202
|
)
|
|
@@ -10064,7 +10207,7 @@ var StatisticsCard = ({
|
|
|
10064
10207
|
};
|
|
10065
10208
|
|
|
10066
10209
|
// src/components/NotFound/NotFound.tsx
|
|
10067
|
-
import { jsx as
|
|
10210
|
+
import { jsx as jsx53, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
10068
10211
|
var NotFound = ({
|
|
10069
10212
|
title,
|
|
10070
10213
|
description,
|
|
@@ -10107,22 +10250,22 @@ var NotFound = ({
|
|
|
10107
10250
|
const errorTitle = title || getDefaultTitle();
|
|
10108
10251
|
const errorDescription = description || getDefaultDescription();
|
|
10109
10252
|
const errorCode = getErrorCode();
|
|
10110
|
-
return /* @__PURE__ */
|
|
10253
|
+
return /* @__PURE__ */ jsx53(
|
|
10111
10254
|
"div",
|
|
10112
10255
|
{
|
|
10113
10256
|
className: cn(
|
|
10114
10257
|
"flex flex-col w-full h-screen items-center justify-center bg-background-50 px-4",
|
|
10115
10258
|
className
|
|
10116
10259
|
),
|
|
10117
|
-
children: /* @__PURE__ */
|
|
10260
|
+
children: /* @__PURE__ */ jsx53(
|
|
10118
10261
|
"main",
|
|
10119
10262
|
{
|
|
10120
10263
|
role: "main",
|
|
10121
10264
|
"aria-labelledby": "error-title",
|
|
10122
10265
|
"aria-describedby": "error-description",
|
|
10123
10266
|
className: "flex flex-col items-center text-center max-w-md space-y-6",
|
|
10124
|
-
children: /* @__PURE__ */
|
|
10125
|
-
/* @__PURE__ */
|
|
10267
|
+
children: /* @__PURE__ */ jsxs41("section", { "aria-label": `Erro ${errorCode}`, children: [
|
|
10268
|
+
/* @__PURE__ */ jsx53(
|
|
10126
10269
|
"div",
|
|
10127
10270
|
{
|
|
10128
10271
|
className: "text-8xl font-bold text-primary-300 select-none",
|
|
@@ -10130,8 +10273,8 @@ var NotFound = ({
|
|
|
10130
10273
|
children: errorCode
|
|
10131
10274
|
}
|
|
10132
10275
|
),
|
|
10133
|
-
/* @__PURE__ */
|
|
10134
|
-
/* @__PURE__ */
|
|
10276
|
+
/* @__PURE__ */ jsxs41("header", { className: "space-y-2", children: [
|
|
10277
|
+
/* @__PURE__ */ jsx53(
|
|
10135
10278
|
Text_default,
|
|
10136
10279
|
{
|
|
10137
10280
|
size: "xl",
|
|
@@ -10142,9 +10285,9 @@ var NotFound = ({
|
|
|
10142
10285
|
children: errorTitle
|
|
10143
10286
|
}
|
|
10144
10287
|
),
|
|
10145
|
-
/* @__PURE__ */
|
|
10288
|
+
/* @__PURE__ */ jsx53(Text_default, { size: "md", className: "text-text-600", id: "error-description", children: errorDescription })
|
|
10146
10289
|
] }),
|
|
10147
|
-
onButtonClick && /* @__PURE__ */
|
|
10290
|
+
onButtonClick && /* @__PURE__ */ jsx53("nav", { "aria-label": "Navega\xE7\xE3o de erro", children: /* @__PURE__ */ jsx53(
|
|
10148
10291
|
Button_default,
|
|
10149
10292
|
{
|
|
10150
10293
|
onClick: handleButtonClick,
|
|
@@ -10164,35 +10307,6 @@ var NotFound = ({
|
|
|
10164
10307
|
};
|
|
10165
10308
|
var NotFound_default = NotFound;
|
|
10166
10309
|
|
|
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
10310
|
// src/components/VideoPlayer/VideoPlayer.tsx
|
|
10197
10311
|
import {
|
|
10198
10312
|
useRef as useRef11,
|
|
@@ -11669,10 +11783,10 @@ CardAccordation.displayName = "CardAccordation";
|
|
|
11669
11783
|
|
|
11670
11784
|
// src/components/Accordation/AccordionGroup.tsx
|
|
11671
11785
|
import {
|
|
11672
|
-
Children as
|
|
11673
|
-
cloneElement as
|
|
11786
|
+
Children as Children7,
|
|
11787
|
+
cloneElement as cloneElement8,
|
|
11674
11788
|
forwardRef as forwardRef19,
|
|
11675
|
-
isValidElement as
|
|
11789
|
+
isValidElement as isValidElement7,
|
|
11676
11790
|
useEffect as useEffect25,
|
|
11677
11791
|
useRef as useRef12,
|
|
11678
11792
|
useState as useState24
|
|
@@ -11696,8 +11810,8 @@ function createAccordionGroupStore(type, initialValue, collapsible) {
|
|
|
11696
11810
|
}));
|
|
11697
11811
|
}
|
|
11698
11812
|
var injectStore6 = (children, store, indexRef, onItemToggle) => {
|
|
11699
|
-
return
|
|
11700
|
-
if (!
|
|
11813
|
+
return Children7.map(children, (child) => {
|
|
11814
|
+
if (!isValidElement7(child)) {
|
|
11701
11815
|
return child;
|
|
11702
11816
|
}
|
|
11703
11817
|
const typedChild = child;
|
|
@@ -11724,11 +11838,11 @@ var injectStore6 = (children, store, indexRef, onItemToggle) => {
|
|
|
11724
11838
|
if (displayName === "CardAccordation") {
|
|
11725
11839
|
newProps.children = processedChildren;
|
|
11726
11840
|
} else if (processedChildren !== typedChild.props.children) {
|
|
11727
|
-
return
|
|
11841
|
+
return cloneElement8(typedChild, { children: processedChildren });
|
|
11728
11842
|
}
|
|
11729
11843
|
}
|
|
11730
11844
|
if (Object.keys(newProps).length > 0) {
|
|
11731
|
-
return
|
|
11845
|
+
return cloneElement8(typedChild, newProps);
|
|
11732
11846
|
}
|
|
11733
11847
|
return child;
|
|
11734
11848
|
});
|