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.js
CHANGED
|
@@ -2937,7 +2937,38 @@ var Divider_default = Divider;
|
|
|
2937
2937
|
// src/components/Table/Table.tsx
|
|
2938
2938
|
var import_react15 = require("react");
|
|
2939
2939
|
var import_phosphor_react10 = require("phosphor-react");
|
|
2940
|
+
|
|
2941
|
+
// src/components/NoSearchResult/NoSearchResult.tsx
|
|
2940
2942
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2943
|
+
var NoSearchResult = ({ image, title, description }) => {
|
|
2944
|
+
const displayTitle = title || "Nenhum resultado encontrado";
|
|
2945
|
+
const displayDescription = description || "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave.";
|
|
2946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row justify-center items-center gap-8 w-full max-w-4xl min-h-96", children: [
|
|
2947
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-72 h-72 flex-shrink-0 relative", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2948
|
+
"img",
|
|
2949
|
+
{
|
|
2950
|
+
src: image,
|
|
2951
|
+
alt: "No search results",
|
|
2952
|
+
className: "w-full h-full object-contain"
|
|
2953
|
+
}
|
|
2954
|
+
) }),
|
|
2955
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col items-start w-full max-w-md", children: [
|
|
2956
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "flex flex-row justify-between items-end px-6 pt-6 pb-4 w-full rounded-t-xl", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2957
|
+
Text_default,
|
|
2958
|
+
{
|
|
2959
|
+
as: "h2",
|
|
2960
|
+
className: "text-text-950 font-semibold text-3xl leading-tight w-full flex items-center",
|
|
2961
|
+
children: displayTitle
|
|
2962
|
+
}
|
|
2963
|
+
) }),
|
|
2964
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "flex flex-row justify-center items-center px-6 gap-2 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text_default, { className: "text-text-600 font-normal text-lg leading-relaxed w-full text-justify", children: displayDescription }) })
|
|
2965
|
+
] })
|
|
2966
|
+
] });
|
|
2967
|
+
};
|
|
2968
|
+
var NoSearchResult_default = NoSearchResult;
|
|
2969
|
+
|
|
2970
|
+
// src/components/Table/Table.tsx
|
|
2971
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2941
2972
|
function useTableSort(data, options = {}) {
|
|
2942
2973
|
const { syncWithUrl = false } = options;
|
|
2943
2974
|
const getInitialState = () => {
|
|
@@ -3008,33 +3039,142 @@ function useTableSort(data, options = {}) {
|
|
|
3008
3039
|
return { sortedData, sortColumn, sortDirection, handleSort };
|
|
3009
3040
|
}
|
|
3010
3041
|
var Table = (0, import_react15.forwardRef)(
|
|
3011
|
-
({
|
|
3012
|
-
"
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3042
|
+
({
|
|
3043
|
+
variant = "default",
|
|
3044
|
+
className,
|
|
3045
|
+
children,
|
|
3046
|
+
searchTerm,
|
|
3047
|
+
noSearchResultImage,
|
|
3048
|
+
noSearchResultTitle = "Nenhum resultado encontrado",
|
|
3049
|
+
noSearchResultDescription = "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave.",
|
|
3050
|
+
emptyStateMessage = "Nenhum dado dispon\xEDvel no momento.",
|
|
3051
|
+
emptyStateButtonText = "Adicionar item",
|
|
3052
|
+
onEmptyStateButtonClick,
|
|
3053
|
+
...props
|
|
3054
|
+
}, ref) => {
|
|
3055
|
+
const isTableBodyEmpty = (0, import_react15.useMemo)(() => {
|
|
3056
|
+
let foundBody = false;
|
|
3057
|
+
let empty = true;
|
|
3058
|
+
import_react15.Children.forEach(children, (child) => {
|
|
3059
|
+
if ((0, import_react15.isValidElement)(child) && child.type === TableBody) {
|
|
3060
|
+
foundBody = true;
|
|
3061
|
+
const bodyProps = child.props;
|
|
3062
|
+
if (import_react15.Children.count(bodyProps?.children) > 0) {
|
|
3063
|
+
empty = false;
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
});
|
|
3067
|
+
return foundBody ? empty : false;
|
|
3068
|
+
}, [children]);
|
|
3069
|
+
const columnCount = (0, import_react15.useMemo)(() => {
|
|
3070
|
+
let count = 0;
|
|
3071
|
+
import_react15.Children.forEach(children, (child) => {
|
|
3072
|
+
if ((0, import_react15.isValidElement)(child) && child.type === TableHeader) {
|
|
3073
|
+
const headerProps = child.props;
|
|
3074
|
+
import_react15.Children.forEach(headerProps.children, (row) => {
|
|
3075
|
+
if ((0, import_react15.isValidElement)(row) && row.type === TableRow) {
|
|
3076
|
+
const rowProps = row.props;
|
|
3077
|
+
count = import_react15.Children.count(rowProps.children);
|
|
3078
|
+
}
|
|
3079
|
+
});
|
|
3080
|
+
}
|
|
3081
|
+
});
|
|
3082
|
+
return count || 1;
|
|
3083
|
+
}, [children]);
|
|
3084
|
+
const hasSearchTerm = searchTerm && searchTerm.trim() !== "";
|
|
3085
|
+
const showNoSearchResult = hasSearchTerm && isTableBodyEmpty;
|
|
3086
|
+
const showEmptyState = !hasSearchTerm && isTableBodyEmpty;
|
|
3087
|
+
if (showNoSearchResult) {
|
|
3088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
3089
|
+
"div",
|
|
3020
3090
|
{
|
|
3021
|
-
ref,
|
|
3022
3091
|
className: cn(
|
|
3023
|
-
"
|
|
3024
|
-
|
|
3092
|
+
"relative w-full overflow-x-auto",
|
|
3093
|
+
variant === "default" && "border border-border-200 rounded-xl"
|
|
3025
3094
|
),
|
|
3026
|
-
...props,
|
|
3027
3095
|
children: [
|
|
3028
|
-
/* @__PURE__ */ (0,
|
|
3029
|
-
|
|
3096
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3097
|
+
"table",
|
|
3098
|
+
{
|
|
3099
|
+
ref,
|
|
3100
|
+
className: cn(
|
|
3101
|
+
"analytica-table w-full caption-bottom text-sm border-separate border-spacing-0",
|
|
3102
|
+
className
|
|
3103
|
+
),
|
|
3104
|
+
...props,
|
|
3105
|
+
children: import_react15.Children.map(children, (child) => {
|
|
3106
|
+
if ((0, import_react15.isValidElement)(child) && (child.type === TableCaption || child.type === TableHeader)) {
|
|
3107
|
+
return child;
|
|
3108
|
+
}
|
|
3109
|
+
return null;
|
|
3110
|
+
})
|
|
3111
|
+
}
|
|
3112
|
+
),
|
|
3113
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "py-8 flex justify-center", children: noSearchResultImage ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3114
|
+
NoSearchResult_default,
|
|
3115
|
+
{
|
|
3116
|
+
image: noSearchResultImage,
|
|
3117
|
+
title: noSearchResultTitle,
|
|
3118
|
+
description: noSearchResultDescription
|
|
3119
|
+
}
|
|
3120
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "text-center", children: [
|
|
3121
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-text-600 text-lg font-semibold mb-2", children: noSearchResultTitle }),
|
|
3122
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-text-500 text-sm", children: noSearchResultDescription })
|
|
3123
|
+
] }) })
|
|
3030
3124
|
]
|
|
3031
3125
|
}
|
|
3032
|
-
)
|
|
3126
|
+
);
|
|
3033
3127
|
}
|
|
3034
|
-
|
|
3128
|
+
const modifiedChildren = import_react15.Children.map(children, (child) => {
|
|
3129
|
+
if ((0, import_react15.isValidElement)(child) && child.type === TableBody && showEmptyState) {
|
|
3130
|
+
return (0, import_react15.cloneElement)(child, {
|
|
3131
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableRow, { variant, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableCell, { colSpan: columnCount, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 gap-4", children: [
|
|
3132
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-text-600 text-base font-normal", children: emptyStateMessage }),
|
|
3133
|
+
onEmptyStateButtonClick && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3134
|
+
Button_default,
|
|
3135
|
+
{
|
|
3136
|
+
variant: "solid",
|
|
3137
|
+
action: "primary",
|
|
3138
|
+
size: "medium",
|
|
3139
|
+
onClick: onEmptyStateButtonClick,
|
|
3140
|
+
children: emptyStateButtonText
|
|
3141
|
+
}
|
|
3142
|
+
)
|
|
3143
|
+
] }) }) })
|
|
3144
|
+
});
|
|
3145
|
+
}
|
|
3146
|
+
return child;
|
|
3147
|
+
});
|
|
3148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3149
|
+
"div",
|
|
3150
|
+
{
|
|
3151
|
+
className: cn(
|
|
3152
|
+
"relative w-full overflow-x-auto",
|
|
3153
|
+
variant === "default" && "border border-border-200 rounded-xl"
|
|
3154
|
+
),
|
|
3155
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
3156
|
+
"table",
|
|
3157
|
+
{
|
|
3158
|
+
ref,
|
|
3159
|
+
className: cn(
|
|
3160
|
+
"analytica-table w-full caption-bottom text-sm border-separate border-spacing-0",
|
|
3161
|
+
className
|
|
3162
|
+
),
|
|
3163
|
+
...props,
|
|
3164
|
+
children: [
|
|
3165
|
+
!import_react15.Children.toArray(children).some(
|
|
3166
|
+
(child) => (0, import_react15.isValidElement)(child) && child.type === TableCaption
|
|
3167
|
+
) && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("caption", { className: "sr-only", children: "My Table" }),
|
|
3168
|
+
modifiedChildren
|
|
3169
|
+
]
|
|
3170
|
+
}
|
|
3171
|
+
)
|
|
3172
|
+
}
|
|
3173
|
+
);
|
|
3174
|
+
}
|
|
3035
3175
|
);
|
|
3036
3176
|
Table.displayName = "Table";
|
|
3037
|
-
var TableHeader = (0, import_react15.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3177
|
+
var TableHeader = (0, import_react15.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3038
3178
|
"thead",
|
|
3039
3179
|
{
|
|
3040
3180
|
ref,
|
|
@@ -3044,7 +3184,7 @@ var TableHeader = (0, import_react15.forwardRef)(({ className, ...props }, ref)
|
|
|
3044
3184
|
));
|
|
3045
3185
|
TableHeader.displayName = "TableHeader";
|
|
3046
3186
|
var TableBody = (0, import_react15.forwardRef)(
|
|
3047
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3187
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3048
3188
|
"tbody",
|
|
3049
3189
|
{
|
|
3050
3190
|
ref,
|
|
@@ -3055,7 +3195,7 @@ var TableBody = (0, import_react15.forwardRef)(
|
|
|
3055
3195
|
);
|
|
3056
3196
|
TableBody.displayName = "TableBody";
|
|
3057
3197
|
var TableFooter = (0, import_react15.forwardRef)(
|
|
3058
|
-
({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3198
|
+
({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3059
3199
|
"tfoot",
|
|
3060
3200
|
{
|
|
3061
3201
|
ref,
|
|
@@ -3095,14 +3235,14 @@ var TableRow = (0, import_react15.forwardRef)(
|
|
|
3095
3235
|
className,
|
|
3096
3236
|
...props
|
|
3097
3237
|
}, ref) => {
|
|
3098
|
-
return /* @__PURE__ */ (0,
|
|
3238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3099
3239
|
"tr",
|
|
3100
3240
|
{
|
|
3101
3241
|
ref,
|
|
3102
3242
|
className: cn(
|
|
3103
3243
|
"transition-colors",
|
|
3104
|
-
state
|
|
3105
|
-
|
|
3244
|
+
state === "disabled" ? "" : "hover:bg-muted/50",
|
|
3245
|
+
state === "disabled" || !clickable ? "" : "cursor-pointer",
|
|
3106
3246
|
VARIANT_STATES_ROW[state][variant],
|
|
3107
3247
|
className
|
|
3108
3248
|
),
|
|
@@ -3127,7 +3267,7 @@ var TableHead = (0, import_react15.forwardRef)(
|
|
|
3127
3267
|
onSort();
|
|
3128
3268
|
}
|
|
3129
3269
|
};
|
|
3130
|
-
return /* @__PURE__ */ (0,
|
|
3270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3131
3271
|
"th",
|
|
3132
3272
|
{
|
|
3133
3273
|
ref,
|
|
@@ -3138,11 +3278,11 @@ var TableHead = (0, import_react15.forwardRef)(
|
|
|
3138
3278
|
),
|
|
3139
3279
|
onClick: handleClick,
|
|
3140
3280
|
...props,
|
|
3141
|
-
children: /* @__PURE__ */ (0,
|
|
3281
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
3142
3282
|
children,
|
|
3143
|
-
sortable && /* @__PURE__ */ (0,
|
|
3144
|
-
sortDirection === "asc" && /* @__PURE__ */ (0,
|
|
3145
|
-
sortDirection === "desc" && /* @__PURE__ */ (0,
|
|
3283
|
+
sortable && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col", children: [
|
|
3284
|
+
sortDirection === "asc" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_phosphor_react10.CaretUp, { size: 16, weight: "fill", className: "text-text-800" }),
|
|
3285
|
+
sortDirection === "desc" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_phosphor_react10.CaretDown, { size: 16, weight: "fill", className: "text-text-800" })
|
|
3146
3286
|
] })
|
|
3147
3287
|
] })
|
|
3148
3288
|
}
|
|
@@ -3150,7 +3290,7 @@ var TableHead = (0, import_react15.forwardRef)(
|
|
|
3150
3290
|
}
|
|
3151
3291
|
);
|
|
3152
3292
|
TableHead.displayName = "TableHead";
|
|
3153
|
-
var TableCell = (0, import_react15.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3293
|
+
var TableCell = (0, import_react15.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3154
3294
|
"td",
|
|
3155
3295
|
{
|
|
3156
3296
|
ref,
|
|
@@ -3162,7 +3302,7 @@ var TableCell = (0, import_react15.forwardRef)(({ className, ...props }, ref) =>
|
|
|
3162
3302
|
}
|
|
3163
3303
|
));
|
|
3164
3304
|
TableCell.displayName = "TableCell";
|
|
3165
|
-
var TableCaption = (0, import_react15.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
3305
|
+
var TableCaption = (0, import_react15.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3166
3306
|
"caption",
|
|
3167
3307
|
{
|
|
3168
3308
|
ref,
|
|
@@ -3178,7 +3318,7 @@ var Table_default = Table;
|
|
|
3178
3318
|
|
|
3179
3319
|
// src/components/AlertManagerView/AlertsManagerView.tsx
|
|
3180
3320
|
var import_phosphor_react11 = require("phosphor-react");
|
|
3181
|
-
var
|
|
3321
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
3182
3322
|
var AlertsManagerView = ({
|
|
3183
3323
|
alertData,
|
|
3184
3324
|
isOpen = false,
|
|
@@ -3221,7 +3361,7 @@ var AlertsManagerView = ({
|
|
|
3221
3361
|
year: "numeric"
|
|
3222
3362
|
});
|
|
3223
3363
|
};
|
|
3224
|
-
return /* @__PURE__ */ (0,
|
|
3364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3225
3365
|
Modal_default,
|
|
3226
3366
|
{
|
|
3227
3367
|
isOpen,
|
|
@@ -3229,59 +3369,59 @@ var AlertsManagerView = ({
|
|
|
3229
3369
|
title: alertData.title,
|
|
3230
3370
|
size: "md",
|
|
3231
3371
|
contentClassName: "p-0",
|
|
3232
|
-
children: /* @__PURE__ */ (0,
|
|
3233
|
-
/* @__PURE__ */ (0,
|
|
3234
|
-
/* @__PURE__ */ (0,
|
|
3372
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "flex flex-col h-[calc(100vh-8rem)] max-h-[700px]", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: [
|
|
3373
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "bg-background-50 px-5 py-6 flex flex-col items-center gap-4 rounded-xl mb-4", children: [
|
|
3374
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3235
3375
|
"img",
|
|
3236
3376
|
{
|
|
3237
3377
|
src: imageUrl || notification_default,
|
|
3238
3378
|
alt: alertData.title || "Imagem do alerta"
|
|
3239
3379
|
}
|
|
3240
3380
|
),
|
|
3241
|
-
/* @__PURE__ */ (0,
|
|
3242
|
-
/* @__PURE__ */ (0,
|
|
3243
|
-
/* @__PURE__ */ (0,
|
|
3381
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex flex-col items-center text-center gap-3", children: [
|
|
3382
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text_default, { size: "lg", weight: "semibold", children: alertData.title || "Sem T\xEDtulo" }),
|
|
3383
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text_default, { size: "sm", weight: "normal", className: "text-text-500", children: alertData.message || "Sem mensagem" })
|
|
3244
3384
|
] })
|
|
3245
3385
|
] }),
|
|
3246
|
-
/* @__PURE__ */ (0,
|
|
3247
|
-
/* @__PURE__ */ (0,
|
|
3248
|
-
/* @__PURE__ */ (0,
|
|
3249
|
-
/* @__PURE__ */ (0,
|
|
3386
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Divider_default, { className: "my-4" }),
|
|
3387
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex justify-between items-center mb-4 px-2", children: [
|
|
3388
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-700", children: "Enviado em" }),
|
|
3389
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text_default, { size: "sm", weight: "medium", className: "text-text-900", children: formatDate(alertData.sentAt) })
|
|
3250
3390
|
] }),
|
|
3251
|
-
/* @__PURE__ */ (0,
|
|
3252
|
-
/* @__PURE__ */ (0,
|
|
3253
|
-
/* @__PURE__ */ (0,
|
|
3254
|
-
/* @__PURE__ */ (0,
|
|
3255
|
-
/* @__PURE__ */ (0,
|
|
3391
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Divider_default, { className: "my-4" }),
|
|
3392
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Table_default, { variant: "borderless", className: "table-fixed", children: [
|
|
3393
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { variant: "borderless", children: [
|
|
3394
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHead, { className: "py-2 px-3.5 text-start", children: "Destinat\xE1rio" }),
|
|
3395
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHead, { className: "py-2 px-3.5 w-[120px] text-start", children: "Status" })
|
|
3256
3396
|
] }) }),
|
|
3257
|
-
/* @__PURE__ */ (0,
|
|
3258
|
-
/* @__PURE__ */ (0,
|
|
3259
|
-
/* @__PURE__ */ (0,
|
|
3397
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableBody, { variant: "borderless", children: paginatedRecipients.map((recipient) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
|
|
3398
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableCell, { className: "py-2 px-3.5 flex flex-row gap-2 text-start truncate", children: [
|
|
3399
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "rounded-full size-6 bg-primary-100 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_phosphor_react11.User, { className: "text-primary-950", size: 18 }) }),
|
|
3260
3400
|
recipient.name
|
|
3261
3401
|
] }),
|
|
3262
|
-
/* @__PURE__ */ (0,
|
|
3402
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { className: "py-2 px-3.5 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "flex justify-center items-center gap-1", children: recipient.status === "viewed" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Badge_default, { variant: "solid", action: "success", children: "Visualizado" }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Badge_default, { variant: "solid", action: "error", children: "Pendente" }) }) })
|
|
3263
3403
|
] }, recipient.id)) })
|
|
3264
3404
|
] }) }),
|
|
3265
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
3266
|
-
/* @__PURE__ */ (0,
|
|
3405
|
+
totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("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: [
|
|
3406
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text_default, { size: "sm", className: "text-text-600", children: [
|
|
3267
3407
|
"P\xE1gina ",
|
|
3268
3408
|
effectiveCurrentPage,
|
|
3269
3409
|
" de ",
|
|
3270
3410
|
totalPages
|
|
3271
3411
|
] }),
|
|
3272
|
-
/* @__PURE__ */ (0,
|
|
3273
|
-
/* @__PURE__ */ (0,
|
|
3412
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "flex gap-2", children: onPageChange ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
3413
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3274
3414
|
Button_default,
|
|
3275
3415
|
{
|
|
3276
3416
|
variant: "link",
|
|
3277
3417
|
size: "extra-small",
|
|
3278
3418
|
onClick: () => onPageChange(Math.max(1, effectiveCurrentPage - 1)),
|
|
3279
3419
|
disabled: effectiveCurrentPage === 1,
|
|
3280
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
3420
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_phosphor_react11.CaretLeft, {}),
|
|
3281
3421
|
children: "Anterior"
|
|
3282
3422
|
}
|
|
3283
3423
|
),
|
|
3284
|
-
/* @__PURE__ */ (0,
|
|
3424
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3285
3425
|
Button_default,
|
|
3286
3426
|
{
|
|
3287
3427
|
variant: "link",
|
|
@@ -3290,28 +3430,28 @@ var AlertsManagerView = ({
|
|
|
3290
3430
|
Math.min(totalPages, effectiveCurrentPage + 1)
|
|
3291
3431
|
),
|
|
3292
3432
|
disabled: effectiveCurrentPage === totalPages,
|
|
3293
|
-
iconRight: /* @__PURE__ */ (0,
|
|
3433
|
+
iconRight: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_phosphor_react11.CaretRight, {}),
|
|
3294
3434
|
children: "Pr\xF3ximo"
|
|
3295
3435
|
}
|
|
3296
3436
|
)
|
|
3297
|
-
] }) : /* @__PURE__ */ (0,
|
|
3298
|
-
/* @__PURE__ */ (0,
|
|
3437
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
3438
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3299
3439
|
Button_default,
|
|
3300
3440
|
{
|
|
3301
3441
|
variant: "link",
|
|
3302
3442
|
size: "extra-small",
|
|
3303
3443
|
disabled: effectiveCurrentPage === 1,
|
|
3304
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
3444
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_phosphor_react11.CaretLeft, {}),
|
|
3305
3445
|
children: "Anterior"
|
|
3306
3446
|
}
|
|
3307
3447
|
),
|
|
3308
|
-
/* @__PURE__ */ (0,
|
|
3448
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3309
3449
|
Button_default,
|
|
3310
3450
|
{
|
|
3311
3451
|
variant: "link",
|
|
3312
3452
|
size: "extra-small",
|
|
3313
3453
|
disabled: effectiveCurrentPage === totalPages,
|
|
3314
|
-
iconRight: /* @__PURE__ */ (0,
|
|
3454
|
+
iconRight: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_phosphor_react11.CaretRight, {}),
|
|
3315
3455
|
children: "Pr\xF3ximo"
|
|
3316
3456
|
}
|
|
3317
3457
|
)
|
|
@@ -3325,7 +3465,7 @@ var AlertsManagerView = ({
|
|
|
3325
3465
|
// src/components/Radio/Radio.tsx
|
|
3326
3466
|
var import_react17 = require("react");
|
|
3327
3467
|
var import_zustand3 = require("zustand");
|
|
3328
|
-
var
|
|
3468
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3329
3469
|
var SIZE_CLASSES7 = {
|
|
3330
3470
|
small: {
|
|
3331
3471
|
radio: "w-5 h-5",
|
|
@@ -3464,8 +3604,8 @@ var Radio = (0, import_react17.forwardRef)(
|
|
|
3464
3604
|
const getCursorClass = () => {
|
|
3465
3605
|
return currentState === "disabled" ? "cursor-not-allowed" : "cursor-pointer";
|
|
3466
3606
|
};
|
|
3467
|
-
return /* @__PURE__ */ (0,
|
|
3468
|
-
/* @__PURE__ */ (0,
|
|
3607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-col", children: [
|
|
3608
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
3469
3609
|
"div",
|
|
3470
3610
|
{
|
|
3471
3611
|
className: cn(
|
|
@@ -3474,7 +3614,7 @@ var Radio = (0, import_react17.forwardRef)(
|
|
|
3474
3614
|
disabled ? "opacity-40" : ""
|
|
3475
3615
|
),
|
|
3476
3616
|
children: [
|
|
3477
|
-
/* @__PURE__ */ (0,
|
|
3617
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3478
3618
|
"input",
|
|
3479
3619
|
{
|
|
3480
3620
|
ref: (node) => {
|
|
@@ -3498,7 +3638,7 @@ var Radio = (0, import_react17.forwardRef)(
|
|
|
3498
3638
|
...props
|
|
3499
3639
|
}
|
|
3500
3640
|
),
|
|
3501
|
-
/* @__PURE__ */ (0,
|
|
3641
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3502
3642
|
"button",
|
|
3503
3643
|
{
|
|
3504
3644
|
type: "button",
|
|
@@ -3523,10 +3663,10 @@ var Radio = (0, import_react17.forwardRef)(
|
|
|
3523
3663
|
}
|
|
3524
3664
|
}
|
|
3525
3665
|
},
|
|
3526
|
-
children: checked && /* @__PURE__ */ (0,
|
|
3666
|
+
children: checked && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: dotClasses })
|
|
3527
3667
|
}
|
|
3528
3668
|
),
|
|
3529
|
-
label && /* @__PURE__ */ (0,
|
|
3669
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3530
3670
|
"div",
|
|
3531
3671
|
{
|
|
3532
3672
|
className: cn(
|
|
@@ -3534,7 +3674,7 @@ var Radio = (0, import_react17.forwardRef)(
|
|
|
3534
3674
|
sizeClasses.labelHeight,
|
|
3535
3675
|
"flex-1 min-w-0"
|
|
3536
3676
|
),
|
|
3537
|
-
children: /* @__PURE__ */ (0,
|
|
3677
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3538
3678
|
Text_default,
|
|
3539
3679
|
{
|
|
3540
3680
|
as: "label",
|
|
@@ -3555,7 +3695,7 @@ var Radio = (0, import_react17.forwardRef)(
|
|
|
3555
3695
|
]
|
|
3556
3696
|
}
|
|
3557
3697
|
),
|
|
3558
|
-
errorMessage && /* @__PURE__ */ (0,
|
|
3698
|
+
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3559
3699
|
Text_default,
|
|
3560
3700
|
{
|
|
3561
3701
|
size: "sm",
|
|
@@ -3565,7 +3705,7 @@ var Radio = (0, import_react17.forwardRef)(
|
|
|
3565
3705
|
children: errorMessage
|
|
3566
3706
|
}
|
|
3567
3707
|
),
|
|
3568
|
-
helperText && !errorMessage && /* @__PURE__ */ (0,
|
|
3708
|
+
helperText && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3569
3709
|
Text_default,
|
|
3570
3710
|
{
|
|
3571
3711
|
size: "sm",
|
|
@@ -3642,7 +3782,7 @@ var RadioGroup = (0, import_react17.forwardRef)(
|
|
|
3642
3782
|
(0, import_react17.useEffect)(() => {
|
|
3643
3783
|
store.setState({ disabled });
|
|
3644
3784
|
}, [disabled, store]);
|
|
3645
|
-
return /* @__PURE__ */ (0,
|
|
3785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3646
3786
|
"div",
|
|
3647
3787
|
{
|
|
3648
3788
|
ref,
|
|
@@ -3679,7 +3819,7 @@ var RadioGroupItem = (0, import_react17.forwardRef)(
|
|
|
3679
3819
|
const isChecked = groupValue === value;
|
|
3680
3820
|
const isDisabled = groupDisabled || itemDisabled;
|
|
3681
3821
|
const currentState = isDisabled ? "disabled" : state;
|
|
3682
|
-
return /* @__PURE__ */ (0,
|
|
3822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3683
3823
|
Radio,
|
|
3684
3824
|
{
|
|
3685
3825
|
ref,
|
|
@@ -3706,7 +3846,7 @@ var Radio_default = Radio;
|
|
|
3706
3846
|
|
|
3707
3847
|
// src/components/Toast/Toast.tsx
|
|
3708
3848
|
var import_phosphor_react12 = require("phosphor-react");
|
|
3709
|
-
var
|
|
3849
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3710
3850
|
var VARIANT_ACTION_CLASSES4 = {
|
|
3711
3851
|
solid: {
|
|
3712
3852
|
warning: "bg-warning text-warning-600 border-none focus-visible:outline-none",
|
|
@@ -3746,7 +3886,7 @@ var Toast = ({
|
|
|
3746
3886
|
};
|
|
3747
3887
|
const IconAction = iconMap[action] || iconMap["success"];
|
|
3748
3888
|
const baseClasses = "max-w-[390px] w-full flex flex-row items-start justify-between shadow-lg rounded-lg border p-4 gap-6 group";
|
|
3749
|
-
return /* @__PURE__ */ (0,
|
|
3889
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
3750
3890
|
"div",
|
|
3751
3891
|
{
|
|
3752
3892
|
role: "alert",
|
|
@@ -3760,20 +3900,20 @@ var Toast = ({
|
|
|
3760
3900
|
),
|
|
3761
3901
|
...props,
|
|
3762
3902
|
children: [
|
|
3763
|
-
/* @__PURE__ */ (0,
|
|
3764
|
-
/* @__PURE__ */ (0,
|
|
3765
|
-
/* @__PURE__ */ (0,
|
|
3766
|
-
/* @__PURE__ */ (0,
|
|
3767
|
-
description && /* @__PURE__ */ (0,
|
|
3903
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-row items-start gap-3", children: [
|
|
3904
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "mt-1", "data-testid": `toast-icon-${action}`, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(IconAction, {}) }),
|
|
3905
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col items-start justify-start", children: [
|
|
3906
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "font-semibold text-md", children: title }),
|
|
3907
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-md text-text-900", children: description })
|
|
3768
3908
|
] })
|
|
3769
3909
|
] }),
|
|
3770
|
-
/* @__PURE__ */ (0,
|
|
3910
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3771
3911
|
"button",
|
|
3772
3912
|
{
|
|
3773
3913
|
onClick: onClose,
|
|
3774
3914
|
"aria-label": "Dismiss notification",
|
|
3775
3915
|
className: "text-background-500 cursor-pointer opacity-0 group-hover:opacity-100 transition-opacity",
|
|
3776
|
-
children: /* @__PURE__ */ (0,
|
|
3916
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_phosphor_react12.X, {})
|
|
3777
3917
|
}
|
|
3778
3918
|
)
|
|
3779
3919
|
]
|
|
@@ -3801,11 +3941,11 @@ var useToastStore = (0, import_zustand4.create)((set) => ({
|
|
|
3801
3941
|
var ToastStore_default = useToastStore;
|
|
3802
3942
|
|
|
3803
3943
|
// src/components/Toast/utils/Toaster.tsx
|
|
3804
|
-
var
|
|
3944
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3805
3945
|
var Toaster = () => {
|
|
3806
3946
|
const toasts = ToastStore_default((state) => state.toasts);
|
|
3807
3947
|
const removeToast = ToastStore_default((state) => state.removeToast);
|
|
3808
|
-
return /* @__PURE__ */ (0,
|
|
3948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx_runtime27.Fragment, { children: toasts.map((toast) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3809
3949
|
Toast_default,
|
|
3810
3950
|
{
|
|
3811
3951
|
title: toast.title,
|
|
@@ -3955,7 +4095,7 @@ var useTheme = () => {
|
|
|
3955
4095
|
};
|
|
3956
4096
|
|
|
3957
4097
|
// src/components/ThemeToggle/ThemeToggle.tsx
|
|
3958
|
-
var
|
|
4098
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3959
4099
|
var ThemeToggle = ({
|
|
3960
4100
|
variant = "default",
|
|
3961
4101
|
onToggle
|
|
@@ -3969,17 +4109,17 @@ var ThemeToggle = ({
|
|
|
3969
4109
|
{
|
|
3970
4110
|
id: "light",
|
|
3971
4111
|
title: "Claro",
|
|
3972
|
-
icon: /* @__PURE__ */ (0,
|
|
4112
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_phosphor_react13.Sun, { size: 24 })
|
|
3973
4113
|
},
|
|
3974
4114
|
{
|
|
3975
4115
|
id: "dark",
|
|
3976
4116
|
title: "Escuro",
|
|
3977
|
-
icon: /* @__PURE__ */ (0,
|
|
4117
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_phosphor_react13.Moon, { size: 24 })
|
|
3978
4118
|
},
|
|
3979
4119
|
{
|
|
3980
4120
|
id: "system",
|
|
3981
4121
|
title: "Sistema",
|
|
3982
|
-
icon: /* @__PURE__ */ (0,
|
|
4122
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3983
4123
|
"svg",
|
|
3984
4124
|
{
|
|
3985
4125
|
width: "25",
|
|
@@ -3987,7 +4127,7 @@ var ThemeToggle = ({
|
|
|
3987
4127
|
viewBox: "0 0 25 25",
|
|
3988
4128
|
fill: "none",
|
|
3989
4129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3990
|
-
children: /* @__PURE__ */ (0,
|
|
4130
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3991
4131
|
"path",
|
|
3992
4132
|
{
|
|
3993
4133
|
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",
|
|
@@ -4009,7 +4149,7 @@ var ThemeToggle = ({
|
|
|
4009
4149
|
}
|
|
4010
4150
|
};
|
|
4011
4151
|
const currentTheme = variant === "with-save" ? tempTheme : themeMode;
|
|
4012
|
-
return /* @__PURE__ */ (0,
|
|
4152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex flex-row gap-2 sm:gap-4 py-2", children: problemTypes.map((type) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
4013
4153
|
SelectionButton_default,
|
|
4014
4154
|
{
|
|
4015
4155
|
icon: type.icon,
|
|
@@ -4023,7 +4163,7 @@ var ThemeToggle = ({
|
|
|
4023
4163
|
};
|
|
4024
4164
|
|
|
4025
4165
|
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
4026
|
-
var
|
|
4166
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
4027
4167
|
function createDropdownStore() {
|
|
4028
4168
|
return (0, import_zustand6.create)((set) => ({
|
|
4029
4169
|
open: false,
|
|
@@ -4131,7 +4271,7 @@ var DropdownMenu = ({
|
|
|
4131
4271
|
setOpen(propOpen);
|
|
4132
4272
|
}
|
|
4133
4273
|
}, [propOpen]);
|
|
4134
|
-
return /* @__PURE__ */ (0,
|
|
4274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "relative", ref: menuRef, children: injectStore3(children, store) });
|
|
4135
4275
|
};
|
|
4136
4276
|
var DropdownMenuTrigger = ({
|
|
4137
4277
|
className,
|
|
@@ -4143,7 +4283,7 @@ var DropdownMenuTrigger = ({
|
|
|
4143
4283
|
const store = useDropdownStore(externalStore);
|
|
4144
4284
|
const open = (0, import_zustand6.useStore)(store, (s) => s.open);
|
|
4145
4285
|
const toggleOpen = () => store.setState({ open: !open });
|
|
4146
|
-
return /* @__PURE__ */ (0,
|
|
4286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4147
4287
|
"div",
|
|
4148
4288
|
{
|
|
4149
4289
|
onClick: (e) => {
|
|
@@ -4188,7 +4328,7 @@ var MENUCONTENT_VARIANT_CLASSES = {
|
|
|
4188
4328
|
profile: "p-6"
|
|
4189
4329
|
};
|
|
4190
4330
|
var MenuLabel = (0, import_react20.forwardRef)(({ className, inset, store: _store, ...props }, ref) => {
|
|
4191
|
-
return /* @__PURE__ */ (0,
|
|
4331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4192
4332
|
"div",
|
|
4193
4333
|
{
|
|
4194
4334
|
ref,
|
|
@@ -4227,7 +4367,7 @@ var DropdownMenuContent = (0, import_react20.forwardRef)(
|
|
|
4227
4367
|
return `absolute ${vertical} ${horizontal}`;
|
|
4228
4368
|
};
|
|
4229
4369
|
const variantClasses = MENUCONTENT_VARIANT_CLASSES[variant];
|
|
4230
|
-
return /* @__PURE__ */ (0,
|
|
4370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4231
4371
|
"div",
|
|
4232
4372
|
{
|
|
4233
4373
|
ref,
|
|
@@ -4296,7 +4436,7 @@ var DropdownMenuItem = (0, import_react20.forwardRef)(
|
|
|
4296
4436
|
const getVariantProps = () => {
|
|
4297
4437
|
return variant === "profile" ? { "data-variant": "profile" } : {};
|
|
4298
4438
|
};
|
|
4299
|
-
return /* @__PURE__ */ (0,
|
|
4439
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
4300
4440
|
"div",
|
|
4301
4441
|
{
|
|
4302
4442
|
ref,
|
|
@@ -4322,7 +4462,7 @@ var DropdownMenuItem = (0, import_react20.forwardRef)(
|
|
|
4322
4462
|
...props,
|
|
4323
4463
|
children: [
|
|
4324
4464
|
iconLeft,
|
|
4325
|
-
/* @__PURE__ */ (0,
|
|
4465
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "w-full", children }),
|
|
4326
4466
|
iconRight
|
|
4327
4467
|
]
|
|
4328
4468
|
}
|
|
@@ -4330,7 +4470,7 @@ var DropdownMenuItem = (0, import_react20.forwardRef)(
|
|
|
4330
4470
|
}
|
|
4331
4471
|
);
|
|
4332
4472
|
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
4333
|
-
var DropdownMenuSeparator = (0, import_react20.forwardRef)(({ className, store: _store, ...props }, ref) => /* @__PURE__ */ (0,
|
|
4473
|
+
var DropdownMenuSeparator = (0, import_react20.forwardRef)(({ className, store: _store, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4334
4474
|
"div",
|
|
4335
4475
|
{
|
|
4336
4476
|
ref,
|
|
@@ -4343,7 +4483,7 @@ var ProfileMenuTrigger = (0, import_react20.forwardRef)(({ className, onClick, s
|
|
|
4343
4483
|
const store = useDropdownStore(externalStore);
|
|
4344
4484
|
const open = (0, import_zustand6.useStore)(store, (s) => s.open);
|
|
4345
4485
|
const toggleOpen = () => store.setState({ open: !open });
|
|
4346
|
-
return /* @__PURE__ */ (0,
|
|
4486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4347
4487
|
"button",
|
|
4348
4488
|
{
|
|
4349
4489
|
ref,
|
|
@@ -4358,13 +4498,13 @@ var ProfileMenuTrigger = (0, import_react20.forwardRef)(({ className, onClick, s
|
|
|
4358
4498
|
},
|
|
4359
4499
|
"aria-expanded": open,
|
|
4360
4500
|
...props,
|
|
4361
|
-
children: /* @__PURE__ */ (0,
|
|
4501
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "size-6 rounded-full bg-primary-100 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_phosphor_react14.User, { className: "text-primary-950", size: 18 }) })
|
|
4362
4502
|
}
|
|
4363
4503
|
);
|
|
4364
4504
|
});
|
|
4365
4505
|
ProfileMenuTrigger.displayName = "ProfileMenuTrigger";
|
|
4366
4506
|
var ProfileMenuHeader = (0, import_react20.forwardRef)(({ className, name, email, photoUrl, store: _store, ...props }, ref) => {
|
|
4367
|
-
return /* @__PURE__ */ (0,
|
|
4507
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
4368
4508
|
"div",
|
|
4369
4509
|
{
|
|
4370
4510
|
ref,
|
|
@@ -4372,17 +4512,17 @@ var ProfileMenuHeader = (0, import_react20.forwardRef)(({ className, name, email
|
|
|
4372
4512
|
className: cn("flex flex-row gap-4 items-center", className),
|
|
4373
4513
|
...props,
|
|
4374
4514
|
children: [
|
|
4375
|
-
/* @__PURE__ */ (0,
|
|
4515
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "w-16 h-16 bg-primary-100 rounded-full flex items-center justify-center overflow-hidden", children: photoUrl ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4376
4516
|
"img",
|
|
4377
4517
|
{
|
|
4378
4518
|
src: photoUrl,
|
|
4379
4519
|
alt: "Foto de perfil",
|
|
4380
4520
|
className: "w-full h-full object-cover"
|
|
4381
4521
|
}
|
|
4382
|
-
) : /* @__PURE__ */ (0,
|
|
4383
|
-
/* @__PURE__ */ (0,
|
|
4384
|
-
/* @__PURE__ */ (0,
|
|
4385
|
-
/* @__PURE__ */ (0,
|
|
4522
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_phosphor_react14.User, { size: 34, className: "text-primary-800" }) }),
|
|
4523
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-col ", children: [
|
|
4524
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text_default, { size: "xl", weight: "bold", color: "text-text-950", children: name }),
|
|
4525
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text_default, { size: "md", color: "text-text-600", children: email })
|
|
4386
4526
|
] })
|
|
4387
4527
|
]
|
|
4388
4528
|
}
|
|
@@ -4415,14 +4555,14 @@ var ProfileToggleTheme = ({
|
|
|
4415
4555
|
setModalThemeToggle(false);
|
|
4416
4556
|
setOpen(false);
|
|
4417
4557
|
};
|
|
4418
|
-
return /* @__PURE__ */ (0,
|
|
4419
|
-
/* @__PURE__ */ (0,
|
|
4558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
|
|
4559
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4420
4560
|
DropdownMenuItem,
|
|
4421
4561
|
{
|
|
4422
4562
|
variant: "profile",
|
|
4423
4563
|
preventClose: true,
|
|
4424
4564
|
store,
|
|
4425
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
4565
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4426
4566
|
"svg",
|
|
4427
4567
|
{
|
|
4428
4568
|
width: "24",
|
|
@@ -4430,7 +4570,7 @@ var ProfileToggleTheme = ({
|
|
|
4430
4570
|
viewBox: "0 0 25 25",
|
|
4431
4571
|
fill: "none",
|
|
4432
4572
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4433
|
-
children: /* @__PURE__ */ (0,
|
|
4573
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4434
4574
|
"path",
|
|
4435
4575
|
{
|
|
4436
4576
|
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",
|
|
@@ -4439,7 +4579,7 @@ var ProfileToggleTheme = ({
|
|
|
4439
4579
|
)
|
|
4440
4580
|
}
|
|
4441
4581
|
),
|
|
4442
|
-
iconRight: /* @__PURE__ */ (0,
|
|
4582
|
+
iconRight: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_phosphor_react14.CaretRight, {}),
|
|
4443
4583
|
onClick: handleClick,
|
|
4444
4584
|
onKeyDown: (e) => {
|
|
4445
4585
|
if (e.key === "Enter" || e.key === " ") {
|
|
@@ -4449,23 +4589,23 @@ var ProfileToggleTheme = ({
|
|
|
4449
4589
|
}
|
|
4450
4590
|
},
|
|
4451
4591
|
...props,
|
|
4452
|
-
children: /* @__PURE__ */ (0,
|
|
4592
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text_default, { size: "md", color: "text-text-700", children: "Apar\xEAncia" })
|
|
4453
4593
|
}
|
|
4454
4594
|
),
|
|
4455
|
-
/* @__PURE__ */ (0,
|
|
4595
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4456
4596
|
Modal_default,
|
|
4457
4597
|
{
|
|
4458
4598
|
isOpen: modalThemeToggle,
|
|
4459
4599
|
onClose: handleCancel,
|
|
4460
4600
|
title: "Apar\xEAncia",
|
|
4461
4601
|
size: "md",
|
|
4462
|
-
footer: /* @__PURE__ */ (0,
|
|
4463
|
-
/* @__PURE__ */ (0,
|
|
4464
|
-
/* @__PURE__ */ (0,
|
|
4602
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex gap-3", children: [
|
|
4603
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button_default, { variant: "outline", onClick: handleCancel, children: "Cancelar" }),
|
|
4604
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button_default, { variant: "solid", onClick: handleSave, children: "Salvar" })
|
|
4465
4605
|
] }),
|
|
4466
|
-
children: /* @__PURE__ */ (0,
|
|
4467
|
-
/* @__PURE__ */ (0,
|
|
4468
|
-
/* @__PURE__ */ (0,
|
|
4606
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-col", children: [
|
|
4607
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "text-sm text-text-500", children: "Escolha o tema:" }),
|
|
4608
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ThemeToggle, { variant: "with-save", onToggle: setSelectedTheme })
|
|
4469
4609
|
] })
|
|
4470
4610
|
}
|
|
4471
4611
|
)
|
|
@@ -4473,7 +4613,7 @@ var ProfileToggleTheme = ({
|
|
|
4473
4613
|
};
|
|
4474
4614
|
ProfileToggleTheme.displayName = "ProfileToggleTheme";
|
|
4475
4615
|
var ProfileMenuSection = (0, import_react20.forwardRef)(({ className, children, store: _store, ...props }, ref) => {
|
|
4476
|
-
return /* @__PURE__ */ (0,
|
|
4616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { ref, className: cn("flex flex-col p-2", className), ...props, children });
|
|
4477
4617
|
});
|
|
4478
4618
|
ProfileMenuSection.displayName = "ProfileMenuSection";
|
|
4479
4619
|
var ProfileMenuFooter = ({
|
|
@@ -4485,7 +4625,7 @@ var ProfileMenuFooter = ({
|
|
|
4485
4625
|
}) => {
|
|
4486
4626
|
const store = useDropdownStore(externalStore);
|
|
4487
4627
|
const setOpen = (0, import_zustand6.useStore)(store, (s) => s.setOpen);
|
|
4488
|
-
return /* @__PURE__ */ (0,
|
|
4628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
4489
4629
|
Button_default,
|
|
4490
4630
|
{
|
|
4491
4631
|
variant: "outline",
|
|
@@ -4497,8 +4637,8 @@ var ProfileMenuFooter = ({
|
|
|
4497
4637
|
},
|
|
4498
4638
|
...props,
|
|
4499
4639
|
children: [
|
|
4500
|
-
/* @__PURE__ */ (0,
|
|
4501
|
-
/* @__PURE__ */ (0,
|
|
4640
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mr-2 flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_phosphor_react14.SignOut, { className: "text-inherit" }) }),
|
|
4641
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text_default, { color: "inherit", children: "Sair" })
|
|
4502
4642
|
]
|
|
4503
4643
|
}
|
|
4504
4644
|
);
|
|
@@ -4507,7 +4647,7 @@ ProfileMenuFooter.displayName = "ProfileMenuFooter";
|
|
|
4507
4647
|
var DropdownMenu_default = DropdownMenu;
|
|
4508
4648
|
|
|
4509
4649
|
// src/components/Search/Search.tsx
|
|
4510
|
-
var
|
|
4650
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
4511
4651
|
var filterOptions = (options, query) => {
|
|
4512
4652
|
if (!query || query.length < 1) return [];
|
|
4513
4653
|
return options.filter(
|
|
@@ -4653,14 +4793,14 @@ var Search = (0, import_react21.forwardRef)(
|
|
|
4653
4793
|
const hasValue = String(value ?? "").length > 0;
|
|
4654
4794
|
const showClearButton = hasValue && !disabled && !readOnly;
|
|
4655
4795
|
const showSearchIcon = !hasValue && !disabled && !readOnly;
|
|
4656
|
-
return /* @__PURE__ */ (0,
|
|
4796
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
4657
4797
|
"div",
|
|
4658
4798
|
{
|
|
4659
4799
|
ref: dropdownRef,
|
|
4660
4800
|
className: `w-full max-w-lg md:w-[488px] ${containerClassName}`,
|
|
4661
4801
|
children: [
|
|
4662
|
-
/* @__PURE__ */ (0,
|
|
4663
|
-
/* @__PURE__ */ (0,
|
|
4802
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative flex items-center", children: [
|
|
4803
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
4664
4804
|
"input",
|
|
4665
4805
|
{
|
|
4666
4806
|
ref: (node) => {
|
|
@@ -4688,35 +4828,35 @@ var Search = (0, import_react21.forwardRef)(
|
|
|
4688
4828
|
...props
|
|
4689
4829
|
}
|
|
4690
4830
|
),
|
|
4691
|
-
showClearButton && /* @__PURE__ */ (0,
|
|
4831
|
+
showClearButton && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
4692
4832
|
"button",
|
|
4693
4833
|
{
|
|
4694
4834
|
type: "button",
|
|
4695
4835
|
className: "p-0 border-0 bg-transparent cursor-pointer",
|
|
4696
4836
|
onMouseDown: handleClearClick,
|
|
4697
4837
|
"aria-label": "Limpar busca",
|
|
4698
|
-
children: /* @__PURE__ */ (0,
|
|
4838
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "w-6 h-6 text-text-800 flex items-center justify-center hover:text-text-600 transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_phosphor_react15.X, {}) })
|
|
4699
4839
|
}
|
|
4700
4840
|
) }),
|
|
4701
|
-
showSearchIcon && /* @__PURE__ */ (0,
|
|
4841
|
+
showSearchIcon && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
4702
4842
|
"button",
|
|
4703
4843
|
{
|
|
4704
4844
|
type: "button",
|
|
4705
4845
|
className: "p-0 border-0 bg-transparent cursor-pointer",
|
|
4706
4846
|
onMouseDown: handleSearchIconClick,
|
|
4707
4847
|
"aria-label": "Buscar",
|
|
4708
|
-
children: /* @__PURE__ */ (0,
|
|
4848
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "w-6 h-6 text-text-800 flex items-center justify-center hover:text-text-600 transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_phosphor_react15.MagnifyingGlass, {}) })
|
|
4709
4849
|
}
|
|
4710
4850
|
) })
|
|
4711
4851
|
] }),
|
|
4712
|
-
showDropdown && /* @__PURE__ */ (0,
|
|
4852
|
+
showDropdown && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DropdownMenu_default, { open: showDropdown, onOpenChange: setDropdownOpen, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
4713
4853
|
DropdownMenuContent,
|
|
4714
4854
|
{
|
|
4715
4855
|
id: dropdownId,
|
|
4716
4856
|
className: "w-full mt-1",
|
|
4717
4857
|
style: { maxHeight: dropdownMaxHeight },
|
|
4718
4858
|
align: "start",
|
|
4719
|
-
children: filteredOptions.length > 0 ? filteredOptions.map((option) => /* @__PURE__ */ (0,
|
|
4859
|
+
children: filteredOptions.length > 0 ? filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
4720
4860
|
DropdownMenuItem,
|
|
4721
4861
|
{
|
|
4722
4862
|
onClick: () => handleSelectOption(option),
|
|
@@ -4724,7 +4864,7 @@ var Search = (0, import_react21.forwardRef)(
|
|
|
4724
4864
|
children: option
|
|
4725
4865
|
},
|
|
4726
4866
|
option
|
|
4727
|
-
)) : /* @__PURE__ */ (0,
|
|
4867
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "px-3 py-3 text-text-700 text-base", children: noResultsText })
|
|
4728
4868
|
}
|
|
4729
4869
|
) })
|
|
4730
4870
|
]
|
|
@@ -4737,7 +4877,7 @@ var Search_default = Search;
|
|
|
4737
4877
|
|
|
4738
4878
|
// src/components/Chips/Chips.tsx
|
|
4739
4879
|
var import_phosphor_react16 = require("phosphor-react");
|
|
4740
|
-
var
|
|
4880
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
4741
4881
|
var STATE_CLASSES5 = {
|
|
4742
4882
|
default: "bg-background text-text-950 border border-border-100 hover:bg-secondary-50 hover:border-border-300",
|
|
4743
4883
|
selected: "bg-info-background text-primary-950 border-2 border-primary-950 hover:bg-secondary-50 focus-visible:border-0"
|
|
@@ -4752,7 +4892,7 @@ var Chips = ({
|
|
|
4752
4892
|
}) => {
|
|
4753
4893
|
const stateClasses = selected ? STATE_CLASSES5.selected : STATE_CLASSES5.default;
|
|
4754
4894
|
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";
|
|
4755
|
-
return /* @__PURE__ */ (0,
|
|
4895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
4756
4896
|
"button",
|
|
4757
4897
|
{
|
|
4758
4898
|
className: cn(baseClasses, stateClasses, className),
|
|
@@ -4760,8 +4900,8 @@ var Chips = ({
|
|
|
4760
4900
|
type,
|
|
4761
4901
|
...props,
|
|
4762
4902
|
children: [
|
|
4763
|
-
selected && /* @__PURE__ */ (0,
|
|
4764
|
-
/* @__PURE__ */ (0,
|
|
4903
|
+
selected && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: `flex items-center`, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_phosphor_react16.Check, { weight: "bold", size: 16 }) }),
|
|
4904
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "flex-1", children })
|
|
4765
4905
|
]
|
|
4766
4906
|
}
|
|
4767
4907
|
);
|
|
@@ -4769,7 +4909,7 @@ var Chips = ({
|
|
|
4769
4909
|
var Chips_default = Chips;
|
|
4770
4910
|
|
|
4771
4911
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
4772
|
-
var
|
|
4912
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4773
4913
|
var SIZE_CLASSES8 = {
|
|
4774
4914
|
small: {
|
|
4775
4915
|
container: "h-1",
|
|
@@ -4881,20 +5021,20 @@ var renderStackedHitCountDisplay = (showHitCount, showPercentage, clampedValue,
|
|
|
4881
5021
|
max,
|
|
4882
5022
|
percentage
|
|
4883
5023
|
);
|
|
4884
|
-
return /* @__PURE__ */ (0,
|
|
5024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4885
5025
|
"div",
|
|
4886
5026
|
{
|
|
4887
5027
|
className: cn(
|
|
4888
5028
|
"text-xs font-medium leading-[14px] text-right",
|
|
4889
5029
|
percentageClassName
|
|
4890
5030
|
),
|
|
4891
|
-
children: displayPriority.type === "hitCount" ? /* @__PURE__ */ (0,
|
|
4892
|
-
/* @__PURE__ */ (0,
|
|
4893
|
-
/* @__PURE__ */ (0,
|
|
5031
|
+
children: displayPriority.type === "hitCount" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
|
5032
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-success-200", children: Math.round(clampedValue) }),
|
|
5033
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "text-text-600", children: [
|
|
4894
5034
|
" de ",
|
|
4895
5035
|
max
|
|
4896
5036
|
] })
|
|
4897
|
-
] }) : /* @__PURE__ */ (0,
|
|
5037
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Text_default, { size: "xs", weight: "medium", className: "text-success-200", children: [
|
|
4898
5038
|
Math.round(percentage),
|
|
4899
5039
|
"%"
|
|
4900
5040
|
] })
|
|
@@ -4909,7 +5049,7 @@ var ProgressBarBase = ({
|
|
|
4909
5049
|
variantClasses,
|
|
4910
5050
|
containerClassName,
|
|
4911
5051
|
fillClassName
|
|
4912
|
-
}) => /* @__PURE__ */ (0,
|
|
5052
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
4913
5053
|
"div",
|
|
4914
5054
|
{
|
|
4915
5055
|
className: cn(
|
|
@@ -4918,7 +5058,7 @@ var ProgressBarBase = ({
|
|
|
4918
5058
|
"overflow-hidden relative"
|
|
4919
5059
|
),
|
|
4920
5060
|
children: [
|
|
4921
|
-
/* @__PURE__ */ (0,
|
|
5061
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4922
5062
|
"progress",
|
|
4923
5063
|
{
|
|
4924
5064
|
value: clampedValue,
|
|
@@ -4927,7 +5067,7 @@ var ProgressBarBase = ({
|
|
|
4927
5067
|
className: "absolute inset-0 w-full h-full opacity-0"
|
|
4928
5068
|
}
|
|
4929
5069
|
),
|
|
4930
|
-
/* @__PURE__ */ (0,
|
|
5070
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4931
5071
|
"div",
|
|
4932
5072
|
{
|
|
4933
5073
|
className: cn(
|
|
@@ -4953,7 +5093,7 @@ var StackedLayout = ({
|
|
|
4953
5093
|
percentage,
|
|
4954
5094
|
variantClasses,
|
|
4955
5095
|
dimensions
|
|
4956
|
-
}) => /* @__PURE__ */ (0,
|
|
5096
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
4957
5097
|
"div",
|
|
4958
5098
|
{
|
|
4959
5099
|
className: cn(
|
|
@@ -4963,8 +5103,8 @@ var StackedLayout = ({
|
|
|
4963
5103
|
className
|
|
4964
5104
|
),
|
|
4965
5105
|
children: [
|
|
4966
|
-
shouldShowHeader(label, showPercentage, showHitCount) && /* @__PURE__ */ (0,
|
|
4967
|
-
label && /* @__PURE__ */ (0,
|
|
5106
|
+
shouldShowHeader(label, showPercentage, showHitCount) && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-row justify-between items-center w-full h-[19px]", children: [
|
|
5107
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4968
5108
|
Text_default,
|
|
4969
5109
|
{
|
|
4970
5110
|
as: "div",
|
|
@@ -4983,7 +5123,7 @@ var StackedLayout = ({
|
|
|
4983
5123
|
percentageClassName
|
|
4984
5124
|
)
|
|
4985
5125
|
] }),
|
|
4986
|
-
/* @__PURE__ */ (0,
|
|
5126
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4987
5127
|
ProgressBarBase,
|
|
4988
5128
|
{
|
|
4989
5129
|
clampedValue,
|
|
@@ -5025,7 +5165,7 @@ var CompactLayout = ({
|
|
|
5025
5165
|
percentageClassName,
|
|
5026
5166
|
labelClassName
|
|
5027
5167
|
});
|
|
5028
|
-
return /* @__PURE__ */ (0,
|
|
5168
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
5029
5169
|
"div",
|
|
5030
5170
|
{
|
|
5031
5171
|
className: cn(
|
|
@@ -5035,7 +5175,7 @@ var CompactLayout = ({
|
|
|
5035
5175
|
className
|
|
5036
5176
|
),
|
|
5037
5177
|
children: [
|
|
5038
|
-
shouldShowHeader(label, showPercentage, showHitCount) && /* @__PURE__ */ (0,
|
|
5178
|
+
shouldShowHeader(label, showPercentage, showHitCount) && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5039
5179
|
Text_default,
|
|
5040
5180
|
{
|
|
5041
5181
|
as: "div",
|
|
@@ -5046,7 +5186,7 @@ var CompactLayout = ({
|
|
|
5046
5186
|
children: content
|
|
5047
5187
|
}
|
|
5048
5188
|
),
|
|
5049
|
-
/* @__PURE__ */ (0,
|
|
5189
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5050
5190
|
ProgressBarBase,
|
|
5051
5191
|
{
|
|
5052
5192
|
clampedValue,
|
|
@@ -5082,9 +5222,9 @@ var DefaultLayout = ({
|
|
|
5082
5222
|
label,
|
|
5083
5223
|
showPercentage
|
|
5084
5224
|
);
|
|
5085
|
-
return /* @__PURE__ */ (0,
|
|
5086
|
-
displayConfig.showHeader && /* @__PURE__ */ (0,
|
|
5087
|
-
label && /* @__PURE__ */ (0,
|
|
5225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("flex", sizeClasses.layout, gapClass, className), children: [
|
|
5226
|
+
displayConfig.showHeader && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-row items-center justify-between w-full", children: [
|
|
5227
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5088
5228
|
Text_default,
|
|
5089
5229
|
{
|
|
5090
5230
|
as: "div",
|
|
@@ -5097,7 +5237,7 @@ var DefaultLayout = ({
|
|
|
5097
5237
|
children: label
|
|
5098
5238
|
}
|
|
5099
5239
|
),
|
|
5100
|
-
showPercentage && /* @__PURE__ */ (0,
|
|
5240
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
5101
5241
|
Text_default,
|
|
5102
5242
|
{
|
|
5103
5243
|
size: "xs",
|
|
@@ -5113,7 +5253,7 @@ var DefaultLayout = ({
|
|
|
5113
5253
|
}
|
|
5114
5254
|
)
|
|
5115
5255
|
] }),
|
|
5116
|
-
/* @__PURE__ */ (0,
|
|
5256
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5117
5257
|
ProgressBarBase,
|
|
5118
5258
|
{
|
|
5119
5259
|
clampedValue,
|
|
@@ -5133,7 +5273,7 @@ var DefaultLayout = ({
|
|
|
5133
5273
|
)
|
|
5134
5274
|
}
|
|
5135
5275
|
),
|
|
5136
|
-
displayConfig.showPercentage && /* @__PURE__ */ (0,
|
|
5276
|
+
displayConfig.showPercentage && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
5137
5277
|
Text_default,
|
|
5138
5278
|
{
|
|
5139
5279
|
size: "xs",
|
|
@@ -5148,7 +5288,7 @@ var DefaultLayout = ({
|
|
|
5148
5288
|
]
|
|
5149
5289
|
}
|
|
5150
5290
|
),
|
|
5151
|
-
displayConfig.showLabel && /* @__PURE__ */ (0,
|
|
5291
|
+
displayConfig.showLabel && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5152
5292
|
Text_default,
|
|
5153
5293
|
{
|
|
5154
5294
|
as: "div",
|
|
@@ -5184,7 +5324,7 @@ var ProgressBar = ({
|
|
|
5184
5324
|
const sizeClasses = SIZE_CLASSES8[size];
|
|
5185
5325
|
const variantClasses = VARIANT_CLASSES2[variant];
|
|
5186
5326
|
if (layout === "stacked") {
|
|
5187
|
-
return /* @__PURE__ */ (0,
|
|
5327
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5188
5328
|
StackedLayout,
|
|
5189
5329
|
{
|
|
5190
5330
|
className,
|
|
@@ -5205,7 +5345,7 @@ var ProgressBar = ({
|
|
|
5205
5345
|
);
|
|
5206
5346
|
}
|
|
5207
5347
|
if (layout === "compact") {
|
|
5208
|
-
return /* @__PURE__ */ (0,
|
|
5348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5209
5349
|
CompactLayout,
|
|
5210
5350
|
{
|
|
5211
5351
|
className,
|
|
@@ -5225,7 +5365,7 @@ var ProgressBar = ({
|
|
|
5225
5365
|
}
|
|
5226
5366
|
);
|
|
5227
5367
|
}
|
|
5228
|
-
return /* @__PURE__ */ (0,
|
|
5368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5229
5369
|
DefaultLayout,
|
|
5230
5370
|
{
|
|
5231
5371
|
className,
|
|
@@ -5245,7 +5385,7 @@ var ProgressBar = ({
|
|
|
5245
5385
|
var ProgressBar_default = ProgressBar;
|
|
5246
5386
|
|
|
5247
5387
|
// src/components/ProgressCircle/ProgressCircle.tsx
|
|
5248
|
-
var
|
|
5388
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
5249
5389
|
var SIZE_CLASSES9 = {
|
|
5250
5390
|
small: {
|
|
5251
5391
|
container: "w-[90px] h-[90px]",
|
|
@@ -5327,7 +5467,7 @@ var ProgressCircle = ({
|
|
|
5327
5467
|
const strokeDashoffset = circumference - percentage / 100 * circumference;
|
|
5328
5468
|
const center = size === "small" ? 45 : 76;
|
|
5329
5469
|
const svgSize = size === "small" ? 90 : 152;
|
|
5330
|
-
return /* @__PURE__ */ (0,
|
|
5470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
5331
5471
|
"div",
|
|
5332
5472
|
{
|
|
5333
5473
|
className: cn(
|
|
@@ -5337,7 +5477,7 @@ var ProgressCircle = ({
|
|
|
5337
5477
|
className
|
|
5338
5478
|
),
|
|
5339
5479
|
children: [
|
|
5340
|
-
/* @__PURE__ */ (0,
|
|
5480
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
5341
5481
|
"svg",
|
|
5342
5482
|
{
|
|
5343
5483
|
className: "absolute inset-0 transform -rotate-90",
|
|
@@ -5346,7 +5486,7 @@ var ProgressCircle = ({
|
|
|
5346
5486
|
viewBox: `0 0 ${svgSize} ${svgSize}`,
|
|
5347
5487
|
"aria-hidden": "true",
|
|
5348
5488
|
children: [
|
|
5349
|
-
/* @__PURE__ */ (0,
|
|
5489
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5350
5490
|
"circle",
|
|
5351
5491
|
{
|
|
5352
5492
|
cx: center,
|
|
@@ -5357,7 +5497,7 @@ var ProgressCircle = ({
|
|
|
5357
5497
|
className: cn(variantClasses.background, "rounded-lg")
|
|
5358
5498
|
}
|
|
5359
5499
|
),
|
|
5360
|
-
/* @__PURE__ */ (0,
|
|
5500
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5361
5501
|
"circle",
|
|
5362
5502
|
{
|
|
5363
5503
|
cx: center,
|
|
@@ -5377,7 +5517,7 @@ var ProgressCircle = ({
|
|
|
5377
5517
|
]
|
|
5378
5518
|
}
|
|
5379
5519
|
),
|
|
5380
|
-
/* @__PURE__ */ (0,
|
|
5520
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5381
5521
|
"progress",
|
|
5382
5522
|
{
|
|
5383
5523
|
value: clampedValue,
|
|
@@ -5386,7 +5526,7 @@ var ProgressCircle = ({
|
|
|
5386
5526
|
className: "absolute opacity-0 w-0 h-0"
|
|
5387
5527
|
}
|
|
5388
5528
|
),
|
|
5389
|
-
/* @__PURE__ */ (0,
|
|
5529
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
5390
5530
|
"div",
|
|
5391
5531
|
{
|
|
5392
5532
|
className: cn(
|
|
@@ -5395,7 +5535,7 @@ var ProgressCircle = ({
|
|
|
5395
5535
|
sizeClasses.contentWidth
|
|
5396
5536
|
),
|
|
5397
5537
|
children: [
|
|
5398
|
-
showPercentage && /* @__PURE__ */ (0,
|
|
5538
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
5399
5539
|
Text_default,
|
|
5400
5540
|
{
|
|
5401
5541
|
size: sizeClasses.textSize,
|
|
@@ -5411,7 +5551,7 @@ var ProgressCircle = ({
|
|
|
5411
5551
|
]
|
|
5412
5552
|
}
|
|
5413
5553
|
),
|
|
5414
|
-
label && /* @__PURE__ */ (0,
|
|
5554
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5415
5555
|
Text_default,
|
|
5416
5556
|
{
|
|
5417
5557
|
as: "span",
|
|
@@ -5436,7 +5576,7 @@ var ProgressCircle_default = ProgressCircle;
|
|
|
5436
5576
|
|
|
5437
5577
|
// src/components/Stepper/Stepper.tsx
|
|
5438
5578
|
var import_phosphor_react17 = require("phosphor-react");
|
|
5439
|
-
var
|
|
5579
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
5440
5580
|
var SIZE_CLASSES10 = {
|
|
5441
5581
|
small: {
|
|
5442
5582
|
container: "gap-2",
|
|
@@ -5563,7 +5703,7 @@ var Step = ({
|
|
|
5563
5703
|
}
|
|
5564
5704
|
return `${step.label}${suffix}`;
|
|
5565
5705
|
};
|
|
5566
|
-
return /* @__PURE__ */ (0,
|
|
5706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
5567
5707
|
"div",
|
|
5568
5708
|
{
|
|
5569
5709
|
className: `
|
|
@@ -5576,7 +5716,7 @@ var Step = ({
|
|
|
5576
5716
|
overflow-visible
|
|
5577
5717
|
`,
|
|
5578
5718
|
children: [
|
|
5579
|
-
/* @__PURE__ */ (0,
|
|
5719
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5580
5720
|
"div",
|
|
5581
5721
|
{
|
|
5582
5722
|
className: `
|
|
@@ -5585,7 +5725,7 @@ var Step = ({
|
|
|
5585
5725
|
`
|
|
5586
5726
|
}
|
|
5587
5727
|
),
|
|
5588
|
-
/* @__PURE__ */ (0,
|
|
5728
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
5589
5729
|
"div",
|
|
5590
5730
|
{
|
|
5591
5731
|
className: `
|
|
@@ -5595,7 +5735,7 @@ var Step = ({
|
|
|
5595
5735
|
overflow-visible
|
|
5596
5736
|
`,
|
|
5597
5737
|
children: [
|
|
5598
|
-
/* @__PURE__ */ (0,
|
|
5738
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5599
5739
|
"div",
|
|
5600
5740
|
{
|
|
5601
5741
|
className: `
|
|
@@ -5604,7 +5744,7 @@ var Step = ({
|
|
|
5604
5744
|
flex-none transition-all duration-300 ease-out
|
|
5605
5745
|
`,
|
|
5606
5746
|
"aria-label": getAriaLabel(),
|
|
5607
|
-
children: isCompleted ? /* @__PURE__ */ (0,
|
|
5747
|
+
children: isCompleted ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5608
5748
|
import_phosphor_react17.Check,
|
|
5609
5749
|
{
|
|
5610
5750
|
weight: "bold",
|
|
@@ -5613,7 +5753,7 @@ var Step = ({
|
|
|
5613
5753
|
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
|
|
5614
5754
|
`
|
|
5615
5755
|
}
|
|
5616
|
-
) : /* @__PURE__ */ (0,
|
|
5756
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5617
5757
|
Text_default,
|
|
5618
5758
|
{
|
|
5619
5759
|
size: sizeClasses.indicatorTextSize,
|
|
@@ -5625,7 +5765,7 @@ var Step = ({
|
|
|
5625
5765
|
)
|
|
5626
5766
|
}
|
|
5627
5767
|
),
|
|
5628
|
-
/* @__PURE__ */ (0,
|
|
5768
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5629
5769
|
Text_default,
|
|
5630
5770
|
{
|
|
5631
5771
|
size: sizeClasses.labelTextSize,
|
|
@@ -5677,7 +5817,7 @@ var Stepper = ({
|
|
|
5677
5817
|
}) => {
|
|
5678
5818
|
const sizeClasses = SIZE_CLASSES10[size];
|
|
5679
5819
|
const steps = currentStep !== void 0 ? calculateStepStates(initialSteps, currentStep) : initialSteps;
|
|
5680
|
-
return /* @__PURE__ */ (0,
|
|
5820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
5681
5821
|
"fieldset",
|
|
5682
5822
|
{
|
|
5683
5823
|
className: cn(
|
|
@@ -5686,8 +5826,8 @@ var Stepper = ({
|
|
|
5686
5826
|
"border-0 p-0 m-0"
|
|
5687
5827
|
),
|
|
5688
5828
|
children: [
|
|
5689
|
-
/* @__PURE__ */ (0,
|
|
5690
|
-
showProgress && currentStep !== void 0 && /* @__PURE__ */ (0,
|
|
5829
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("legend", { className: "absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0", children: "Stepper de formul\xE1rio" }),
|
|
5830
|
+
showProgress && currentStep !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5691
5831
|
Text_default,
|
|
5692
5832
|
{
|
|
5693
5833
|
size: "sm",
|
|
@@ -5696,7 +5836,7 @@ var Stepper = ({
|
|
|
5696
5836
|
children: getProgressText(currentStep, steps.length, progressText)
|
|
5697
5837
|
}
|
|
5698
5838
|
),
|
|
5699
|
-
/* @__PURE__ */ (0,
|
|
5839
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5700
5840
|
"div",
|
|
5701
5841
|
{
|
|
5702
5842
|
className: cn(
|
|
@@ -5709,7 +5849,7 @@ var Stepper = ({
|
|
|
5709
5849
|
"aria-label": "Progress steps",
|
|
5710
5850
|
children: steps.map((step, index) => {
|
|
5711
5851
|
const stateClasses = STATE_CLASSES6[step.state];
|
|
5712
|
-
return /* @__PURE__ */ (0,
|
|
5852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5713
5853
|
Step,
|
|
5714
5854
|
{
|
|
5715
5855
|
step,
|
|
@@ -5733,7 +5873,7 @@ var Stepper_default = Stepper;
|
|
|
5733
5873
|
|
|
5734
5874
|
// src/components/Calendar/Calendar.tsx
|
|
5735
5875
|
var import_react22 = require("react");
|
|
5736
|
-
var
|
|
5876
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
5737
5877
|
var WEEK_DAYS = ["SEG", "TER", "QUA", "QUI", "SEX", "S\xC1B", "DOM"];
|
|
5738
5878
|
var WEEK_DAYS_SHORT = ["S", "T", "Q", "Q", "S", "S", "D"];
|
|
5739
5879
|
var MONTH_NAMES = [
|
|
@@ -5756,15 +5896,15 @@ var MonthYearPicker = ({
|
|
|
5756
5896
|
currentDate,
|
|
5757
5897
|
onYearChange,
|
|
5758
5898
|
onMonthChange
|
|
5759
|
-
}) => /* @__PURE__ */ (0,
|
|
5899
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
5760
5900
|
"div",
|
|
5761
5901
|
{
|
|
5762
5902
|
ref: monthPickerRef,
|
|
5763
5903
|
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]",
|
|
5764
5904
|
children: [
|
|
5765
|
-
/* @__PURE__ */ (0,
|
|
5766
|
-
/* @__PURE__ */ (0,
|
|
5767
|
-
/* @__PURE__ */ (0,
|
|
5905
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mb-4", children: [
|
|
5906
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("h3", { className: "text-sm font-medium text-text-700 mb-2", children: "Selecionar Ano" }),
|
|
5907
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-4 gap-1 max-h-32 overflow-y-auto", children: availableYears.map((year) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5768
5908
|
"button",
|
|
5769
5909
|
{
|
|
5770
5910
|
onClick: () => onYearChange(year),
|
|
@@ -5777,9 +5917,9 @@ var MonthYearPicker = ({
|
|
|
5777
5917
|
year
|
|
5778
5918
|
)) })
|
|
5779
5919
|
] }),
|
|
5780
|
-
/* @__PURE__ */ (0,
|
|
5781
|
-
/* @__PURE__ */ (0,
|
|
5782
|
-
/* @__PURE__ */ (0,
|
|
5920
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
|
|
5921
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("h3", { className: "text-sm font-medium text-text-700 mb-2", children: "Selecionar M\xEAs" }),
|
|
5922
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-3 gap-1", children: MONTH_NAMES.map((month, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5783
5923
|
"button",
|
|
5784
5924
|
{
|
|
5785
5925
|
onClick: () => onMonthChange(index, currentDate.getFullYear()),
|
|
@@ -5911,28 +6051,28 @@ var Calendar = ({
|
|
|
5911
6051
|
onDateSelect?.(day.date);
|
|
5912
6052
|
};
|
|
5913
6053
|
if (variant === "navigation") {
|
|
5914
|
-
return /* @__PURE__ */ (0,
|
|
5915
|
-
/* @__PURE__ */ (0,
|
|
5916
|
-
/* @__PURE__ */ (0,
|
|
5917
|
-
/* @__PURE__ */ (0,
|
|
6054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: cn("bg-background rounded-xl pt-6", className), children: [
|
|
6055
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center justify-between mb-4 px-6", children: [
|
|
6056
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "relative", ref: monthPickerContainerRef, children: [
|
|
6057
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
5918
6058
|
"button",
|
|
5919
6059
|
{
|
|
5920
6060
|
onClick: toggleMonthPicker,
|
|
5921
6061
|
className: "flex items-center group gap-1 rounded transition-colors cursor-pointer",
|
|
5922
6062
|
children: [
|
|
5923
|
-
/* @__PURE__ */ (0,
|
|
6063
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "text-sm font-medium text-text-600 group-hover:text-primary-950", children: [
|
|
5924
6064
|
MONTH_NAMES[currentDate.getMonth()],
|
|
5925
6065
|
" ",
|
|
5926
6066
|
currentDate.getFullYear()
|
|
5927
6067
|
] }),
|
|
5928
|
-
/* @__PURE__ */ (0,
|
|
6068
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5929
6069
|
"svg",
|
|
5930
6070
|
{
|
|
5931
6071
|
className: `w-4 h-4 text-primary-950 transition-transform ${isMonthPickerOpen ? "rotate-180" : ""}`,
|
|
5932
6072
|
fill: "none",
|
|
5933
6073
|
stroke: "currentColor",
|
|
5934
6074
|
viewBox: "0 0 24 24",
|
|
5935
|
-
children: /* @__PURE__ */ (0,
|
|
6075
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5936
6076
|
"path",
|
|
5937
6077
|
{
|
|
5938
6078
|
strokeLinecap: "round",
|
|
@@ -5946,7 +6086,7 @@ var Calendar = ({
|
|
|
5946
6086
|
]
|
|
5947
6087
|
}
|
|
5948
6088
|
),
|
|
5949
|
-
isMonthPickerOpen && /* @__PURE__ */ (0,
|
|
6089
|
+
isMonthPickerOpen && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5950
6090
|
MonthYearPicker,
|
|
5951
6091
|
{
|
|
5952
6092
|
monthPickerRef,
|
|
@@ -5957,21 +6097,21 @@ var Calendar = ({
|
|
|
5957
6097
|
}
|
|
5958
6098
|
)
|
|
5959
6099
|
] }),
|
|
5960
|
-
/* @__PURE__ */ (0,
|
|
5961
|
-
/* @__PURE__ */ (0,
|
|
6100
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center gap-10", children: [
|
|
6101
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5962
6102
|
"button",
|
|
5963
6103
|
{
|
|
5964
6104
|
onClick: goToPreviousMonth,
|
|
5965
6105
|
className: "p-1 rounded hover:bg-background-100 transition-colors",
|
|
5966
6106
|
"aria-label": "M\xEAs anterior",
|
|
5967
|
-
children: /* @__PURE__ */ (0,
|
|
6107
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5968
6108
|
"svg",
|
|
5969
6109
|
{
|
|
5970
6110
|
className: "w-6 h-6 text-primary-950",
|
|
5971
6111
|
fill: "none",
|
|
5972
6112
|
stroke: "currentColor",
|
|
5973
6113
|
viewBox: "0 0 24 24",
|
|
5974
|
-
children: /* @__PURE__ */ (0,
|
|
6114
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5975
6115
|
"path",
|
|
5976
6116
|
{
|
|
5977
6117
|
strokeLinecap: "round",
|
|
@@ -5984,20 +6124,20 @@ var Calendar = ({
|
|
|
5984
6124
|
)
|
|
5985
6125
|
}
|
|
5986
6126
|
),
|
|
5987
|
-
/* @__PURE__ */ (0,
|
|
6127
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5988
6128
|
"button",
|
|
5989
6129
|
{
|
|
5990
6130
|
onClick: goToNextMonth,
|
|
5991
6131
|
className: "p-1 rounded hover:bg-background-100 transition-colors",
|
|
5992
6132
|
"aria-label": "Pr\xF3ximo m\xEAs",
|
|
5993
|
-
children: /* @__PURE__ */ (0,
|
|
6133
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5994
6134
|
"svg",
|
|
5995
6135
|
{
|
|
5996
6136
|
className: "w-6 h-6 text-primary-950",
|
|
5997
6137
|
fill: "none",
|
|
5998
6138
|
stroke: "currentColor",
|
|
5999
6139
|
viewBox: "0 0 24 24",
|
|
6000
|
-
children: /* @__PURE__ */ (0,
|
|
6140
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6001
6141
|
"path",
|
|
6002
6142
|
{
|
|
6003
6143
|
strokeLinecap: "round",
|
|
@@ -6012,7 +6152,7 @@ var Calendar = ({
|
|
|
6012
6152
|
)
|
|
6013
6153
|
] })
|
|
6014
6154
|
] }),
|
|
6015
|
-
/* @__PURE__ */ (0,
|
|
6155
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-7 gap-1 mb-2 px-3", children: WEEK_DAYS_SHORT.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6016
6156
|
"div",
|
|
6017
6157
|
{
|
|
6018
6158
|
className: "h-9 flex items-center justify-center text-xs font-normal text-text-600",
|
|
@@ -6020,13 +6160,13 @@ var Calendar = ({
|
|
|
6020
6160
|
},
|
|
6021
6161
|
`${day}-${index}`
|
|
6022
6162
|
)) }),
|
|
6023
|
-
/* @__PURE__ */ (0,
|
|
6163
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-7 gap-1 px-3", children: calendarData.map((day) => {
|
|
6024
6164
|
if (!day.isCurrentMonth) {
|
|
6025
|
-
return /* @__PURE__ */ (0,
|
|
6165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6026
6166
|
"div",
|
|
6027
6167
|
{
|
|
6028
6168
|
className: "flex items-center justify-center",
|
|
6029
|
-
children: /* @__PURE__ */ (0,
|
|
6169
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-9 h-9" })
|
|
6030
6170
|
},
|
|
6031
6171
|
day.date.getTime()
|
|
6032
6172
|
);
|
|
@@ -6042,11 +6182,11 @@ var Calendar = ({
|
|
|
6042
6182
|
} else if (day.isSelected) {
|
|
6043
6183
|
spanClass = "h-6 w-6 rounded-full bg-primary-950 text-text";
|
|
6044
6184
|
}
|
|
6045
|
-
return /* @__PURE__ */ (0,
|
|
6185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6046
6186
|
"div",
|
|
6047
6187
|
{
|
|
6048
6188
|
className: "flex items-center justify-center",
|
|
6049
|
-
children: /* @__PURE__ */ (0,
|
|
6189
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6050
6190
|
"button",
|
|
6051
6191
|
{
|
|
6052
6192
|
className: `
|
|
@@ -6062,7 +6202,7 @@ var Calendar = ({
|
|
|
6062
6202
|
"aria-label": `${day.date.getDate()} de ${MONTH_NAMES[day.date.getMonth()]}`,
|
|
6063
6203
|
"aria-current": day.isToday ? "date" : void 0,
|
|
6064
6204
|
tabIndex: 0,
|
|
6065
|
-
children: /* @__PURE__ */ (0,
|
|
6205
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: spanClass, children: day.date.getDate() })
|
|
6066
6206
|
}
|
|
6067
6207
|
)
|
|
6068
6208
|
},
|
|
@@ -6071,28 +6211,28 @@ var Calendar = ({
|
|
|
6071
6211
|
}) })
|
|
6072
6212
|
] });
|
|
6073
6213
|
}
|
|
6074
|
-
return /* @__PURE__ */ (0,
|
|
6075
|
-
/* @__PURE__ */ (0,
|
|
6076
|
-
/* @__PURE__ */ (0,
|
|
6077
|
-
/* @__PURE__ */ (0,
|
|
6214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: cn("bg-background rounded-xl p-4", className), children: [
|
|
6215
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center justify-between mb-3.5", children: [
|
|
6216
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "relative", ref: monthPickerContainerRef, children: [
|
|
6217
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
6078
6218
|
"button",
|
|
6079
6219
|
{
|
|
6080
6220
|
onClick: toggleMonthPicker,
|
|
6081
6221
|
className: "flex items-center gap-2 hover:bg-background-100 rounded px-2 py-1 transition-colors",
|
|
6082
6222
|
children: [
|
|
6083
|
-
/* @__PURE__ */ (0,
|
|
6223
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("h2", { className: "text-lg font-semibold text-text-950", children: [
|
|
6084
6224
|
MONTH_NAMES[currentDate.getMonth()],
|
|
6085
6225
|
" ",
|
|
6086
6226
|
currentDate.getFullYear()
|
|
6087
6227
|
] }),
|
|
6088
|
-
/* @__PURE__ */ (0,
|
|
6228
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6089
6229
|
"svg",
|
|
6090
6230
|
{
|
|
6091
6231
|
className: `w-4 h-4 text-text-400 transition-transform ${isMonthPickerOpen ? "rotate-180" : ""}`,
|
|
6092
6232
|
fill: "none",
|
|
6093
6233
|
stroke: "currentColor",
|
|
6094
6234
|
viewBox: "0 0 24 24",
|
|
6095
|
-
children: /* @__PURE__ */ (0,
|
|
6235
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6096
6236
|
"path",
|
|
6097
6237
|
{
|
|
6098
6238
|
strokeLinecap: "round",
|
|
@@ -6106,7 +6246,7 @@ var Calendar = ({
|
|
|
6106
6246
|
]
|
|
6107
6247
|
}
|
|
6108
6248
|
),
|
|
6109
|
-
isMonthPickerOpen && /* @__PURE__ */ (0,
|
|
6249
|
+
isMonthPickerOpen && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6110
6250
|
MonthYearPicker,
|
|
6111
6251
|
{
|
|
6112
6252
|
monthPickerRef,
|
|
@@ -6117,21 +6257,21 @@ var Calendar = ({
|
|
|
6117
6257
|
}
|
|
6118
6258
|
)
|
|
6119
6259
|
] }),
|
|
6120
|
-
/* @__PURE__ */ (0,
|
|
6121
|
-
/* @__PURE__ */ (0,
|
|
6260
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
6261
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6122
6262
|
"button",
|
|
6123
6263
|
{
|
|
6124
6264
|
onClick: goToPreviousMonth,
|
|
6125
6265
|
className: "p-1 rounded-md hover:bg-background-100 transition-colors",
|
|
6126
6266
|
"aria-label": "M\xEAs anterior",
|
|
6127
|
-
children: /* @__PURE__ */ (0,
|
|
6267
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6128
6268
|
"svg",
|
|
6129
6269
|
{
|
|
6130
6270
|
className: "w-6 h-6 text-primary-950",
|
|
6131
6271
|
fill: "none",
|
|
6132
6272
|
stroke: "currentColor",
|
|
6133
6273
|
viewBox: "0 0 24 24",
|
|
6134
|
-
children: /* @__PURE__ */ (0,
|
|
6274
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6135
6275
|
"path",
|
|
6136
6276
|
{
|
|
6137
6277
|
strokeLinecap: "round",
|
|
@@ -6144,20 +6284,20 @@ var Calendar = ({
|
|
|
6144
6284
|
)
|
|
6145
6285
|
}
|
|
6146
6286
|
),
|
|
6147
|
-
/* @__PURE__ */ (0,
|
|
6287
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6148
6288
|
"button",
|
|
6149
6289
|
{
|
|
6150
6290
|
onClick: goToNextMonth,
|
|
6151
6291
|
className: "p-1 rounded-md hover:bg-background-100 transition-colors",
|
|
6152
6292
|
"aria-label": "Pr\xF3ximo m\xEAs",
|
|
6153
|
-
children: /* @__PURE__ */ (0,
|
|
6293
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6154
6294
|
"svg",
|
|
6155
6295
|
{
|
|
6156
6296
|
className: "w-6 h-6 text-primary-950",
|
|
6157
6297
|
fill: "none",
|
|
6158
6298
|
stroke: "currentColor",
|
|
6159
6299
|
viewBox: "0 0 24 24",
|
|
6160
|
-
children: /* @__PURE__ */ (0,
|
|
6300
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6161
6301
|
"path",
|
|
6162
6302
|
{
|
|
6163
6303
|
strokeLinecap: "round",
|
|
@@ -6172,7 +6312,7 @@ var Calendar = ({
|
|
|
6172
6312
|
)
|
|
6173
6313
|
] })
|
|
6174
6314
|
] }),
|
|
6175
|
-
/* @__PURE__ */ (0,
|
|
6315
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-7 mb-2", children: WEEK_DAYS.map((day) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6176
6316
|
"div",
|
|
6177
6317
|
{
|
|
6178
6318
|
className: "h-4 flex items-center justify-center text-xs font-semibold text-text-500",
|
|
@@ -6180,13 +6320,13 @@ var Calendar = ({
|
|
|
6180
6320
|
},
|
|
6181
6321
|
day
|
|
6182
6322
|
)) }),
|
|
6183
|
-
/* @__PURE__ */ (0,
|
|
6323
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-7", children: calendarData.map((day) => {
|
|
6184
6324
|
if (!day.isCurrentMonth) {
|
|
6185
|
-
return /* @__PURE__ */ (0,
|
|
6325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6186
6326
|
"div",
|
|
6187
6327
|
{
|
|
6188
6328
|
className: "flex items-center justify-center",
|
|
6189
|
-
children: /* @__PURE__ */ (0,
|
|
6329
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-10 h-10" })
|
|
6190
6330
|
},
|
|
6191
6331
|
day.date.getTime()
|
|
6192
6332
|
);
|
|
@@ -6196,11 +6336,11 @@ var Calendar = ({
|
|
|
6196
6336
|
variant,
|
|
6197
6337
|
showActivities
|
|
6198
6338
|
);
|
|
6199
|
-
return /* @__PURE__ */ (0,
|
|
6339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6200
6340
|
"div",
|
|
6201
6341
|
{
|
|
6202
6342
|
className: "flex items-center justify-center",
|
|
6203
|
-
children: /* @__PURE__ */ (0,
|
|
6343
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6204
6344
|
"button",
|
|
6205
6345
|
{
|
|
6206
6346
|
className: `
|
|
@@ -6230,7 +6370,7 @@ var Calendar_default = Calendar;
|
|
|
6230
6370
|
|
|
6231
6371
|
// src/components/AlertDialog/AlertDialog.tsx
|
|
6232
6372
|
var import_react23 = require("react");
|
|
6233
|
-
var
|
|
6373
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
6234
6374
|
var SIZE_CLASSES11 = {
|
|
6235
6375
|
"extra-small": "w-screen max-w-[324px]",
|
|
6236
6376
|
small: "w-screen max-w-[378px]",
|
|
@@ -6295,14 +6435,14 @@ var AlertDialog = (0, import_react23.forwardRef)(
|
|
|
6295
6435
|
onCancel?.(cancelValue);
|
|
6296
6436
|
};
|
|
6297
6437
|
const sizeClasses = SIZE_CLASSES11[size];
|
|
6298
|
-
return /* @__PURE__ */ (0,
|
|
6438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
6299
6439
|
"div",
|
|
6300
6440
|
{
|
|
6301
6441
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",
|
|
6302
6442
|
onClick: handleBackdropClick,
|
|
6303
6443
|
onKeyDown: handleBackdropKeyDown,
|
|
6304
6444
|
"data-testid": "alert-dialog-overlay",
|
|
6305
|
-
children: /* @__PURE__ */ (0,
|
|
6445
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
6306
6446
|
"div",
|
|
6307
6447
|
{
|
|
6308
6448
|
ref,
|
|
@@ -6313,7 +6453,7 @@ var AlertDialog = (0, import_react23.forwardRef)(
|
|
|
6313
6453
|
),
|
|
6314
6454
|
...props,
|
|
6315
6455
|
children: [
|
|
6316
|
-
/* @__PURE__ */ (0,
|
|
6456
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
6317
6457
|
"h2",
|
|
6318
6458
|
{
|
|
6319
6459
|
id: "alert-dialog-title",
|
|
@@ -6321,7 +6461,7 @@ var AlertDialog = (0, import_react23.forwardRef)(
|
|
|
6321
6461
|
children: title
|
|
6322
6462
|
}
|
|
6323
6463
|
),
|
|
6324
|
-
/* @__PURE__ */ (0,
|
|
6464
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
6325
6465
|
"p",
|
|
6326
6466
|
{
|
|
6327
6467
|
id: "alert-dialog-description",
|
|
@@ -6329,9 +6469,9 @@ var AlertDialog = (0, import_react23.forwardRef)(
|
|
|
6329
6469
|
children: description
|
|
6330
6470
|
}
|
|
6331
6471
|
),
|
|
6332
|
-
/* @__PURE__ */ (0,
|
|
6333
|
-
/* @__PURE__ */ (0,
|
|
6334
|
-
/* @__PURE__ */ (0,
|
|
6472
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-row items-center justify-end pt-4 gap-3", children: [
|
|
6473
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Button_default, { variant: "outline", size: "small", onClick: handleCancel, children: cancelButtonLabel }),
|
|
6474
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
6335
6475
|
Button_default,
|
|
6336
6476
|
{
|
|
6337
6477
|
variant: "solid",
|
|
@@ -6353,11 +6493,11 @@ AlertDialog.displayName = "AlertDialog";
|
|
|
6353
6493
|
|
|
6354
6494
|
// src/components/LoadingModal/loadingModal.tsx
|
|
6355
6495
|
var import_react24 = require("react");
|
|
6356
|
-
var
|
|
6496
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
6357
6497
|
var LoadingModal = (0, import_react24.forwardRef)(
|
|
6358
6498
|
({ open, title = "Titulo...", subtitle = "Subtitulo...", ...props }, ref) => {
|
|
6359
6499
|
if (!open) return null;
|
|
6360
|
-
return /* @__PURE__ */ (0,
|
|
6500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
6361
6501
|
"div",
|
|
6362
6502
|
{
|
|
6363
6503
|
ref,
|
|
@@ -6366,8 +6506,8 @@ var LoadingModal = (0, import_react24.forwardRef)(
|
|
|
6366
6506
|
"aria-describedby": "loading-modal-subtitle",
|
|
6367
6507
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-background/90 backdrop-blur-xs",
|
|
6368
6508
|
...props,
|
|
6369
|
-
children: /* @__PURE__ */ (0,
|
|
6370
|
-
/* @__PURE__ */ (0,
|
|
6509
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "w-full max-w-[364px] flex flex-col items-center justify-center gap-14", children: [
|
|
6510
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "animate-spin", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
6371
6511
|
"svg",
|
|
6372
6512
|
{
|
|
6373
6513
|
width: "102",
|
|
@@ -6378,14 +6518,14 @@ var LoadingModal = (0, import_react24.forwardRef)(
|
|
|
6378
6518
|
"aria-hidden": "true",
|
|
6379
6519
|
focusable: false,
|
|
6380
6520
|
children: [
|
|
6381
|
-
/* @__PURE__ */ (0,
|
|
6521
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
6382
6522
|
"path",
|
|
6383
6523
|
{
|
|
6384
6524
|
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",
|
|
6385
6525
|
className: "fill-primary-100"
|
|
6386
6526
|
}
|
|
6387
6527
|
),
|
|
6388
|
-
/* @__PURE__ */ (0,
|
|
6528
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
6389
6529
|
"path",
|
|
6390
6530
|
{
|
|
6391
6531
|
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",
|
|
@@ -6395,9 +6535,9 @@ var LoadingModal = (0, import_react24.forwardRef)(
|
|
|
6395
6535
|
]
|
|
6396
6536
|
}
|
|
6397
6537
|
) }),
|
|
6398
|
-
/* @__PURE__ */ (0,
|
|
6399
|
-
/* @__PURE__ */ (0,
|
|
6400
|
-
/* @__PURE__ */ (0,
|
|
6538
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "flex flex-col gap-4 text-center", children: [
|
|
6539
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { id: "loading-modal-title", className: "text-text-950 text-lg", children: title }),
|
|
6540
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { id: "loading-modal-subtitle", className: "text-text-600 text-lg", children: subtitle })
|
|
6401
6541
|
] })
|
|
6402
6542
|
] })
|
|
6403
6543
|
}
|
|
@@ -6412,7 +6552,7 @@ var import_react27 = require("react");
|
|
|
6412
6552
|
|
|
6413
6553
|
// src/components/Skeleton/Skeleton.tsx
|
|
6414
6554
|
var import_react25 = require("react");
|
|
6415
|
-
var
|
|
6555
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
6416
6556
|
var SKELETON_ANIMATION_CLASSES = {
|
|
6417
6557
|
pulse: "animate-pulse",
|
|
6418
6558
|
none: ""
|
|
@@ -6449,13 +6589,13 @@ var Skeleton = (0, import_react25.forwardRef)(
|
|
|
6449
6589
|
height: typeof height === "number" ? `${height}px` : height
|
|
6450
6590
|
};
|
|
6451
6591
|
if (variant === "text" && lines > 1) {
|
|
6452
|
-
return /* @__PURE__ */ (0,
|
|
6592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
6453
6593
|
"div",
|
|
6454
6594
|
{
|
|
6455
6595
|
ref,
|
|
6456
6596
|
className: cn("flex flex-col", spacingClass, className),
|
|
6457
6597
|
...props,
|
|
6458
|
-
children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ (0,
|
|
6598
|
+
children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
6459
6599
|
"div",
|
|
6460
6600
|
{
|
|
6461
6601
|
className: cn(variantClass, animationClass),
|
|
@@ -6466,7 +6606,7 @@ var Skeleton = (0, import_react25.forwardRef)(
|
|
|
6466
6606
|
}
|
|
6467
6607
|
);
|
|
6468
6608
|
}
|
|
6469
|
-
return /* @__PURE__ */ (0,
|
|
6609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
6470
6610
|
"div",
|
|
6471
6611
|
{
|
|
6472
6612
|
ref,
|
|
@@ -6479,11 +6619,11 @@ var Skeleton = (0, import_react25.forwardRef)(
|
|
|
6479
6619
|
}
|
|
6480
6620
|
);
|
|
6481
6621
|
var SkeletonText = (0, import_react25.forwardRef)(
|
|
6482
|
-
(props, ref) => /* @__PURE__ */ (0,
|
|
6622
|
+
(props, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Skeleton, { ref, variant: "text", ...props })
|
|
6483
6623
|
);
|
|
6484
|
-
var SkeletonCircle = (0, import_react25.forwardRef)((props, ref) => /* @__PURE__ */ (0,
|
|
6485
|
-
var SkeletonRectangle = (0, import_react25.forwardRef)((props, ref) => /* @__PURE__ */ (0,
|
|
6486
|
-
var SkeletonRounded = (0, import_react25.forwardRef)((props, ref) => /* @__PURE__ */ (0,
|
|
6624
|
+
var SkeletonCircle = (0, import_react25.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Skeleton, { ref, variant: "circular", ...props }));
|
|
6625
|
+
var SkeletonRectangle = (0, import_react25.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Skeleton, { ref, variant: "rectangular", ...props }));
|
|
6626
|
+
var SkeletonRounded = (0, import_react25.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Skeleton, { ref, variant: "rounded", ...props }));
|
|
6487
6627
|
var SkeletonCard = (0, import_react25.forwardRef)(
|
|
6488
6628
|
({
|
|
6489
6629
|
showAvatar = true,
|
|
@@ -6494,7 +6634,7 @@ var SkeletonCard = (0, import_react25.forwardRef)(
|
|
|
6494
6634
|
className = "",
|
|
6495
6635
|
...props
|
|
6496
6636
|
}, ref) => {
|
|
6497
|
-
return /* @__PURE__ */ (0,
|
|
6637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
6498
6638
|
"div",
|
|
6499
6639
|
{
|
|
6500
6640
|
ref,
|
|
@@ -6504,16 +6644,16 @@ var SkeletonCard = (0, import_react25.forwardRef)(
|
|
|
6504
6644
|
),
|
|
6505
6645
|
...props,
|
|
6506
6646
|
children: [
|
|
6507
|
-
/* @__PURE__ */ (0,
|
|
6508
|
-
showAvatar && /* @__PURE__ */ (0,
|
|
6509
|
-
/* @__PURE__ */ (0,
|
|
6510
|
-
showTitle && /* @__PURE__ */ (0,
|
|
6511
|
-
showDescription && /* @__PURE__ */ (0,
|
|
6647
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-start space-x-3", children: [
|
|
6648
|
+
showAvatar && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SkeletonCircle, { width: 40, height: 40 }),
|
|
6649
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex-1 space-y-2", children: [
|
|
6650
|
+
showTitle && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SkeletonText, { width: "60%", height: 20 }),
|
|
6651
|
+
showDescription && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SkeletonText, { lines, spacing: "small" })
|
|
6512
6652
|
] })
|
|
6513
6653
|
] }),
|
|
6514
|
-
showActions && /* @__PURE__ */ (0,
|
|
6515
|
-
/* @__PURE__ */ (0,
|
|
6516
|
-
/* @__PURE__ */ (0,
|
|
6654
|
+
showActions && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex justify-end space-x-2 mt-4", children: [
|
|
6655
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SkeletonRectangle, { width: 80, height: 32 }),
|
|
6656
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SkeletonRectangle, { width: 80, height: 32 })
|
|
6517
6657
|
] })
|
|
6518
6658
|
]
|
|
6519
6659
|
}
|
|
@@ -6530,19 +6670,19 @@ var SkeletonList = (0, import_react25.forwardRef)(
|
|
|
6530
6670
|
className = "",
|
|
6531
6671
|
...props
|
|
6532
6672
|
}, ref) => {
|
|
6533
|
-
return /* @__PURE__ */ (0,
|
|
6534
|
-
showAvatar && /* @__PURE__ */ (0,
|
|
6535
|
-
/* @__PURE__ */ (0,
|
|
6536
|
-
showTitle && /* @__PURE__ */ (0,
|
|
6537
|
-
showDescription && /* @__PURE__ */ (0,
|
|
6673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { ref, className: cn("space-y-3", className), ...props, children: Array.from({ length: items }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-start space-x-3 p-3", children: [
|
|
6674
|
+
showAvatar && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SkeletonCircle, { width: 32, height: 32 }),
|
|
6675
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex-1 space-y-2", children: [
|
|
6676
|
+
showTitle && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SkeletonText, { width: "40%", height: 16 }),
|
|
6677
|
+
showDescription && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SkeletonText, { lines, spacing: "small" })
|
|
6538
6678
|
] })
|
|
6539
6679
|
] }, index)) });
|
|
6540
6680
|
}
|
|
6541
6681
|
);
|
|
6542
6682
|
var SkeletonTable = (0, import_react25.forwardRef)(
|
|
6543
6683
|
({ rows = 5, columns = 4, showHeader = true, className = "", ...props }, ref) => {
|
|
6544
|
-
return /* @__PURE__ */ (0,
|
|
6545
|
-
showHeader && /* @__PURE__ */ (0,
|
|
6684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
6685
|
+
showHeader && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex space-x-2 mb-3", children: Array.from({ length: columns }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
6546
6686
|
SkeletonText,
|
|
6547
6687
|
{
|
|
6548
6688
|
width: `${100 / columns}%`,
|
|
@@ -6550,7 +6690,7 @@ var SkeletonTable = (0, import_react25.forwardRef)(
|
|
|
6550
6690
|
},
|
|
6551
6691
|
index
|
|
6552
6692
|
)) }),
|
|
6553
|
-
/* @__PURE__ */ (0,
|
|
6693
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "space-y-2", children: Array.from({ length: rows }, (_, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex space-x-2", children: Array.from({ length: columns }, (_2, colIndex) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
6554
6694
|
SkeletonText,
|
|
6555
6695
|
{
|
|
6556
6696
|
width: `${100 / columns}%`,
|
|
@@ -6887,14 +7027,14 @@ var createNotificationStore = (apiClient) => {
|
|
|
6887
7027
|
var mock_content_default = "./mock-content-K2CDVG6P.png";
|
|
6888
7028
|
|
|
6889
7029
|
// src/components/NotificationCard/NotificationCard.tsx
|
|
6890
|
-
var
|
|
7030
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
6891
7031
|
var NotificationEmpty = ({
|
|
6892
7032
|
emptyStateImage,
|
|
6893
7033
|
emptyStateTitle = "Nenhuma notifica\xE7\xE3o no momento",
|
|
6894
7034
|
emptyStateDescription = "Voc\xEA est\xE1 em dia com todas as novidades. Volte depois para conferir atualiza\xE7\xF5es!"
|
|
6895
7035
|
}) => {
|
|
6896
|
-
return /* @__PURE__ */ (0,
|
|
6897
|
-
emptyStateImage && /* @__PURE__ */ (0,
|
|
7036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col items-center justify-center gap-4 p-6 w-full", children: [
|
|
7037
|
+
emptyStateImage && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "w-20 h-20 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6898
7038
|
"img",
|
|
6899
7039
|
{
|
|
6900
7040
|
src: emptyStateImage,
|
|
@@ -6904,23 +7044,23 @@ var NotificationEmpty = ({
|
|
|
6904
7044
|
className: "object-contain"
|
|
6905
7045
|
}
|
|
6906
7046
|
) }),
|
|
6907
|
-
/* @__PURE__ */ (0,
|
|
6908
|
-
/* @__PURE__ */ (0,
|
|
7047
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h3", { className: "text-xl font-semibold text-text-950 text-center leading-[23px]", children: emptyStateTitle }),
|
|
7048
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "text-sm font-normal text-text-400 text-center max-w-[316px] leading-[21px]", children: emptyStateDescription })
|
|
6909
7049
|
] });
|
|
6910
7050
|
};
|
|
6911
7051
|
var NotificationHeader = ({
|
|
6912
7052
|
unreadCount,
|
|
6913
7053
|
variant = "modal"
|
|
6914
7054
|
}) => {
|
|
6915
|
-
return /* @__PURE__ */ (0,
|
|
6916
|
-
variant === "modal" ? /* @__PURE__ */ (0,
|
|
6917
|
-
unreadCount > 0 && /* @__PURE__ */ (0,
|
|
7055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
7056
|
+
variant === "modal" ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-950", children: "Notifica\xE7\xF5es" }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h3", { className: "text-sm font-semibold text-text-950", children: "Notifica\xE7\xF5es" }),
|
|
7057
|
+
unreadCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6918
7058
|
Badge_default,
|
|
6919
7059
|
{
|
|
6920
7060
|
variant: "solid",
|
|
6921
7061
|
action: "info",
|
|
6922
7062
|
size: "small",
|
|
6923
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
7063
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_phosphor_react18.Bell, { size: 12, "aria-hidden": "true", focusable: "false" }),
|
|
6924
7064
|
className: "border-0",
|
|
6925
7065
|
children: unreadCount === 1 ? "1 n\xE3o lida" : `${unreadCount} n\xE3o lidas`
|
|
6926
7066
|
}
|
|
@@ -6956,7 +7096,7 @@ var SingleNotificationCard = ({
|
|
|
6956
7096
|
onNavigate();
|
|
6957
7097
|
}
|
|
6958
7098
|
};
|
|
6959
|
-
return /* @__PURE__ */ (0,
|
|
7099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
6960
7100
|
"div",
|
|
6961
7101
|
{
|
|
6962
7102
|
className: cn(
|
|
@@ -6965,20 +7105,20 @@ var SingleNotificationCard = ({
|
|
|
6965
7105
|
className
|
|
6966
7106
|
),
|
|
6967
7107
|
children: [
|
|
6968
|
-
/* @__PURE__ */ (0,
|
|
6969
|
-
!isRead && /* @__PURE__ */ (0,
|
|
6970
|
-
/* @__PURE__ */ (0,
|
|
6971
|
-
/* @__PURE__ */ (0,
|
|
6972
|
-
/* @__PURE__ */ (0,
|
|
7108
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex items-center gap-2 w-full", children: [
|
|
7109
|
+
!isRead && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "w-[7px] h-[7px] bg-info-300 rounded-full flex-shrink-0" }),
|
|
7110
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h3", { className: "font-bold text-sm leading-4 text-text-950 flex-grow", children: title }),
|
|
7111
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(DropdownMenu_default, { children: [
|
|
7112
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6973
7113
|
DropdownMenuTrigger,
|
|
6974
7114
|
{
|
|
6975
7115
|
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",
|
|
6976
7116
|
"aria-label": "Menu de a\xE7\xF5es",
|
|
6977
|
-
children: /* @__PURE__ */ (0,
|
|
7117
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_phosphor_react18.DotsThreeVertical, { size: 24 })
|
|
6978
7118
|
}
|
|
6979
7119
|
),
|
|
6980
|
-
/* @__PURE__ */ (0,
|
|
6981
|
-
!isRead && /* @__PURE__ */ (0,
|
|
7120
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(DropdownMenuContent, { align: "end", className: "min-w-[160px]", children: [
|
|
7121
|
+
!isRead && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6982
7122
|
DropdownMenuItem,
|
|
6983
7123
|
{
|
|
6984
7124
|
onClick: handleMarkAsRead,
|
|
@@ -6986,14 +7126,14 @@ var SingleNotificationCard = ({
|
|
|
6986
7126
|
children: "Marcar como lida"
|
|
6987
7127
|
}
|
|
6988
7128
|
),
|
|
6989
|
-
/* @__PURE__ */ (0,
|
|
7129
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DropdownMenuItem, { onClick: handleDelete, className: "text-error-600", children: "Deletar" })
|
|
6990
7130
|
] })
|
|
6991
7131
|
] })
|
|
6992
7132
|
] }),
|
|
6993
|
-
/* @__PURE__ */ (0,
|
|
6994
|
-
/* @__PURE__ */ (0,
|
|
6995
|
-
/* @__PURE__ */ (0,
|
|
6996
|
-
onNavigate && actionLabel && /* @__PURE__ */ (0,
|
|
7133
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "text-sm leading-[21px] text-text-800 w-full", children: message }),
|
|
7134
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex items-center justify-between w-full", children: [
|
|
7135
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-sm font-medium text-text-400", children: time }),
|
|
7136
|
+
onNavigate && actionLabel && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6997
7137
|
"button",
|
|
6998
7138
|
{
|
|
6999
7139
|
type: "button",
|
|
@@ -7033,9 +7173,9 @@ var NotificationList = ({
|
|
|
7033
7173
|
}
|
|
7034
7174
|
};
|
|
7035
7175
|
if (error) {
|
|
7036
|
-
return /* @__PURE__ */ (0,
|
|
7037
|
-
/* @__PURE__ */ (0,
|
|
7038
|
-
onRetry && /* @__PURE__ */ (0,
|
|
7176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col items-center gap-4 p-6 w-full", children: [
|
|
7177
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "text-sm text-error-600", children: error }),
|
|
7178
|
+
onRetry && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7039
7179
|
"button",
|
|
7040
7180
|
{
|
|
7041
7181
|
type: "button",
|
|
@@ -7047,8 +7187,8 @@ var NotificationList = ({
|
|
|
7047
7187
|
] });
|
|
7048
7188
|
}
|
|
7049
7189
|
if (loading) {
|
|
7050
|
-
return /* @__PURE__ */ (0,
|
|
7051
|
-
(skeletonId) => /* @__PURE__ */ (0,
|
|
7190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex flex-col gap-0 w-full", children: ["skeleton-first", "skeleton-second", "skeleton-third"].map(
|
|
7191
|
+
(skeletonId) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7052
7192
|
SkeletonCard,
|
|
7053
7193
|
{
|
|
7054
7194
|
className: "p-4 border-b border-border-200"
|
|
@@ -7058,11 +7198,11 @@ var NotificationList = ({
|
|
|
7058
7198
|
) });
|
|
7059
7199
|
}
|
|
7060
7200
|
if (!groupedNotifications || groupedNotifications.length === 0) {
|
|
7061
|
-
return renderEmpty ? /* @__PURE__ */ (0,
|
|
7201
|
+
return renderEmpty ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "w-full", children: renderEmpty() }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(NotificationEmpty, {});
|
|
7062
7202
|
}
|
|
7063
|
-
return /* @__PURE__ */ (0,
|
|
7064
|
-
groupedNotifications.map((group, idx) => /* @__PURE__ */ (0,
|
|
7065
|
-
/* @__PURE__ */ (0,
|
|
7203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: cn("flex flex-col gap-0 w-full", className), children: [
|
|
7204
|
+
groupedNotifications.map((group, idx) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col", children: [
|
|
7205
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex items-end px-4 py-6 pb-4", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h4", { className: "text-lg font-bold text-text-500 flex-grow", children: group.label }) }),
|
|
7066
7206
|
group.notifications.map((notification) => {
|
|
7067
7207
|
const isGlobalNotification = !notification.entityType && !notification.entityId && !notification.activity && !notification.goal;
|
|
7068
7208
|
let navigationHandler;
|
|
@@ -7082,7 +7222,7 @@ var NotificationList = ({
|
|
|
7082
7222
|
notification.entityType ?? void 0
|
|
7083
7223
|
);
|
|
7084
7224
|
}
|
|
7085
|
-
return /* @__PURE__ */ (0,
|
|
7225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7086
7226
|
SingleNotificationCard,
|
|
7087
7227
|
{
|
|
7088
7228
|
title: notification.title,
|
|
@@ -7098,7 +7238,7 @@ var NotificationList = ({
|
|
|
7098
7238
|
);
|
|
7099
7239
|
})
|
|
7100
7240
|
] }, `${group.label}-${idx}`)),
|
|
7101
|
-
/* @__PURE__ */ (0,
|
|
7241
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7102
7242
|
Modal_default,
|
|
7103
7243
|
{
|
|
7104
7244
|
isOpen: globalNotificationModal.isOpen,
|
|
@@ -7156,7 +7296,7 @@ var NotificationCenter = ({
|
|
|
7156
7296
|
onFetchNotifications?.();
|
|
7157
7297
|
}
|
|
7158
7298
|
}, [isActive, onFetchNotifications]);
|
|
7159
|
-
const renderEmptyState = () => /* @__PURE__ */ (0,
|
|
7299
|
+
const renderEmptyState = () => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7160
7300
|
NotificationEmpty,
|
|
7161
7301
|
{
|
|
7162
7302
|
emptyStateImage,
|
|
@@ -7165,17 +7305,17 @@ var NotificationCenter = ({
|
|
|
7165
7305
|
}
|
|
7166
7306
|
);
|
|
7167
7307
|
if (isMobile) {
|
|
7168
|
-
return /* @__PURE__ */ (0,
|
|
7169
|
-
/* @__PURE__ */ (0,
|
|
7308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
7309
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7170
7310
|
IconButton_default,
|
|
7171
7311
|
{
|
|
7172
7312
|
active: isModalOpen,
|
|
7173
7313
|
onClick: handleMobileClick,
|
|
7174
|
-
icon: /* @__PURE__ */ (0,
|
|
7314
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_phosphor_react18.Bell, { size: 24, className: "text-primary" }),
|
|
7175
7315
|
className
|
|
7176
7316
|
}
|
|
7177
7317
|
),
|
|
7178
|
-
/* @__PURE__ */ (0,
|
|
7318
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7179
7319
|
Modal_default,
|
|
7180
7320
|
{
|
|
7181
7321
|
isOpen: isModalOpen,
|
|
@@ -7184,10 +7324,10 @@ var NotificationCenter = ({
|
|
|
7184
7324
|
size: "md",
|
|
7185
7325
|
hideCloseButton: false,
|
|
7186
7326
|
closeOnEscape: true,
|
|
7187
|
-
children: /* @__PURE__ */ (0,
|
|
7188
|
-
/* @__PURE__ */ (0,
|
|
7189
|
-
/* @__PURE__ */ (0,
|
|
7190
|
-
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ (0,
|
|
7327
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col h-full max-h-[80vh]", children: [
|
|
7328
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "px-0 pb-3 border-b border-border-200", children: [
|
|
7329
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(NotificationHeader, { unreadCount, variant: "modal" }),
|
|
7330
|
+
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7191
7331
|
"button",
|
|
7192
7332
|
{
|
|
7193
7333
|
type: "button",
|
|
@@ -7197,7 +7337,7 @@ var NotificationCenter = ({
|
|
|
7197
7337
|
}
|
|
7198
7338
|
)
|
|
7199
7339
|
] }),
|
|
7200
|
-
/* @__PURE__ */ (0,
|
|
7340
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7201
7341
|
NotificationList,
|
|
7202
7342
|
{
|
|
7203
7343
|
groupedNotifications,
|
|
@@ -7225,7 +7365,7 @@ var NotificationCenter = ({
|
|
|
7225
7365
|
] })
|
|
7226
7366
|
}
|
|
7227
7367
|
),
|
|
7228
|
-
/* @__PURE__ */ (0,
|
|
7368
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7229
7369
|
Modal_default,
|
|
7230
7370
|
{
|
|
7231
7371
|
isOpen: globalNotificationModal.isOpen,
|
|
@@ -7241,18 +7381,18 @@ var NotificationCenter = ({
|
|
|
7241
7381
|
)
|
|
7242
7382
|
] });
|
|
7243
7383
|
}
|
|
7244
|
-
return /* @__PURE__ */ (0,
|
|
7245
|
-
/* @__PURE__ */ (0,
|
|
7384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
7385
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
7246
7386
|
DropdownMenu_default,
|
|
7247
7387
|
{
|
|
7248
7388
|
...typeof isActive === "boolean" ? { open: isActive, onOpenChange: handleOpenChange } : { onOpenChange: handleOpenChange },
|
|
7249
7389
|
children: [
|
|
7250
|
-
/* @__PURE__ */ (0,
|
|
7390
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DropdownMenuTrigger, { className: "text-primary cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7251
7391
|
IconButton_default,
|
|
7252
7392
|
{
|
|
7253
7393
|
active: isActive,
|
|
7254
7394
|
onClick: handleDesktopClick,
|
|
7255
|
-
icon: /* @__PURE__ */ (0,
|
|
7395
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7256
7396
|
import_phosphor_react18.Bell,
|
|
7257
7397
|
{
|
|
7258
7398
|
size: 24,
|
|
@@ -7262,22 +7402,22 @@ var NotificationCenter = ({
|
|
|
7262
7402
|
className
|
|
7263
7403
|
}
|
|
7264
7404
|
) }),
|
|
7265
|
-
/* @__PURE__ */ (0,
|
|
7405
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7266
7406
|
DropdownMenuContent,
|
|
7267
7407
|
{
|
|
7268
7408
|
className: "min-w-[320px] max-w-[400px] max-h-[500px] overflow-hidden",
|
|
7269
7409
|
side: "bottom",
|
|
7270
7410
|
align: "end",
|
|
7271
|
-
children: /* @__PURE__ */ (0,
|
|
7272
|
-
/* @__PURE__ */ (0,
|
|
7273
|
-
/* @__PURE__ */ (0,
|
|
7411
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col", children: [
|
|
7412
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "px-4 py-3 border-b border-border-200", children: [
|
|
7413
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7274
7414
|
NotificationHeader,
|
|
7275
7415
|
{
|
|
7276
7416
|
unreadCount,
|
|
7277
7417
|
variant: "dropdown"
|
|
7278
7418
|
}
|
|
7279
7419
|
),
|
|
7280
|
-
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ (0,
|
|
7420
|
+
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7281
7421
|
"button",
|
|
7282
7422
|
{
|
|
7283
7423
|
type: "button",
|
|
@@ -7287,7 +7427,7 @@ var NotificationCenter = ({
|
|
|
7287
7427
|
}
|
|
7288
7428
|
)
|
|
7289
7429
|
] }),
|
|
7290
|
-
/* @__PURE__ */ (0,
|
|
7430
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "max-h-[350px] overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7291
7431
|
NotificationList,
|
|
7292
7432
|
{
|
|
7293
7433
|
groupedNotifications,
|
|
@@ -7314,7 +7454,7 @@ var NotificationCenter = ({
|
|
|
7314
7454
|
]
|
|
7315
7455
|
}
|
|
7316
7456
|
),
|
|
7317
|
-
/* @__PURE__ */ (0,
|
|
7457
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7318
7458
|
Modal_default,
|
|
7319
7459
|
{
|
|
7320
7460
|
isOpen: globalNotificationModal.isOpen,
|
|
@@ -7333,7 +7473,7 @@ var NotificationCenter = ({
|
|
|
7333
7473
|
var NotificationCard = (props) => {
|
|
7334
7474
|
switch (props.mode) {
|
|
7335
7475
|
case "single":
|
|
7336
|
-
return /* @__PURE__ */ (0,
|
|
7476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7337
7477
|
SingleNotificationCard,
|
|
7338
7478
|
{
|
|
7339
7479
|
title: props.title,
|
|
@@ -7348,7 +7488,7 @@ var NotificationCard = (props) => {
|
|
|
7348
7488
|
}
|
|
7349
7489
|
);
|
|
7350
7490
|
case "list":
|
|
7351
|
-
return /* @__PURE__ */ (0,
|
|
7491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7352
7492
|
NotificationList,
|
|
7353
7493
|
{
|
|
7354
7494
|
groupedNotifications: props.groupedNotifications ?? (props.notifications ? [
|
|
@@ -7371,19 +7511,19 @@ var NotificationCard = (props) => {
|
|
|
7371
7511
|
}
|
|
7372
7512
|
);
|
|
7373
7513
|
case "center":
|
|
7374
|
-
return /* @__PURE__ */ (0,
|
|
7514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(NotificationCenter, { ...props });
|
|
7375
7515
|
default:
|
|
7376
|
-
return /* @__PURE__ */ (0,
|
|
7516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex flex-col items-center gap-4 p-6 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "text-sm text-text-600", children: "Modo de notifica\xE7\xE3o n\xE3o reconhecido" }) });
|
|
7377
7517
|
}
|
|
7378
7518
|
};
|
|
7379
7519
|
var NotificationCard_default = NotificationCard;
|
|
7380
7520
|
|
|
7381
7521
|
// src/assets/icons/subjects/BookOpenText.tsx
|
|
7382
|
-
var
|
|
7522
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
7383
7523
|
var BookOpenText = ({
|
|
7384
7524
|
size,
|
|
7385
7525
|
color
|
|
7386
|
-
}) => /* @__PURE__ */ (0,
|
|
7526
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
7387
7527
|
"svg",
|
|
7388
7528
|
{
|
|
7389
7529
|
width: size,
|
|
@@ -7391,7 +7531,7 @@ var BookOpenText = ({
|
|
|
7391
7531
|
viewBox: "0 0 32 32",
|
|
7392
7532
|
fill: "none",
|
|
7393
7533
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7394
|
-
children: /* @__PURE__ */ (0,
|
|
7534
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
7395
7535
|
"path",
|
|
7396
7536
|
{
|
|
7397
7537
|
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",
|
|
@@ -7402,8 +7542,8 @@ var BookOpenText = ({
|
|
|
7402
7542
|
);
|
|
7403
7543
|
|
|
7404
7544
|
// src/assets/icons/subjects/ChatEN.tsx
|
|
7405
|
-
var
|
|
7406
|
-
var ChatEN = ({ size, color }) => /* @__PURE__ */ (0,
|
|
7545
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
7546
|
+
var ChatEN = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
7407
7547
|
"svg",
|
|
7408
7548
|
{
|
|
7409
7549
|
width: size,
|
|
@@ -7412,21 +7552,21 @@ var ChatEN = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)
|
|
|
7412
7552
|
fill: "none",
|
|
7413
7553
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7414
7554
|
children: [
|
|
7415
|
-
/* @__PURE__ */ (0,
|
|
7555
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
7416
7556
|
"path",
|
|
7417
7557
|
{
|
|
7418
7558
|
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",
|
|
7419
7559
|
fill: color
|
|
7420
7560
|
}
|
|
7421
7561
|
),
|
|
7422
|
-
/* @__PURE__ */ (0,
|
|
7562
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
7423
7563
|
"path",
|
|
7424
7564
|
{
|
|
7425
7565
|
d: "M22.5488 12V20.5312H21.0781L17.252 14.4199V20.5312H15.7812V12H17.252L21.0898 18.123V12H22.5488Z",
|
|
7426
7566
|
fill: color
|
|
7427
7567
|
}
|
|
7428
7568
|
),
|
|
7429
|
-
/* @__PURE__ */ (0,
|
|
7569
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
7430
7570
|
"path",
|
|
7431
7571
|
{
|
|
7432
7572
|
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",
|
|
@@ -7438,8 +7578,8 @@ var ChatEN = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)
|
|
|
7438
7578
|
);
|
|
7439
7579
|
|
|
7440
7580
|
// src/assets/icons/subjects/ChatES.tsx
|
|
7441
|
-
var
|
|
7442
|
-
var ChatES = ({ size, color }) => /* @__PURE__ */ (0,
|
|
7581
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
7582
|
+
var ChatES = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
7443
7583
|
"svg",
|
|
7444
7584
|
{
|
|
7445
7585
|
width: size,
|
|
@@ -7448,21 +7588,21 @@ var ChatES = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)
|
|
|
7448
7588
|
fill: "none",
|
|
7449
7589
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7450
7590
|
children: [
|
|
7451
|
-
/* @__PURE__ */ (0,
|
|
7591
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
7452
7592
|
"path",
|
|
7453
7593
|
{
|
|
7454
7594
|
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",
|
|
7455
7595
|
fill: color
|
|
7456
7596
|
}
|
|
7457
7597
|
),
|
|
7458
|
-
/* @__PURE__ */ (0,
|
|
7598
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
7459
7599
|
"path",
|
|
7460
7600
|
{
|
|
7461
7601
|
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",
|
|
7462
7602
|
fill: color
|
|
7463
7603
|
}
|
|
7464
7604
|
),
|
|
7465
|
-
/* @__PURE__ */ (0,
|
|
7605
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
7466
7606
|
"path",
|
|
7467
7607
|
{
|
|
7468
7608
|
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",
|
|
@@ -7474,8 +7614,8 @@ var ChatES = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)
|
|
|
7474
7614
|
);
|
|
7475
7615
|
|
|
7476
7616
|
// src/assets/icons/subjects/ChatPT.tsx
|
|
7477
|
-
var
|
|
7478
|
-
var ChatPT = ({ size, color }) => /* @__PURE__ */ (0,
|
|
7617
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
7618
|
+
var ChatPT = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
7479
7619
|
"svg",
|
|
7480
7620
|
{
|
|
7481
7621
|
width: size,
|
|
@@ -7484,21 +7624,21 @@ var ChatPT = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)
|
|
|
7484
7624
|
fill: "none",
|
|
7485
7625
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7486
7626
|
children: [
|
|
7487
|
-
/* @__PURE__ */ (0,
|
|
7627
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
7488
7628
|
"path",
|
|
7489
7629
|
{
|
|
7490
7630
|
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",
|
|
7491
7631
|
fill: color
|
|
7492
7632
|
}
|
|
7493
7633
|
),
|
|
7494
|
-
/* @__PURE__ */ (0,
|
|
7634
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
7495
7635
|
"path",
|
|
7496
7636
|
{
|
|
7497
7637
|
d: "M21.1758 12V20.5312H19.7168V12H21.1758ZM23.8535 12V13.1719H17.0625V12H23.8535Z",
|
|
7498
7638
|
fill: color
|
|
7499
7639
|
}
|
|
7500
7640
|
),
|
|
7501
|
-
/* @__PURE__ */ (0,
|
|
7641
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
7502
7642
|
"path",
|
|
7503
7643
|
{
|
|
7504
7644
|
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",
|
|
@@ -7510,11 +7650,11 @@ var ChatPT = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)
|
|
|
7510
7650
|
);
|
|
7511
7651
|
|
|
7512
7652
|
// src/assets/icons/subjects/HeadCircuit.tsx
|
|
7513
|
-
var
|
|
7653
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
7514
7654
|
var HeadCircuit = ({
|
|
7515
7655
|
size,
|
|
7516
7656
|
color
|
|
7517
|
-
}) => /* @__PURE__ */ (0,
|
|
7657
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
7518
7658
|
"svg",
|
|
7519
7659
|
{
|
|
7520
7660
|
width: size,
|
|
@@ -7522,7 +7662,7 @@ var HeadCircuit = ({
|
|
|
7522
7662
|
viewBox: "0 0 32 32",
|
|
7523
7663
|
fill: "none",
|
|
7524
7664
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7525
|
-
children: /* @__PURE__ */ (0,
|
|
7665
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
7526
7666
|
"path",
|
|
7527
7667
|
{
|
|
7528
7668
|
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",
|
|
@@ -7533,11 +7673,11 @@ var HeadCircuit = ({
|
|
|
7533
7673
|
);
|
|
7534
7674
|
|
|
7535
7675
|
// src/assets/icons/subjects/Microscope.tsx
|
|
7536
|
-
var
|
|
7676
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
7537
7677
|
var Microscope = ({
|
|
7538
7678
|
size,
|
|
7539
7679
|
color
|
|
7540
|
-
}) => /* @__PURE__ */ (0,
|
|
7680
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
7541
7681
|
"svg",
|
|
7542
7682
|
{
|
|
7543
7683
|
width: size,
|
|
@@ -7545,7 +7685,7 @@ var Microscope = ({
|
|
|
7545
7685
|
viewBox: "0 0 32 32",
|
|
7546
7686
|
fill: "none",
|
|
7547
7687
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7548
|
-
children: /* @__PURE__ */ (0,
|
|
7688
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
7549
7689
|
"path",
|
|
7550
7690
|
{
|
|
7551
7691
|
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",
|
|
@@ -7578,92 +7718,92 @@ var SubjectEnum = /* @__PURE__ */ ((SubjectEnum2) => {
|
|
|
7578
7718
|
|
|
7579
7719
|
// src/components/SubjectInfo/SubjectInfo.tsx
|
|
7580
7720
|
var import_phosphor_react19 = require("phosphor-react");
|
|
7581
|
-
var
|
|
7721
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
7582
7722
|
var SubjectInfo = {
|
|
7583
7723
|
["F\xEDsica" /* FISICA */]: {
|
|
7584
|
-
icon: /* @__PURE__ */ (0,
|
|
7724
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_phosphor_react19.Atom, { size: 17, color: "currentColor" }),
|
|
7585
7725
|
colorClass: "bg-subject-1",
|
|
7586
7726
|
name: "F\xEDsica" /* FISICA */
|
|
7587
7727
|
},
|
|
7588
7728
|
["Hist\xF3ria" /* HISTORIA */]: {
|
|
7589
|
-
icon: /* @__PURE__ */ (0,
|
|
7729
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_phosphor_react19.Scroll, { size: 17, color: "currentColor" }),
|
|
7590
7730
|
colorClass: "bg-subject-2",
|
|
7591
7731
|
name: "Hist\xF3ria" /* HISTORIA */
|
|
7592
7732
|
},
|
|
7593
7733
|
["Literatura" /* LITERATURA */]: {
|
|
7594
|
-
icon: /* @__PURE__ */ (0,
|
|
7734
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(BookOpenText, { size: 17, color: "currentColor" }),
|
|
7595
7735
|
colorClass: "bg-subject-3",
|
|
7596
7736
|
name: "Literatura" /* LITERATURA */
|
|
7597
7737
|
},
|
|
7598
7738
|
["Geografia" /* GEOGRAFIA */]: {
|
|
7599
|
-
icon: /* @__PURE__ */ (0,
|
|
7739
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_phosphor_react19.GlobeHemisphereWest, { size: 17, color: "currentColor" }),
|
|
7600
7740
|
colorClass: "bg-subject-4",
|
|
7601
7741
|
name: "Geografia" /* GEOGRAFIA */
|
|
7602
7742
|
},
|
|
7603
7743
|
["Biologia" /* BIOLOGIA */]: {
|
|
7604
|
-
icon: /* @__PURE__ */ (0,
|
|
7744
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Microscope, { size: 17, color: "currentColor" }),
|
|
7605
7745
|
colorClass: "bg-subject-5",
|
|
7606
7746
|
name: "Biologia" /* BIOLOGIA */
|
|
7607
7747
|
},
|
|
7608
7748
|
["Portugu\xEAs" /* PORTUGUES */]: {
|
|
7609
|
-
icon: /* @__PURE__ */ (0,
|
|
7749
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ChatPT, { size: 17, color: "currentColor" }),
|
|
7610
7750
|
colorClass: "bg-subject-6",
|
|
7611
7751
|
name: "Portugu\xEAs" /* PORTUGUES */
|
|
7612
7752
|
},
|
|
7613
7753
|
["Qu\xEDmica" /* QUIMICA */]: {
|
|
7614
|
-
icon: /* @__PURE__ */ (0,
|
|
7754
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_phosphor_react19.Flask, { size: 17, color: "currentColor" }),
|
|
7615
7755
|
colorClass: "bg-subject-7",
|
|
7616
7756
|
name: "Qu\xEDmica" /* QUIMICA */
|
|
7617
7757
|
},
|
|
7618
7758
|
["Artes" /* ARTES */]: {
|
|
7619
|
-
icon: /* @__PURE__ */ (0,
|
|
7759
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_phosphor_react19.Palette, { size: 17, color: "currentColor" }),
|
|
7620
7760
|
colorClass: "bg-subject-8",
|
|
7621
7761
|
name: "Artes" /* ARTES */
|
|
7622
7762
|
},
|
|
7623
7763
|
["Matem\xE1tica" /* MATEMATICA */]: {
|
|
7624
|
-
icon: /* @__PURE__ */ (0,
|
|
7764
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_phosphor_react19.MathOperations, { size: 17, color: "currentColor" }),
|
|
7625
7765
|
colorClass: "bg-subject-9",
|
|
7626
7766
|
name: "Matem\xE1tica" /* MATEMATICA */
|
|
7627
7767
|
},
|
|
7628
7768
|
["Filosofia" /* FILOSOFIA */]: {
|
|
7629
|
-
icon: /* @__PURE__ */ (0,
|
|
7769
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(HeadCircuit, { size: 17, color: "currentColor" }),
|
|
7630
7770
|
colorClass: "bg-subject-10",
|
|
7631
7771
|
name: "Filosofia" /* FILOSOFIA */
|
|
7632
7772
|
},
|
|
7633
7773
|
["Espanhol" /* ESPANHOL */]: {
|
|
7634
|
-
icon: /* @__PURE__ */ (0,
|
|
7774
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ChatES, { size: 17, color: "currentColor" }),
|
|
7635
7775
|
colorClass: "bg-subject-11",
|
|
7636
7776
|
name: "Espanhol" /* ESPANHOL */
|
|
7637
7777
|
},
|
|
7638
7778
|
["Reda\xE7\xE3o" /* REDACAO */]: {
|
|
7639
|
-
icon: /* @__PURE__ */ (0,
|
|
7779
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_phosphor_react19.ArticleNyTimes, { size: 17, color: "currentColor" }),
|
|
7640
7780
|
colorClass: "bg-subject-12",
|
|
7641
7781
|
name: "Reda\xE7\xE3o" /* REDACAO */
|
|
7642
7782
|
},
|
|
7643
7783
|
["Sociologia" /* SOCIOLOGIA */]: {
|
|
7644
|
-
icon: /* @__PURE__ */ (0,
|
|
7784
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_phosphor_react19.Person, { size: 17, color: "currentColor" }),
|
|
7645
7785
|
colorClass: "bg-subject-13",
|
|
7646
7786
|
name: "Sociologia" /* SOCIOLOGIA */
|
|
7647
7787
|
},
|
|
7648
7788
|
["Ingl\xEAs" /* INGLES */]: {
|
|
7649
|
-
icon: /* @__PURE__ */ (0,
|
|
7789
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ChatEN, { size: 17, color: "currentColor" }),
|
|
7650
7790
|
colorClass: "bg-subject-14",
|
|
7651
7791
|
name: "Ingl\xEAs" /* INGLES */
|
|
7652
7792
|
},
|
|
7653
7793
|
["Ed. F\xEDsica" /* EDUCACAO_FISICA */]: {
|
|
7654
|
-
icon: /* @__PURE__ */ (0,
|
|
7794
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_phosphor_react19.DribbbleLogo, { size: 17, color: "currentColor" }),
|
|
7655
7795
|
colorClass: "bg-subject-15",
|
|
7656
7796
|
name: "Ed. F\xEDsica" /* EDUCACAO_FISICA */
|
|
7657
7797
|
},
|
|
7658
7798
|
["Trilhas" /* TRILHAS */]: {
|
|
7659
|
-
icon: /* @__PURE__ */ (0,
|
|
7799
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_phosphor_react19.BookBookmark, { size: 17, color: "currentColor" }),
|
|
7660
7800
|
colorClass: "bg-subject-16",
|
|
7661
7801
|
name: "Trilhas" /* TRILHAS */
|
|
7662
7802
|
}
|
|
7663
7803
|
};
|
|
7664
7804
|
var getSubjectInfo = (subject) => {
|
|
7665
7805
|
return SubjectInfo[subject] || {
|
|
7666
|
-
icon: /* @__PURE__ */ (0,
|
|
7806
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_phosphor_react19.Book, { size: 17, color: "currentColor" }),
|
|
7667
7807
|
colorClass: "bg-subject-16",
|
|
7668
7808
|
name: subject
|
|
7669
7809
|
};
|
|
@@ -7795,7 +7935,7 @@ var createNotificationsHook = (apiClient) => {
|
|
|
7795
7935
|
};
|
|
7796
7936
|
|
|
7797
7937
|
// src/components/Filter/FilterModal.tsx
|
|
7798
|
-
var
|
|
7938
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
7799
7939
|
var FilterModal = ({
|
|
7800
7940
|
isOpen,
|
|
7801
7941
|
onClose,
|
|
@@ -7823,20 +7963,20 @@ var FilterModal = ({
|
|
|
7823
7963
|
const handleClear = () => {
|
|
7824
7964
|
onClear();
|
|
7825
7965
|
};
|
|
7826
|
-
return /* @__PURE__ */ (0,
|
|
7966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7827
7967
|
Modal_default,
|
|
7828
7968
|
{
|
|
7829
7969
|
isOpen,
|
|
7830
7970
|
onClose,
|
|
7831
7971
|
title,
|
|
7832
7972
|
size,
|
|
7833
|
-
footer: /* @__PURE__ */ (0,
|
|
7834
|
-
/* @__PURE__ */ (0,
|
|
7835
|
-
/* @__PURE__ */ (0,
|
|
7973
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex gap-3 justify-end w-full", children: [
|
|
7974
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Button_default, { variant: "outline", onClick: handleClear, children: clearLabel }),
|
|
7975
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Button_default, { onClick: handleApply, children: applyLabel })
|
|
7836
7976
|
] }),
|
|
7837
|
-
children: /* @__PURE__ */ (0,
|
|
7838
|
-
/* @__PURE__ */ (0,
|
|
7839
|
-
config.key === "academic" && /* @__PURE__ */ (0,
|
|
7977
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-col gap-6", children: filterConfigs.map((config, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
7978
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center gap-2 text-text-400 text-sm font-medium uppercase", children: [
|
|
7979
|
+
config.key === "academic" && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
7840
7980
|
"svg",
|
|
7841
7981
|
{
|
|
7842
7982
|
width: "16",
|
|
@@ -7846,7 +7986,7 @@ var FilterModal = ({
|
|
|
7846
7986
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7847
7987
|
className: "text-text-400",
|
|
7848
7988
|
children: [
|
|
7849
|
-
/* @__PURE__ */ (0,
|
|
7989
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7850
7990
|
"path",
|
|
7851
7991
|
{
|
|
7852
7992
|
d: "M8 2L2 5.33333L8 8.66667L14 5.33333L8 2Z",
|
|
@@ -7856,7 +7996,7 @@ var FilterModal = ({
|
|
|
7856
7996
|
strokeLinejoin: "round"
|
|
7857
7997
|
}
|
|
7858
7998
|
),
|
|
7859
|
-
/* @__PURE__ */ (0,
|
|
7999
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7860
8000
|
"path",
|
|
7861
8001
|
{
|
|
7862
8002
|
d: "M2 10.6667L8 14L14 10.6667",
|
|
@@ -7866,7 +8006,7 @@ var FilterModal = ({
|
|
|
7866
8006
|
strokeLinejoin: "round"
|
|
7867
8007
|
}
|
|
7868
8008
|
),
|
|
7869
|
-
/* @__PURE__ */ (0,
|
|
8009
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7870
8010
|
"path",
|
|
7871
8011
|
{
|
|
7872
8012
|
d: "M2 8L8 11.3333L14 8",
|
|
@@ -7879,7 +8019,7 @@ var FilterModal = ({
|
|
|
7879
8019
|
]
|
|
7880
8020
|
}
|
|
7881
8021
|
),
|
|
7882
|
-
config.key === "content" && /* @__PURE__ */ (0,
|
|
8022
|
+
config.key === "content" && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
7883
8023
|
"svg",
|
|
7884
8024
|
{
|
|
7885
8025
|
width: "16",
|
|
@@ -7889,7 +8029,7 @@ var FilterModal = ({
|
|
|
7889
8029
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7890
8030
|
className: "text-text-400",
|
|
7891
8031
|
children: [
|
|
7892
|
-
/* @__PURE__ */ (0,
|
|
8032
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7893
8033
|
"path",
|
|
7894
8034
|
{
|
|
7895
8035
|
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",
|
|
@@ -7899,7 +8039,7 @@ var FilterModal = ({
|
|
|
7899
8039
|
strokeLinejoin: "round"
|
|
7900
8040
|
}
|
|
7901
8041
|
),
|
|
7902
|
-
/* @__PURE__ */ (0,
|
|
8042
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7903
8043
|
"path",
|
|
7904
8044
|
{
|
|
7905
8045
|
d: "M2 6H14",
|
|
@@ -7909,7 +8049,7 @@ var FilterModal = ({
|
|
|
7909
8049
|
strokeLinejoin: "round"
|
|
7910
8050
|
}
|
|
7911
8051
|
),
|
|
7912
|
-
/* @__PURE__ */ (0,
|
|
8052
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7913
8053
|
"path",
|
|
7914
8054
|
{
|
|
7915
8055
|
d: "M6 2V14",
|
|
@@ -7922,9 +8062,9 @@ var FilterModal = ({
|
|
|
7922
8062
|
]
|
|
7923
8063
|
}
|
|
7924
8064
|
),
|
|
7925
|
-
/* @__PURE__ */ (0,
|
|
8065
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { children: config.label })
|
|
7926
8066
|
] }),
|
|
7927
|
-
/* @__PURE__ */ (0,
|
|
8067
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7928
8068
|
CheckboxGroup,
|
|
7929
8069
|
{
|
|
7930
8070
|
categories: config.categories,
|
|
@@ -8034,7 +8174,7 @@ var useTableFilter = (initialConfigs, options = {}) => {
|
|
|
8034
8174
|
var import_zustand8 = require("zustand");
|
|
8035
8175
|
var import_react30 = require("react");
|
|
8036
8176
|
var import_phosphor_react20 = require("phosphor-react");
|
|
8037
|
-
var
|
|
8177
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
8038
8178
|
var VARIANT_CLASSES4 = {
|
|
8039
8179
|
outlined: "border-2 rounded-lg focus:border-primary-950",
|
|
8040
8180
|
underlined: "border-b-2 focus:border-primary-950",
|
|
@@ -8094,7 +8234,7 @@ function getLabelAsNode(children) {
|
|
|
8094
8234
|
}
|
|
8095
8235
|
const flattened = import_react30.Children.toArray(children);
|
|
8096
8236
|
if (flattened.length === 1) return flattened[0];
|
|
8097
|
-
return /* @__PURE__ */ (0,
|
|
8237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, { children: flattened });
|
|
8098
8238
|
}
|
|
8099
8239
|
var injectStore4 = (children, store, size, selectId) => {
|
|
8100
8240
|
return import_react30.Children.map(children, (child) => {
|
|
@@ -8205,8 +8345,8 @@ var Select = ({
|
|
|
8205
8345
|
}
|
|
8206
8346
|
}, [propValue]);
|
|
8207
8347
|
const sizeClasses = SIZE_CLASSES12[size];
|
|
8208
|
-
return /* @__PURE__ */ (0,
|
|
8209
|
-
label && /* @__PURE__ */ (0,
|
|
8348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: cn("w-full", className), children: [
|
|
8349
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
8210
8350
|
"label",
|
|
8211
8351
|
{
|
|
8212
8352
|
htmlFor: selectId,
|
|
@@ -8214,11 +8354,11 @@ var Select = ({
|
|
|
8214
8354
|
children: label
|
|
8215
8355
|
}
|
|
8216
8356
|
),
|
|
8217
|
-
/* @__PURE__ */ (0,
|
|
8218
|
-
(helperText || errorMessage) && /* @__PURE__ */ (0,
|
|
8219
|
-
helperText && /* @__PURE__ */ (0,
|
|
8220
|
-
errorMessage && /* @__PURE__ */ (0,
|
|
8221
|
-
/* @__PURE__ */ (0,
|
|
8357
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: cn("relative w-full"), ref: selectRef, children: injectStore4(children, store, size, selectId) }),
|
|
8358
|
+
(helperText || errorMessage) && /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "mt-1.5 gap-1.5", children: [
|
|
8359
|
+
helperText && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "text-sm text-text-500", children: helperText }),
|
|
8360
|
+
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("p", { className: "flex gap-1 items-center text-sm text-indicator-error", children: [
|
|
8361
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_phosphor_react20.WarningCircle, { size: 16 }),
|
|
8222
8362
|
" ",
|
|
8223
8363
|
errorMessage
|
|
8224
8364
|
] })
|
|
@@ -8232,7 +8372,7 @@ var SelectValue = ({
|
|
|
8232
8372
|
const store = useSelectStore(externalStore);
|
|
8233
8373
|
const selectedLabel = (0, import_zustand8.useStore)(store, (s) => s.selectedLabel);
|
|
8234
8374
|
const value = (0, import_zustand8.useStore)(store, (s) => s.value);
|
|
8235
|
-
return /* @__PURE__ */ (0,
|
|
8375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "text-inherit flex gap-2 items-center", children: selectedLabel || placeholder || value });
|
|
8236
8376
|
};
|
|
8237
8377
|
var SelectTrigger = (0, import_react30.forwardRef)(
|
|
8238
8378
|
({
|
|
@@ -8251,7 +8391,7 @@ var SelectTrigger = (0, import_react30.forwardRef)(
|
|
|
8251
8391
|
const variantClasses = VARIANT_CLASSES4[variant];
|
|
8252
8392
|
const heightClasses = HEIGHT_CLASSES[size];
|
|
8253
8393
|
const paddingClasses = PADDING_CLASSES[size];
|
|
8254
|
-
return /* @__PURE__ */ (0,
|
|
8394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
8255
8395
|
"button",
|
|
8256
8396
|
{
|
|
8257
8397
|
ref,
|
|
@@ -8273,7 +8413,7 @@ var SelectTrigger = (0, import_react30.forwardRef)(
|
|
|
8273
8413
|
...props,
|
|
8274
8414
|
children: [
|
|
8275
8415
|
props.children,
|
|
8276
|
-
/* @__PURE__ */ (0,
|
|
8416
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
8277
8417
|
import_phosphor_react20.CaretDown,
|
|
8278
8418
|
{
|
|
8279
8419
|
className: cn(
|
|
@@ -8301,7 +8441,7 @@ var SelectContent = (0, import_react30.forwardRef)(
|
|
|
8301
8441
|
const open = (0, import_zustand8.useStore)(store, (s) => s.open);
|
|
8302
8442
|
if (!open) return null;
|
|
8303
8443
|
const getPositionClasses = () => `w-full min-w-full absolute ${SIDE_CLASSES2[side]} ${ALIGN_CLASSES2[align]}`;
|
|
8304
|
-
return /* @__PURE__ */ (0,
|
|
8444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
8305
8445
|
"div",
|
|
8306
8446
|
{
|
|
8307
8447
|
role: "menu",
|
|
@@ -8345,7 +8485,7 @@ var SelectItem = (0, import_react30.forwardRef)(
|
|
|
8345
8485
|
}
|
|
8346
8486
|
props.onClick?.(e);
|
|
8347
8487
|
};
|
|
8348
|
-
return /* @__PURE__ */ (0,
|
|
8488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
8349
8489
|
"div",
|
|
8350
8490
|
{
|
|
8351
8491
|
role: "menuitem",
|
|
@@ -8365,7 +8505,7 @@ var SelectItem = (0, import_react30.forwardRef)(
|
|
|
8365
8505
|
tabIndex: disabled ? -1 : 0,
|
|
8366
8506
|
...props,
|
|
8367
8507
|
children: [
|
|
8368
|
-
/* @__PURE__ */ (0,
|
|
8508
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: selectedValue === value && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_phosphor_react20.Check, { className: "" }) }),
|
|
8369
8509
|
children
|
|
8370
8510
|
]
|
|
8371
8511
|
}
|
|
@@ -8379,7 +8519,7 @@ var Select_default = Select;
|
|
|
8379
8519
|
var import_zustand9 = require("zustand");
|
|
8380
8520
|
var import_react31 = require("react");
|
|
8381
8521
|
var import_phosphor_react21 = require("phosphor-react");
|
|
8382
|
-
var
|
|
8522
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
8383
8523
|
var createMenuStore = (onValueChange) => (0, import_zustand9.create)((set) => ({
|
|
8384
8524
|
value: "",
|
|
8385
8525
|
setValue: (value) => {
|
|
@@ -8417,7 +8557,7 @@ var Menu = (0, import_react31.forwardRef)(
|
|
|
8417
8557
|
}, [defaultValue, propValue, setValue]);
|
|
8418
8558
|
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";
|
|
8419
8559
|
const variantClasses = VARIANT_CLASSES5[variant];
|
|
8420
|
-
return /* @__PURE__ */ (0,
|
|
8560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
8421
8561
|
"div",
|
|
8422
8562
|
{
|
|
8423
8563
|
ref,
|
|
@@ -8437,7 +8577,7 @@ var MenuContent = (0, import_react31.forwardRef)(
|
|
|
8437
8577
|
({ className, children, variant = "menu", ...props }, ref) => {
|
|
8438
8578
|
const baseClasses = "w-full flex flex-row items-center gap-2";
|
|
8439
8579
|
const variantClasses = variant === "menu2" || variant === "menu-overflow" ? "overflow-x-auto scroll-smooth" : "";
|
|
8440
|
-
return /* @__PURE__ */ (0,
|
|
8580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
8441
8581
|
"ul",
|
|
8442
8582
|
{
|
|
8443
8583
|
ref,
|
|
@@ -8489,7 +8629,7 @@ var MenuItem = (0, import_react31.forwardRef)(
|
|
|
8489
8629
|
...props
|
|
8490
8630
|
};
|
|
8491
8631
|
const variants = {
|
|
8492
|
-
menu: /* @__PURE__ */ (0,
|
|
8632
|
+
menu: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
8493
8633
|
"li",
|
|
8494
8634
|
{
|
|
8495
8635
|
"data-variant": "menu",
|
|
@@ -8504,7 +8644,7 @@ var MenuItem = (0, import_react31.forwardRef)(
|
|
|
8504
8644
|
children
|
|
8505
8645
|
}
|
|
8506
8646
|
),
|
|
8507
|
-
menu2: /* @__PURE__ */ (0,
|
|
8647
|
+
menu2: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
8508
8648
|
"li",
|
|
8509
8649
|
{
|
|
8510
8650
|
"data-variant": "menu2",
|
|
@@ -8515,7 +8655,7 @@ var MenuItem = (0, import_react31.forwardRef)(
|
|
|
8515
8655
|
`,
|
|
8516
8656
|
...commonProps,
|
|
8517
8657
|
children: [
|
|
8518
|
-
/* @__PURE__ */ (0,
|
|
8658
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
8519
8659
|
"span",
|
|
8520
8660
|
{
|
|
8521
8661
|
className: cn(
|
|
@@ -8525,11 +8665,11 @@ var MenuItem = (0, import_react31.forwardRef)(
|
|
|
8525
8665
|
children
|
|
8526
8666
|
}
|
|
8527
8667
|
),
|
|
8528
|
-
selectedValue === value && /* @__PURE__ */ (0,
|
|
8668
|
+
selectedValue === value && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "h-1 w-full bg-primary-950 rounded-lg" })
|
|
8529
8669
|
]
|
|
8530
8670
|
}
|
|
8531
8671
|
),
|
|
8532
|
-
"menu-overflow": /* @__PURE__ */ (0,
|
|
8672
|
+
"menu-overflow": /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
8533
8673
|
"li",
|
|
8534
8674
|
{
|
|
8535
8675
|
"data-variant": "menu-overflow",
|
|
@@ -8540,7 +8680,7 @@ var MenuItem = (0, import_react31.forwardRef)(
|
|
|
8540
8680
|
`,
|
|
8541
8681
|
...commonProps,
|
|
8542
8682
|
children: [
|
|
8543
|
-
/* @__PURE__ */ (0,
|
|
8683
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
8544
8684
|
"span",
|
|
8545
8685
|
{
|
|
8546
8686
|
className: cn(
|
|
@@ -8550,11 +8690,11 @@ var MenuItem = (0, import_react31.forwardRef)(
|
|
|
8550
8690
|
children
|
|
8551
8691
|
}
|
|
8552
8692
|
),
|
|
8553
|
-
selectedValue === value && /* @__PURE__ */ (0,
|
|
8693
|
+
selectedValue === value && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "h-1 w-full bg-primary-950 rounded-lg" })
|
|
8554
8694
|
]
|
|
8555
8695
|
}
|
|
8556
8696
|
),
|
|
8557
|
-
breadcrumb: /* @__PURE__ */ (0,
|
|
8697
|
+
breadcrumb: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
8558
8698
|
"li",
|
|
8559
8699
|
{
|
|
8560
8700
|
"data-variant": "breadcrumb",
|
|
@@ -8566,7 +8706,7 @@ var MenuItem = (0, import_react31.forwardRef)(
|
|
|
8566
8706
|
`,
|
|
8567
8707
|
...commonProps,
|
|
8568
8708
|
children: [
|
|
8569
|
-
/* @__PURE__ */ (0,
|
|
8709
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
8570
8710
|
"span",
|
|
8571
8711
|
{
|
|
8572
8712
|
className: cn(
|
|
@@ -8576,7 +8716,7 @@ var MenuItem = (0, import_react31.forwardRef)(
|
|
|
8576
8716
|
children
|
|
8577
8717
|
}
|
|
8578
8718
|
),
|
|
8579
|
-
separator && /* @__PURE__ */ (0,
|
|
8719
|
+
separator && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
8580
8720
|
import_phosphor_react21.CaretRight,
|
|
8581
8721
|
{
|
|
8582
8722
|
size: 16,
|
|
@@ -8631,25 +8771,25 @@ var MenuOverflow = ({
|
|
|
8631
8771
|
window.removeEventListener("resize", checkScroll);
|
|
8632
8772
|
};
|
|
8633
8773
|
}, []);
|
|
8634
|
-
return /* @__PURE__ */ (0,
|
|
8774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
8635
8775
|
"div",
|
|
8636
8776
|
{
|
|
8637
8777
|
"data-testid": "menu-overflow-wrapper",
|
|
8638
8778
|
className: cn("relative w-full overflow-hidden", className),
|
|
8639
8779
|
children: [
|
|
8640
|
-
showLeftArrow && /* @__PURE__ */ (0,
|
|
8780
|
+
showLeftArrow && /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
8641
8781
|
"button",
|
|
8642
8782
|
{
|
|
8643
8783
|
onClick: () => internalScroll(containerRef.current, "left"),
|
|
8644
8784
|
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",
|
|
8645
8785
|
"data-testid": "scroll-left-button",
|
|
8646
8786
|
children: [
|
|
8647
|
-
/* @__PURE__ */ (0,
|
|
8648
|
-
/* @__PURE__ */ (0,
|
|
8787
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_phosphor_react21.CaretLeft, { size: 16 }),
|
|
8788
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "sr-only", children: "Scroll left" })
|
|
8649
8789
|
]
|
|
8650
8790
|
}
|
|
8651
8791
|
),
|
|
8652
|
-
/* @__PURE__ */ (0,
|
|
8792
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
8653
8793
|
Menu,
|
|
8654
8794
|
{
|
|
8655
8795
|
defaultValue,
|
|
@@ -8657,18 +8797,18 @@ var MenuOverflow = ({
|
|
|
8657
8797
|
value,
|
|
8658
8798
|
variant: "menu2",
|
|
8659
8799
|
...props,
|
|
8660
|
-
children: /* @__PURE__ */ (0,
|
|
8800
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MenuContent, { ref: containerRef, variant: "menu2", children })
|
|
8661
8801
|
}
|
|
8662
8802
|
),
|
|
8663
|
-
showRightArrow && /* @__PURE__ */ (0,
|
|
8803
|
+
showRightArrow && /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
8664
8804
|
"button",
|
|
8665
8805
|
{
|
|
8666
8806
|
onClick: () => internalScroll(containerRef.current, "right"),
|
|
8667
8807
|
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",
|
|
8668
8808
|
"data-testid": "scroll-right-button",
|
|
8669
8809
|
children: [
|
|
8670
|
-
/* @__PURE__ */ (0,
|
|
8671
|
-
/* @__PURE__ */ (0,
|
|
8810
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_phosphor_react21.CaretRight, { size: 16 }),
|
|
8811
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "sr-only", children: "Scroll right" })
|
|
8672
8812
|
]
|
|
8673
8813
|
}
|
|
8674
8814
|
)
|
|
@@ -8694,7 +8834,7 @@ var import_phosphor_react22 = require("phosphor-react");
|
|
|
8694
8834
|
// src/components/IconRender/IconRender.tsx
|
|
8695
8835
|
var import_react32 = require("react");
|
|
8696
8836
|
var PhosphorIcons = __toESM(require("phosphor-react"));
|
|
8697
|
-
var
|
|
8837
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
8698
8838
|
var IconRender = ({
|
|
8699
8839
|
iconName,
|
|
8700
8840
|
color = "#000000",
|
|
@@ -8704,14 +8844,14 @@ var IconRender = ({
|
|
|
8704
8844
|
if (typeof iconName === "string") {
|
|
8705
8845
|
switch (iconName) {
|
|
8706
8846
|
case "Chat_PT":
|
|
8707
|
-
return /* @__PURE__ */ (0,
|
|
8847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ChatPT, { size, color });
|
|
8708
8848
|
case "Chat_EN":
|
|
8709
|
-
return /* @__PURE__ */ (0,
|
|
8849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ChatEN, { size, color });
|
|
8710
8850
|
case "Chat_ES":
|
|
8711
|
-
return /* @__PURE__ */ (0,
|
|
8851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ChatES, { size, color });
|
|
8712
8852
|
default: {
|
|
8713
8853
|
const IconComponent = PhosphorIcons[iconName] || PhosphorIcons.Question;
|
|
8714
|
-
return /* @__PURE__ */ (0,
|
|
8854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(IconComponent, { size, color, weight });
|
|
8715
8855
|
}
|
|
8716
8856
|
}
|
|
8717
8857
|
} else {
|
|
@@ -8724,7 +8864,7 @@ var IconRender = ({
|
|
|
8724
8864
|
var IconRender_default = IconRender;
|
|
8725
8865
|
|
|
8726
8866
|
// src/components/Card/Card.tsx
|
|
8727
|
-
var
|
|
8867
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
8728
8868
|
var CARD_BASE_CLASSES = {
|
|
8729
8869
|
default: "w-full bg-background border border-border-50 rounded-xl",
|
|
8730
8870
|
compact: "w-full bg-background border border-border-50 rounded-lg",
|
|
@@ -8766,7 +8906,7 @@ var CardBase = (0, import_react33.forwardRef)(
|
|
|
8766
8906
|
const minHeightClasses = CARD_MIN_HEIGHT_CLASSES[minHeight];
|
|
8767
8907
|
const layoutClasses = CARD_LAYOUT_CLASSES[layout];
|
|
8768
8908
|
const cursorClasses = CARD_CURSOR_CLASSES[cursor];
|
|
8769
|
-
return /* @__PURE__ */ (0,
|
|
8909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
8770
8910
|
"div",
|
|
8771
8911
|
{
|
|
8772
8912
|
ref,
|
|
@@ -8824,7 +8964,7 @@ var CardActivitiesResults = (0, import_react33.forwardRef)(
|
|
|
8824
8964
|
const actionIconClasses = ACTION_ICON_CLASSES[action];
|
|
8825
8965
|
const actionSubTitleClasses = ACTION_SUBTITLE_CLASSES[action];
|
|
8826
8966
|
const actionHeaderClasses = ACTION_HEADER_CLASSES[action];
|
|
8827
|
-
return /* @__PURE__ */ (0,
|
|
8967
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
8828
8968
|
"div",
|
|
8829
8969
|
{
|
|
8830
8970
|
ref,
|
|
@@ -8834,7 +8974,7 @@ var CardActivitiesResults = (0, import_react33.forwardRef)(
|
|
|
8834
8974
|
),
|
|
8835
8975
|
...props,
|
|
8836
8976
|
children: [
|
|
8837
|
-
/* @__PURE__ */ (0,
|
|
8977
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
8838
8978
|
"div",
|
|
8839
8979
|
{
|
|
8840
8980
|
className: cn(
|
|
@@ -8843,7 +8983,7 @@ var CardActivitiesResults = (0, import_react33.forwardRef)(
|
|
|
8843
8983
|
extended ? "rounded-t-xl" : "rounded-xl"
|
|
8844
8984
|
),
|
|
8845
8985
|
children: [
|
|
8846
|
-
/* @__PURE__ */ (0,
|
|
8986
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
8847
8987
|
"span",
|
|
8848
8988
|
{
|
|
8849
8989
|
className: cn(
|
|
@@ -8853,7 +8993,7 @@ var CardActivitiesResults = (0, import_react33.forwardRef)(
|
|
|
8853
8993
|
children: icon
|
|
8854
8994
|
}
|
|
8855
8995
|
),
|
|
8856
|
-
/* @__PURE__ */ (0,
|
|
8996
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
8857
8997
|
Text_default,
|
|
8858
8998
|
{
|
|
8859
8999
|
size: "2xs",
|
|
@@ -8862,7 +9002,7 @@ var CardActivitiesResults = (0, import_react33.forwardRef)(
|
|
|
8862
9002
|
children: title
|
|
8863
9003
|
}
|
|
8864
9004
|
),
|
|
8865
|
-
/* @__PURE__ */ (0,
|
|
9005
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
8866
9006
|
"p",
|
|
8867
9007
|
{
|
|
8868
9008
|
className: cn("text-lg font-bold truncate", actionSubTitleClasses),
|
|
@@ -8872,8 +9012,8 @@ var CardActivitiesResults = (0, import_react33.forwardRef)(
|
|
|
8872
9012
|
]
|
|
8873
9013
|
}
|
|
8874
9014
|
),
|
|
8875
|
-
extended && /* @__PURE__ */ (0,
|
|
8876
|
-
/* @__PURE__ */ (0,
|
|
9015
|
+
extended && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col items-center gap-2.5 pb-9.5 pt-2.5", children: [
|
|
9016
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
8877
9017
|
"p",
|
|
8878
9018
|
{
|
|
8879
9019
|
className: cn(
|
|
@@ -8883,7 +9023,7 @@ var CardActivitiesResults = (0, import_react33.forwardRef)(
|
|
|
8883
9023
|
children: header
|
|
8884
9024
|
}
|
|
8885
9025
|
),
|
|
8886
|
-
/* @__PURE__ */ (0,
|
|
9026
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Badge_default, { size: "large", action: "info", children: description })
|
|
8887
9027
|
] })
|
|
8888
9028
|
]
|
|
8889
9029
|
}
|
|
@@ -8902,7 +9042,7 @@ var CardQuestions = (0, import_react33.forwardRef)(
|
|
|
8902
9042
|
const isDone = state === "done";
|
|
8903
9043
|
const stateLabel = isDone ? "Realizado" : "N\xE3o Realizado";
|
|
8904
9044
|
const buttonLabel = isDone ? "Ver Resultado" : "Responder";
|
|
8905
|
-
return /* @__PURE__ */ (0,
|
|
9045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
8906
9046
|
CardBase,
|
|
8907
9047
|
{
|
|
8908
9048
|
ref,
|
|
@@ -8912,9 +9052,9 @@ var CardQuestions = (0, import_react33.forwardRef)(
|
|
|
8912
9052
|
className: cn("justify-between gap-4", className),
|
|
8913
9053
|
...props,
|
|
8914
9054
|
children: [
|
|
8915
|
-
/* @__PURE__ */ (0,
|
|
8916
|
-
/* @__PURE__ */ (0,
|
|
8917
|
-
/* @__PURE__ */ (0,
|
|
9055
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
9056
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
|
|
9057
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex flex-row gap-6 items-center", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
8918
9058
|
Badge_default,
|
|
8919
9059
|
{
|
|
8920
9060
|
size: "medium",
|
|
@@ -8924,7 +9064,7 @@ var CardQuestions = (0, import_react33.forwardRef)(
|
|
|
8924
9064
|
}
|
|
8925
9065
|
) })
|
|
8926
9066
|
] }),
|
|
8927
|
-
/* @__PURE__ */ (0,
|
|
9067
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
8928
9068
|
Button_default,
|
|
8929
9069
|
{
|
|
8930
9070
|
size: "extra-small",
|
|
@@ -8955,19 +9095,19 @@ var CardProgress = (0, import_react33.forwardRef)(
|
|
|
8955
9095
|
}, ref) => {
|
|
8956
9096
|
const isHorizontal = direction === "horizontal";
|
|
8957
9097
|
const contentComponent = {
|
|
8958
|
-
horizontal: /* @__PURE__ */ (0,
|
|
8959
|
-
showDates && /* @__PURE__ */ (0,
|
|
8960
|
-
initialDate && /* @__PURE__ */ (0,
|
|
8961
|
-
/* @__PURE__ */ (0,
|
|
8962
|
-
/* @__PURE__ */ (0,
|
|
9098
|
+
horizontal: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
9099
|
+
showDates && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
9100
|
+
initialDate && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
9101
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-text-800 font-semibold", children: "In\xEDcio" }),
|
|
9102
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-text-600", children: initialDate })
|
|
8963
9103
|
] }),
|
|
8964
|
-
endDate && /* @__PURE__ */ (0,
|
|
8965
|
-
/* @__PURE__ */ (0,
|
|
8966
|
-
/* @__PURE__ */ (0,
|
|
9104
|
+
endDate && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
9105
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-text-800 font-semibold", children: "Fim" }),
|
|
9106
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-text-600", children: endDate })
|
|
8967
9107
|
] })
|
|
8968
9108
|
] }),
|
|
8969
|
-
/* @__PURE__ */ (0,
|
|
8970
|
-
/* @__PURE__ */ (0,
|
|
9109
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
9110
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
8971
9111
|
ProgressBar_default,
|
|
8972
9112
|
{
|
|
8973
9113
|
size: "small",
|
|
@@ -8976,7 +9116,7 @@ var CardProgress = (0, import_react33.forwardRef)(
|
|
|
8976
9116
|
"data-testid": "progress-bar"
|
|
8977
9117
|
}
|
|
8978
9118
|
),
|
|
8979
|
-
/* @__PURE__ */ (0,
|
|
9119
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
8980
9120
|
Text_default,
|
|
8981
9121
|
{
|
|
8982
9122
|
size: "xs",
|
|
@@ -8992,9 +9132,9 @@ var CardProgress = (0, import_react33.forwardRef)(
|
|
|
8992
9132
|
)
|
|
8993
9133
|
] })
|
|
8994
9134
|
] }),
|
|
8995
|
-
vertical: /* @__PURE__ */ (0,
|
|
9135
|
+
vertical: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-sm text-text-800", children: subhead })
|
|
8996
9136
|
};
|
|
8997
|
-
return /* @__PURE__ */ (0,
|
|
9137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
8998
9138
|
CardBase,
|
|
8999
9139
|
{
|
|
9000
9140
|
ref,
|
|
@@ -9005,7 +9145,7 @@ var CardProgress = (0, import_react33.forwardRef)(
|
|
|
9005
9145
|
className: cn(isHorizontal ? "h-20" : "", className),
|
|
9006
9146
|
...props,
|
|
9007
9147
|
children: [
|
|
9008
|
-
/* @__PURE__ */ (0,
|
|
9148
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9009
9149
|
"div",
|
|
9010
9150
|
{
|
|
9011
9151
|
className: cn(
|
|
@@ -9018,7 +9158,7 @@ var CardProgress = (0, import_react33.forwardRef)(
|
|
|
9018
9158
|
children: icon
|
|
9019
9159
|
}
|
|
9020
9160
|
),
|
|
9021
|
-
/* @__PURE__ */ (0,
|
|
9161
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9022
9162
|
"div",
|
|
9023
9163
|
{
|
|
9024
9164
|
className: cn(
|
|
@@ -9026,7 +9166,7 @@ var CardProgress = (0, import_react33.forwardRef)(
|
|
|
9026
9166
|
!isHorizontal && "gap-4"
|
|
9027
9167
|
),
|
|
9028
9168
|
children: [
|
|
9029
|
-
/* @__PURE__ */ (0,
|
|
9169
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
|
|
9030
9170
|
contentComponent[direction]
|
|
9031
9171
|
]
|
|
9032
9172
|
}
|
|
@@ -9046,7 +9186,7 @@ var CardTopic = (0, import_react33.forwardRef)(
|
|
|
9046
9186
|
className = "",
|
|
9047
9187
|
...props
|
|
9048
9188
|
}, ref) => {
|
|
9049
|
-
return /* @__PURE__ */ (0,
|
|
9189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9050
9190
|
CardBase,
|
|
9051
9191
|
{
|
|
9052
9192
|
ref,
|
|
@@ -9057,13 +9197,13 @@ var CardTopic = (0, import_react33.forwardRef)(
|
|
|
9057
9197
|
className: cn("justify-center gap-2 py-2 px-4", className),
|
|
9058
9198
|
...props,
|
|
9059
9199
|
children: [
|
|
9060
|
-
subHead && /* @__PURE__ */ (0,
|
|
9061
|
-
/* @__PURE__ */ (0,
|
|
9062
|
-
index < subHead.length - 1 && /* @__PURE__ */ (0,
|
|
9200
|
+
subHead && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-text-600 text-2xs flex flex-row gap-1", children: subHead.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_react33.Fragment, { children: [
|
|
9201
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { children: text }),
|
|
9202
|
+
index < subHead.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { children: "\u2022" })
|
|
9063
9203
|
] }, `${text} - ${index}`)) }),
|
|
9064
|
-
/* @__PURE__ */ (0,
|
|
9065
|
-
/* @__PURE__ */ (0,
|
|
9066
|
-
/* @__PURE__ */ (0,
|
|
9204
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
|
|
9205
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
9206
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9067
9207
|
ProgressBar_default,
|
|
9068
9208
|
{
|
|
9069
9209
|
size: "small",
|
|
@@ -9072,7 +9212,7 @@ var CardTopic = (0, import_react33.forwardRef)(
|
|
|
9072
9212
|
"data-testid": "progress-bar"
|
|
9073
9213
|
}
|
|
9074
9214
|
),
|
|
9075
|
-
showPercentage && /* @__PURE__ */ (0,
|
|
9215
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9076
9216
|
Text_default,
|
|
9077
9217
|
{
|
|
9078
9218
|
size: "xs",
|
|
@@ -9106,7 +9246,7 @@ var CardPerformance = (0, import_react33.forwardRef)(
|
|
|
9106
9246
|
...props
|
|
9107
9247
|
}, ref) => {
|
|
9108
9248
|
const hasProgress = progress !== void 0;
|
|
9109
|
-
return /* @__PURE__ */ (0,
|
|
9249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9110
9250
|
CardBase,
|
|
9111
9251
|
{
|
|
9112
9252
|
ref,
|
|
@@ -9120,10 +9260,10 @@ var CardPerformance = (0, import_react33.forwardRef)(
|
|
|
9120
9260
|
onClick: () => actionVariant == "caret" && onClickButton?.(valueButton),
|
|
9121
9261
|
...props,
|
|
9122
9262
|
children: [
|
|
9123
|
-
/* @__PURE__ */ (0,
|
|
9124
|
-
/* @__PURE__ */ (0,
|
|
9125
|
-
/* @__PURE__ */ (0,
|
|
9126
|
-
actionVariant === "button" && /* @__PURE__ */ (0,
|
|
9263
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "w-full flex flex-col justify-between gap-2", children: [
|
|
9264
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-row justify-between items-center gap-2", children: [
|
|
9265
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
9266
|
+
actionVariant === "button" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9127
9267
|
Button_default,
|
|
9128
9268
|
{
|
|
9129
9269
|
variant: "outline",
|
|
@@ -9134,16 +9274,16 @@ var CardPerformance = (0, import_react33.forwardRef)(
|
|
|
9134
9274
|
}
|
|
9135
9275
|
)
|
|
9136
9276
|
] }),
|
|
9137
|
-
/* @__PURE__ */ (0,
|
|
9277
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9138
9278
|
ProgressBar_default,
|
|
9139
9279
|
{
|
|
9140
9280
|
value: progress,
|
|
9141
9281
|
label: `${progress}% ${labelProgress}`,
|
|
9142
9282
|
variant: progressVariant
|
|
9143
9283
|
}
|
|
9144
|
-
) : /* @__PURE__ */ (0,
|
|
9284
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-xs text-text-600 truncate", children: description }) })
|
|
9145
9285
|
] }),
|
|
9146
|
-
actionVariant == "caret" && /* @__PURE__ */ (0,
|
|
9286
|
+
actionVariant == "caret" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9147
9287
|
import_phosphor_react22.CaretRight,
|
|
9148
9288
|
{
|
|
9149
9289
|
className: "size-4.5 text-text-800 cursor-pointer",
|
|
@@ -9167,7 +9307,7 @@ var CardResults = (0, import_react33.forwardRef)(
|
|
|
9167
9307
|
...props
|
|
9168
9308
|
}, ref) => {
|
|
9169
9309
|
const isRow = direction == "row";
|
|
9170
|
-
return /* @__PURE__ */ (0,
|
|
9310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9171
9311
|
CardBase,
|
|
9172
9312
|
{
|
|
9173
9313
|
ref,
|
|
@@ -9177,7 +9317,7 @@ var CardResults = (0, import_react33.forwardRef)(
|
|
|
9177
9317
|
className: cn("items-stretch cursor-pointer pr-4", className),
|
|
9178
9318
|
...props,
|
|
9179
9319
|
children: [
|
|
9180
|
-
/* @__PURE__ */ (0,
|
|
9320
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9181
9321
|
"div",
|
|
9182
9322
|
{
|
|
9183
9323
|
className: cn(
|
|
@@ -9186,11 +9326,11 @@ var CardResults = (0, import_react33.forwardRef)(
|
|
|
9186
9326
|
style: {
|
|
9187
9327
|
backgroundColor: color
|
|
9188
9328
|
},
|
|
9189
|
-
children: /* @__PURE__ */ (0,
|
|
9329
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
|
|
9190
9330
|
}
|
|
9191
9331
|
),
|
|
9192
|
-
/* @__PURE__ */ (0,
|
|
9193
|
-
/* @__PURE__ */ (0,
|
|
9332
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "w-full flex flex-row justify-between items-center", children: [
|
|
9333
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9194
9334
|
"div",
|
|
9195
9335
|
{
|
|
9196
9336
|
className: cn(
|
|
@@ -9198,28 +9338,28 @@ var CardResults = (0, import_react33.forwardRef)(
|
|
|
9198
9338
|
isRow ? "flex-row items-center gap-2" : "flex-col"
|
|
9199
9339
|
),
|
|
9200
9340
|
children: [
|
|
9201
|
-
/* @__PURE__ */ (0,
|
|
9202
|
-
/* @__PURE__ */ (0,
|
|
9203
|
-
/* @__PURE__ */ (0,
|
|
9341
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
|
|
9342
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { className: "flex flex-wrap flex-row gap-1 items-center", children: [
|
|
9343
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9204
9344
|
Badge_default,
|
|
9205
9345
|
{
|
|
9206
9346
|
action: "success",
|
|
9207
9347
|
variant: "solid",
|
|
9208
9348
|
size: "large",
|
|
9209
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
9349
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.CheckCircle, {}),
|
|
9210
9350
|
children: [
|
|
9211
9351
|
correct_answers,
|
|
9212
9352
|
" Corretas"
|
|
9213
9353
|
]
|
|
9214
9354
|
}
|
|
9215
9355
|
),
|
|
9216
|
-
/* @__PURE__ */ (0,
|
|
9356
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9217
9357
|
Badge_default,
|
|
9218
9358
|
{
|
|
9219
9359
|
action: "error",
|
|
9220
9360
|
variant: "solid",
|
|
9221
9361
|
size: "large",
|
|
9222
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
9362
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.XCircle, {}),
|
|
9223
9363
|
children: [
|
|
9224
9364
|
incorrect_answers,
|
|
9225
9365
|
" Incorretas"
|
|
@@ -9230,7 +9370,7 @@ var CardResults = (0, import_react33.forwardRef)(
|
|
|
9230
9370
|
]
|
|
9231
9371
|
}
|
|
9232
9372
|
),
|
|
9233
|
-
/* @__PURE__ */ (0,
|
|
9373
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
|
|
9234
9374
|
] })
|
|
9235
9375
|
]
|
|
9236
9376
|
}
|
|
@@ -9256,13 +9396,13 @@ var CardStatus = (0, import_react33.forwardRef)(
|
|
|
9256
9396
|
const getIconBadge = (status2) => {
|
|
9257
9397
|
switch (status2) {
|
|
9258
9398
|
case "correct":
|
|
9259
|
-
return /* @__PURE__ */ (0,
|
|
9399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.CheckCircle, {});
|
|
9260
9400
|
case "incorrect":
|
|
9261
|
-
return /* @__PURE__ */ (0,
|
|
9401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.XCircle, {});
|
|
9262
9402
|
case "pending":
|
|
9263
|
-
return /* @__PURE__ */ (0,
|
|
9403
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.Clock, {});
|
|
9264
9404
|
default:
|
|
9265
|
-
return /* @__PURE__ */ (0,
|
|
9405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.XCircle, {});
|
|
9266
9406
|
}
|
|
9267
9407
|
};
|
|
9268
9408
|
const getActionBadge = (status2) => {
|
|
@@ -9277,7 +9417,7 @@ var CardStatus = (0, import_react33.forwardRef)(
|
|
|
9277
9417
|
return "info";
|
|
9278
9418
|
}
|
|
9279
9419
|
};
|
|
9280
|
-
return /* @__PURE__ */ (0,
|
|
9420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9281
9421
|
CardBase,
|
|
9282
9422
|
{
|
|
9283
9423
|
ref,
|
|
@@ -9286,10 +9426,10 @@ var CardStatus = (0, import_react33.forwardRef)(
|
|
|
9286
9426
|
minHeight: "medium",
|
|
9287
9427
|
className: cn("items-center cursor-pointer", className),
|
|
9288
9428
|
...props,
|
|
9289
|
-
children: /* @__PURE__ */ (0,
|
|
9290
|
-
/* @__PURE__ */ (0,
|
|
9291
|
-
/* @__PURE__ */ (0,
|
|
9292
|
-
status && /* @__PURE__ */ (0,
|
|
9429
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
9430
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
9431
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
9432
|
+
status && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9293
9433
|
Badge_default,
|
|
9294
9434
|
{
|
|
9295
9435
|
action: getActionBadge(status),
|
|
@@ -9299,9 +9439,9 @@ var CardStatus = (0, import_react33.forwardRef)(
|
|
|
9299
9439
|
children: getLabelBadge(status)
|
|
9300
9440
|
}
|
|
9301
9441
|
),
|
|
9302
|
-
label && /* @__PURE__ */ (0,
|
|
9442
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-sm text-text-800", children: label })
|
|
9303
9443
|
] }),
|
|
9304
|
-
/* @__PURE__ */ (0,
|
|
9444
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
9305
9445
|
] })
|
|
9306
9446
|
}
|
|
9307
9447
|
);
|
|
@@ -9309,7 +9449,7 @@ var CardStatus = (0, import_react33.forwardRef)(
|
|
|
9309
9449
|
);
|
|
9310
9450
|
var CardSettings = (0, import_react33.forwardRef)(
|
|
9311
9451
|
({ header, className, icon, ...props }, ref) => {
|
|
9312
|
-
return /* @__PURE__ */ (0,
|
|
9452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9313
9453
|
CardBase,
|
|
9314
9454
|
{
|
|
9315
9455
|
ref,
|
|
@@ -9322,9 +9462,9 @@ var CardSettings = (0, import_react33.forwardRef)(
|
|
|
9322
9462
|
),
|
|
9323
9463
|
...props,
|
|
9324
9464
|
children: [
|
|
9325
|
-
/* @__PURE__ */ (0,
|
|
9326
|
-
/* @__PURE__ */ (0,
|
|
9327
|
-
/* @__PURE__ */ (0,
|
|
9465
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "[&>svg]:size-6", children: icon }),
|
|
9466
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "w-full text-sm truncate", children: header }),
|
|
9467
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.CaretRight, { size: 24, className: "cursor-pointer" })
|
|
9328
9468
|
]
|
|
9329
9469
|
}
|
|
9330
9470
|
);
|
|
@@ -9332,7 +9472,7 @@ var CardSettings = (0, import_react33.forwardRef)(
|
|
|
9332
9472
|
);
|
|
9333
9473
|
var CardSupport = (0, import_react33.forwardRef)(
|
|
9334
9474
|
({ header, className, direction = "col", children, ...props }, ref) => {
|
|
9335
|
-
return /* @__PURE__ */ (0,
|
|
9475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9336
9476
|
CardBase,
|
|
9337
9477
|
{
|
|
9338
9478
|
ref,
|
|
@@ -9345,7 +9485,7 @@ var CardSupport = (0, import_react33.forwardRef)(
|
|
|
9345
9485
|
),
|
|
9346
9486
|
...props,
|
|
9347
9487
|
children: [
|
|
9348
|
-
/* @__PURE__ */ (0,
|
|
9488
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9349
9489
|
"div",
|
|
9350
9490
|
{
|
|
9351
9491
|
className: cn(
|
|
@@ -9353,12 +9493,12 @@ var CardSupport = (0, import_react33.forwardRef)(
|
|
|
9353
9493
|
direction == "col" ? "flex-col" : "flex-row items-center"
|
|
9354
9494
|
),
|
|
9355
9495
|
children: [
|
|
9356
|
-
/* @__PURE__ */ (0,
|
|
9357
|
-
/* @__PURE__ */ (0,
|
|
9496
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "w-full min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
|
|
9497
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "flex flex-row gap-1", children })
|
|
9358
9498
|
]
|
|
9359
9499
|
}
|
|
9360
9500
|
),
|
|
9361
|
-
/* @__PURE__ */ (0,
|
|
9501
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.CaretRight, { className: "text-text-800 cursor-pointer", size: 24 })
|
|
9362
9502
|
]
|
|
9363
9503
|
}
|
|
9364
9504
|
);
|
|
@@ -9378,7 +9518,7 @@ var CardForum = (0, import_react33.forwardRef)(
|
|
|
9378
9518
|
hour,
|
|
9379
9519
|
...props
|
|
9380
9520
|
}, ref) => {
|
|
9381
|
-
return /* @__PURE__ */ (0,
|
|
9521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9382
9522
|
CardBase,
|
|
9383
9523
|
{
|
|
9384
9524
|
ref,
|
|
@@ -9389,7 +9529,7 @@ var CardForum = (0, import_react33.forwardRef)(
|
|
|
9389
9529
|
className: cn("w-auto h-auto gap-3", className),
|
|
9390
9530
|
...props,
|
|
9391
9531
|
children: [
|
|
9392
|
-
/* @__PURE__ */ (0,
|
|
9532
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9393
9533
|
"button",
|
|
9394
9534
|
{
|
|
9395
9535
|
type: "button",
|
|
@@ -9398,18 +9538,18 @@ var CardForum = (0, import_react33.forwardRef)(
|
|
|
9398
9538
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
9399
9539
|
}
|
|
9400
9540
|
),
|
|
9401
|
-
/* @__PURE__ */ (0,
|
|
9402
|
-
/* @__PURE__ */ (0,
|
|
9403
|
-
/* @__PURE__ */ (0,
|
|
9404
|
-
/* @__PURE__ */ (0,
|
|
9541
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
9542
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
9543
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
9544
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("p", { className: "text-xs text-text-600", children: [
|
|
9405
9545
|
"\u2022 ",
|
|
9406
9546
|
date,
|
|
9407
9547
|
" \u2022 ",
|
|
9408
9548
|
hour
|
|
9409
9549
|
] })
|
|
9410
9550
|
] }),
|
|
9411
|
-
/* @__PURE__ */ (0,
|
|
9412
|
-
/* @__PURE__ */ (0,
|
|
9551
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
9552
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9413
9553
|
"button",
|
|
9414
9554
|
{
|
|
9415
9555
|
type: "button",
|
|
@@ -9417,8 +9557,8 @@ var CardForum = (0, import_react33.forwardRef)(
|
|
|
9417
9557
|
onClick: () => onClickComments?.(valueComments),
|
|
9418
9558
|
className: "text-text-600 flex flex-row gap-2 items-center",
|
|
9419
9559
|
children: [
|
|
9420
|
-
/* @__PURE__ */ (0,
|
|
9421
|
-
/* @__PURE__ */ (0,
|
|
9560
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.ChatCircleText, { "aria-hidden": "true", size: 16 }),
|
|
9561
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("p", { className: "text-xs", children: [
|
|
9422
9562
|
comments,
|
|
9423
9563
|
" respostas"
|
|
9424
9564
|
] })
|
|
@@ -9521,12 +9661,12 @@ var CardAudio = (0, import_react33.forwardRef)(
|
|
|
9521
9661
|
};
|
|
9522
9662
|
const getVolumeIcon = () => {
|
|
9523
9663
|
if (volume === 0) {
|
|
9524
|
-
return /* @__PURE__ */ (0,
|
|
9664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.SpeakerSimpleX, { size: 24 });
|
|
9525
9665
|
}
|
|
9526
9666
|
if (volume < 0.5) {
|
|
9527
|
-
return /* @__PURE__ */ (0,
|
|
9667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.SpeakerLow, { size: 24 });
|
|
9528
9668
|
}
|
|
9529
|
-
return /* @__PURE__ */ (0,
|
|
9669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.SpeakerHigh, { size: 24 });
|
|
9530
9670
|
};
|
|
9531
9671
|
(0, import_react33.useEffect)(() => {
|
|
9532
9672
|
const handleClickOutside = (event) => {
|
|
@@ -9542,7 +9682,7 @@ var CardAudio = (0, import_react33.forwardRef)(
|
|
|
9542
9682
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
9543
9683
|
};
|
|
9544
9684
|
}, []);
|
|
9545
|
-
return /* @__PURE__ */ (0,
|
|
9685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9546
9686
|
CardBase,
|
|
9547
9687
|
{
|
|
9548
9688
|
ref,
|
|
@@ -9555,7 +9695,7 @@ var CardAudio = (0, import_react33.forwardRef)(
|
|
|
9555
9695
|
),
|
|
9556
9696
|
...props,
|
|
9557
9697
|
children: [
|
|
9558
|
-
/* @__PURE__ */ (0,
|
|
9698
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9559
9699
|
"audio",
|
|
9560
9700
|
{
|
|
9561
9701
|
ref: audioRef,
|
|
@@ -9567,7 +9707,7 @@ var CardAudio = (0, import_react33.forwardRef)(
|
|
|
9567
9707
|
onEnded: handleEnded,
|
|
9568
9708
|
"data-testid": "audio-element",
|
|
9569
9709
|
"aria-label": title,
|
|
9570
|
-
children: tracks ? tracks.map((track) => /* @__PURE__ */ (0,
|
|
9710
|
+
children: tracks ? tracks.map((track) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9571
9711
|
"track",
|
|
9572
9712
|
{
|
|
9573
9713
|
kind: track.kind,
|
|
@@ -9577,7 +9717,7 @@ var CardAudio = (0, import_react33.forwardRef)(
|
|
|
9577
9717
|
default: track.default
|
|
9578
9718
|
},
|
|
9579
9719
|
track.src
|
|
9580
|
-
)) : /* @__PURE__ */ (0,
|
|
9720
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9581
9721
|
"track",
|
|
9582
9722
|
{
|
|
9583
9723
|
kind: "captions",
|
|
@@ -9588,7 +9728,7 @@ var CardAudio = (0, import_react33.forwardRef)(
|
|
|
9588
9728
|
)
|
|
9589
9729
|
}
|
|
9590
9730
|
),
|
|
9591
|
-
/* @__PURE__ */ (0,
|
|
9731
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9592
9732
|
"button",
|
|
9593
9733
|
{
|
|
9594
9734
|
type: "button",
|
|
@@ -9596,14 +9736,14 @@ var CardAudio = (0, import_react33.forwardRef)(
|
|
|
9596
9736
|
disabled: !src,
|
|
9597
9737
|
className: "cursor-pointer text-text-950 hover:text-primary-600 disabled:text-text-400 disabled:cursor-not-allowed",
|
|
9598
9738
|
"aria-label": isPlaying ? "Pausar" : "Reproduzir",
|
|
9599
|
-
children: isPlaying ? /* @__PURE__ */ (0,
|
|
9600
|
-
/* @__PURE__ */ (0,
|
|
9601
|
-
/* @__PURE__ */ (0,
|
|
9602
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
9739
|
+
children: isPlaying ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "w-6 h-6 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex gap-0.5", children: [
|
|
9740
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "w-1 h-4 bg-current rounded-sm" }),
|
|
9741
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "w-1 h-4 bg-current rounded-sm" })
|
|
9742
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.Play, { size: 24 })
|
|
9603
9743
|
}
|
|
9604
9744
|
),
|
|
9605
|
-
/* @__PURE__ */ (0,
|
|
9606
|
-
/* @__PURE__ */ (0,
|
|
9745
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-text-800 text-md font-medium min-w-[2.5rem]", children: formatTime2(currentTime) }),
|
|
9746
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex-1 relative", "data-testid": "progress-bar", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9607
9747
|
"button",
|
|
9608
9748
|
{
|
|
9609
9749
|
type: "button",
|
|
@@ -9618,7 +9758,7 @@ var CardAudio = (0, import_react33.forwardRef)(
|
|
|
9618
9758
|
}
|
|
9619
9759
|
},
|
|
9620
9760
|
"aria-label": "Barra de progresso do \xE1udio",
|
|
9621
|
-
children: /* @__PURE__ */ (0,
|
|
9761
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9622
9762
|
"div",
|
|
9623
9763
|
{
|
|
9624
9764
|
className: "h-full bg-primary-600 rounded-full transition-all duration-100",
|
|
@@ -9629,19 +9769,19 @@ var CardAudio = (0, import_react33.forwardRef)(
|
|
|
9629
9769
|
)
|
|
9630
9770
|
}
|
|
9631
9771
|
) }),
|
|
9632
|
-
/* @__PURE__ */ (0,
|
|
9633
|
-
/* @__PURE__ */ (0,
|
|
9634
|
-
/* @__PURE__ */ (0,
|
|
9772
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-text-800 text-md font-medium min-w-[2.5rem]", children: formatTime2(duration) }),
|
|
9773
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "relative h-6", ref: volumeControlRef, children: [
|
|
9774
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9635
9775
|
"button",
|
|
9636
9776
|
{
|
|
9637
9777
|
type: "button",
|
|
9638
9778
|
onClick: toggleVolumeControl,
|
|
9639
9779
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
9640
9780
|
"aria-label": "Controle de volume",
|
|
9641
|
-
children: /* @__PURE__ */ (0,
|
|
9781
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "w-6 h-6 flex items-center justify-center", children: getVolumeIcon() })
|
|
9642
9782
|
}
|
|
9643
9783
|
),
|
|
9644
|
-
showVolumeControl && /* @__PURE__ */ (0,
|
|
9784
|
+
showVolumeControl && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9645
9785
|
"button",
|
|
9646
9786
|
{
|
|
9647
9787
|
type: "button",
|
|
@@ -9651,7 +9791,7 @@ var CardAudio = (0, import_react33.forwardRef)(
|
|
|
9651
9791
|
setShowVolumeControl(false);
|
|
9652
9792
|
}
|
|
9653
9793
|
},
|
|
9654
|
-
children: /* @__PURE__ */ (0,
|
|
9794
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9655
9795
|
"input",
|
|
9656
9796
|
{
|
|
9657
9797
|
type: "range",
|
|
@@ -9692,22 +9832,22 @@ var CardAudio = (0, import_react33.forwardRef)(
|
|
|
9692
9832
|
}
|
|
9693
9833
|
)
|
|
9694
9834
|
] }),
|
|
9695
|
-
/* @__PURE__ */ (0,
|
|
9696
|
-
/* @__PURE__ */ (0,
|
|
9835
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "relative h-6", ref: speedMenuRef, children: [
|
|
9836
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9697
9837
|
"button",
|
|
9698
9838
|
{
|
|
9699
9839
|
type: "button",
|
|
9700
9840
|
onClick: toggleSpeedMenu,
|
|
9701
9841
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
9702
9842
|
"aria-label": "Op\xE7\xF5es de velocidade",
|
|
9703
|
-
children: /* @__PURE__ */ (0,
|
|
9843
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.DotsThreeVertical, { size: 24 })
|
|
9704
9844
|
}
|
|
9705
9845
|
),
|
|
9706
|
-
showSpeedMenu && /* @__PURE__ */ (0,
|
|
9846
|
+
showSpeedMenu && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("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__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex flex-col gap-1", children: [
|
|
9707
9847
|
{ speed: 1, label: "1x" },
|
|
9708
9848
|
{ speed: 1.5, label: "1.5x" },
|
|
9709
9849
|
{ speed: 2, label: "2x" }
|
|
9710
|
-
].map(({ speed, label }) => /* @__PURE__ */ (0,
|
|
9850
|
+
].map(({ speed, label }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9711
9851
|
"button",
|
|
9712
9852
|
{
|
|
9713
9853
|
type: "button",
|
|
@@ -9735,7 +9875,7 @@ var SIMULADO_BACKGROUND_CLASSES = {
|
|
|
9735
9875
|
var CardSimulado = (0, import_react33.forwardRef)(
|
|
9736
9876
|
({ title, duration, info, backgroundColor, className, ...props }, ref) => {
|
|
9737
9877
|
const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
|
|
9738
|
-
return /* @__PURE__ */ (0,
|
|
9878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9739
9879
|
CardBase,
|
|
9740
9880
|
{
|
|
9741
9881
|
ref,
|
|
@@ -9748,18 +9888,18 @@ var CardSimulado = (0, import_react33.forwardRef)(
|
|
|
9748
9888
|
className
|
|
9749
9889
|
),
|
|
9750
9890
|
...props,
|
|
9751
|
-
children: /* @__PURE__ */ (0,
|
|
9752
|
-
/* @__PURE__ */ (0,
|
|
9753
|
-
/* @__PURE__ */ (0,
|
|
9754
|
-
/* @__PURE__ */ (0,
|
|
9755
|
-
duration && /* @__PURE__ */ (0,
|
|
9756
|
-
/* @__PURE__ */ (0,
|
|
9757
|
-
/* @__PURE__ */ (0,
|
|
9891
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex justify-between items-center w-full gap-4", children: [
|
|
9892
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
9893
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
|
|
9894
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-4 text-text-700", children: [
|
|
9895
|
+
duration && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
9896
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.Clock, { size: 16, className: "flex-shrink-0" }),
|
|
9897
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text_default, { size: "sm", children: duration })
|
|
9758
9898
|
] }),
|
|
9759
|
-
/* @__PURE__ */ (0,
|
|
9899
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text_default, { size: "sm", className: "truncate", children: info })
|
|
9760
9900
|
] })
|
|
9761
9901
|
] }),
|
|
9762
|
-
/* @__PURE__ */ (0,
|
|
9902
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9763
9903
|
import_phosphor_react22.CaretRight,
|
|
9764
9904
|
{
|
|
9765
9905
|
size: 24,
|
|
@@ -9804,7 +9944,7 @@ var CardTest = (0, import_react33.forwardRef)(
|
|
|
9804
9944
|
const interactiveClasses = isSelectable ? "cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary-950 focus:ring-offset-2" : "";
|
|
9805
9945
|
const selectedClasses = selected ? "ring-2 ring-primary-950 ring-offset-2" : "";
|
|
9806
9946
|
if (isSelectable) {
|
|
9807
|
-
return /* @__PURE__ */ (0,
|
|
9947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9808
9948
|
"button",
|
|
9809
9949
|
{
|
|
9810
9950
|
ref,
|
|
@@ -9816,8 +9956,8 @@ var CardTest = (0, import_react33.forwardRef)(
|
|
|
9816
9956
|
onKeyDown: handleKeyDown,
|
|
9817
9957
|
"aria-pressed": selected,
|
|
9818
9958
|
...props,
|
|
9819
|
-
children: /* @__PURE__ */ (0,
|
|
9820
|
-
/* @__PURE__ */ (0,
|
|
9959
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
9960
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9821
9961
|
Text_default,
|
|
9822
9962
|
{
|
|
9823
9963
|
size: "md",
|
|
@@ -9826,10 +9966,10 @@ var CardTest = (0, import_react33.forwardRef)(
|
|
|
9826
9966
|
children: title
|
|
9827
9967
|
}
|
|
9828
9968
|
),
|
|
9829
|
-
/* @__PURE__ */ (0,
|
|
9830
|
-
duration && /* @__PURE__ */ (0,
|
|
9831
|
-
/* @__PURE__ */ (0,
|
|
9832
|
-
/* @__PURE__ */ (0,
|
|
9969
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
9970
|
+
duration && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
9971
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.Clock, { size: 16, className: "text-text-700" }),
|
|
9972
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9833
9973
|
Text_default,
|
|
9834
9974
|
{
|
|
9835
9975
|
size: "sm",
|
|
@@ -9838,7 +9978,7 @@ var CardTest = (0, import_react33.forwardRef)(
|
|
|
9838
9978
|
}
|
|
9839
9979
|
)
|
|
9840
9980
|
] }),
|
|
9841
|
-
/* @__PURE__ */ (0,
|
|
9981
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9842
9982
|
Text_default,
|
|
9843
9983
|
{
|
|
9844
9984
|
size: "sm",
|
|
@@ -9851,14 +9991,14 @@ var CardTest = (0, import_react33.forwardRef)(
|
|
|
9851
9991
|
}
|
|
9852
9992
|
);
|
|
9853
9993
|
}
|
|
9854
|
-
return /* @__PURE__ */ (0,
|
|
9994
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9855
9995
|
"div",
|
|
9856
9996
|
{
|
|
9857
9997
|
ref,
|
|
9858
9998
|
className: cn(`${baseClasses} ${className}`.trim()),
|
|
9859
9999
|
...props,
|
|
9860
|
-
children: /* @__PURE__ */ (0,
|
|
9861
|
-
/* @__PURE__ */ (0,
|
|
10000
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
10001
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9862
10002
|
Text_default,
|
|
9863
10003
|
{
|
|
9864
10004
|
size: "md",
|
|
@@ -9867,10 +10007,10 @@ var CardTest = (0, import_react33.forwardRef)(
|
|
|
9867
10007
|
children: title
|
|
9868
10008
|
}
|
|
9869
10009
|
),
|
|
9870
|
-
/* @__PURE__ */ (0,
|
|
9871
|
-
duration && /* @__PURE__ */ (0,
|
|
9872
|
-
/* @__PURE__ */ (0,
|
|
9873
|
-
/* @__PURE__ */ (0,
|
|
10010
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
10011
|
+
duration && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
10012
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_phosphor_react22.Clock, { size: 16, className: "text-text-700" }),
|
|
10013
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9874
10014
|
Text_default,
|
|
9875
10015
|
{
|
|
9876
10016
|
size: "sm",
|
|
@@ -9879,7 +10019,7 @@ var CardTest = (0, import_react33.forwardRef)(
|
|
|
9879
10019
|
}
|
|
9880
10020
|
)
|
|
9881
10021
|
] }),
|
|
9882
|
-
/* @__PURE__ */ (0,
|
|
10022
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9883
10023
|
Text_default,
|
|
9884
10024
|
{
|
|
9885
10025
|
size: "sm",
|
|
@@ -9916,14 +10056,14 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
9916
10056
|
}
|
|
9917
10057
|
};
|
|
9918
10058
|
var CardSimulationHistory = (0, import_react33.forwardRef)(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
9919
|
-
return /* @__PURE__ */ (0,
|
|
10059
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9920
10060
|
"div",
|
|
9921
10061
|
{
|
|
9922
10062
|
ref,
|
|
9923
10063
|
className: cn("w-full max-w-[992px] h-auto", className),
|
|
9924
10064
|
...props,
|
|
9925
|
-
children: /* @__PURE__ */ (0,
|
|
9926
|
-
data.map((section, sectionIndex) => /* @__PURE__ */ (0,
|
|
10065
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-0", children: [
|
|
10066
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
9927
10067
|
"div",
|
|
9928
10068
|
{
|
|
9929
10069
|
className: cn(
|
|
@@ -9931,7 +10071,7 @@ var CardSimulationHistory = (0, import_react33.forwardRef)(({ data, onSimulation
|
|
|
9931
10071
|
sectionIndex === 0 ? "rounded-t-3xl" : ""
|
|
9932
10072
|
),
|
|
9933
10073
|
children: [
|
|
9934
|
-
/* @__PURE__ */ (0,
|
|
10074
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9935
10075
|
Text_default,
|
|
9936
10076
|
{
|
|
9937
10077
|
size: "xs",
|
|
@@ -9940,9 +10080,9 @@ var CardSimulationHistory = (0, import_react33.forwardRef)(({ data, onSimulation
|
|
|
9940
10080
|
children: section.date
|
|
9941
10081
|
}
|
|
9942
10082
|
),
|
|
9943
|
-
/* @__PURE__ */ (0,
|
|
10083
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
9944
10084
|
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
9945
|
-
return /* @__PURE__ */ (0,
|
|
10085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9946
10086
|
CardBase,
|
|
9947
10087
|
{
|
|
9948
10088
|
layout: "horizontal",
|
|
@@ -9954,9 +10094,9 @@ var CardSimulationHistory = (0, import_react33.forwardRef)(({ data, onSimulation
|
|
|
9954
10094
|
transition-shadow duration-200 h-auto min-h-[61px]`
|
|
9955
10095
|
),
|
|
9956
10096
|
onClick: () => onSimulationClick?.(simulation),
|
|
9957
|
-
children: /* @__PURE__ */ (0,
|
|
9958
|
-
/* @__PURE__ */ (0,
|
|
9959
|
-
/* @__PURE__ */ (0,
|
|
10097
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
10098
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-wrap flex-col justify-between sm:flex-row gap-2 flex-1 min-w-0", children: [
|
|
10099
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9960
10100
|
Text_default,
|
|
9961
10101
|
{
|
|
9962
10102
|
size: "lg",
|
|
@@ -9965,8 +10105,8 @@ var CardSimulationHistory = (0, import_react33.forwardRef)(({ data, onSimulation
|
|
|
9965
10105
|
children: simulation.title
|
|
9966
10106
|
}
|
|
9967
10107
|
),
|
|
9968
|
-
/* @__PURE__ */ (0,
|
|
9969
|
-
/* @__PURE__ */ (0,
|
|
10108
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
10109
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9970
10110
|
Badge_default,
|
|
9971
10111
|
{
|
|
9972
10112
|
variant: "examsOutlined",
|
|
@@ -9975,10 +10115,10 @@ var CardSimulationHistory = (0, import_react33.forwardRef)(({ data, onSimulation
|
|
|
9975
10115
|
children: typeStyles.text
|
|
9976
10116
|
}
|
|
9977
10117
|
),
|
|
9978
|
-
/* @__PURE__ */ (0,
|
|
10118
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
9979
10119
|
] })
|
|
9980
10120
|
] }),
|
|
9981
|
-
/* @__PURE__ */ (0,
|
|
10121
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
9982
10122
|
import_phosphor_react22.CaretRight,
|
|
9983
10123
|
{
|
|
9984
10124
|
size: 24,
|
|
@@ -9994,7 +10134,7 @@ var CardSimulationHistory = (0, import_react33.forwardRef)(({ data, onSimulation
|
|
|
9994
10134
|
]
|
|
9995
10135
|
}
|
|
9996
10136
|
) }, section.date)),
|
|
9997
|
-
data.length > 0 && /* @__PURE__ */ (0,
|
|
10137
|
+
data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "w-full h-6 bg-background rounded-b-3xl" })
|
|
9998
10138
|
] })
|
|
9999
10139
|
}
|
|
10000
10140
|
);
|
|
@@ -10002,7 +10142,7 @@ var CardSimulationHistory = (0, import_react33.forwardRef)(({ data, onSimulation
|
|
|
10002
10142
|
|
|
10003
10143
|
// src/components/StatisticsCard/StatisticsCard.tsx
|
|
10004
10144
|
var import_phosphor_react23 = require("phosphor-react");
|
|
10005
|
-
var
|
|
10145
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
10006
10146
|
var VARIANT_STYLES = {
|
|
10007
10147
|
high: "bg-success-background",
|
|
10008
10148
|
medium: "bg-warning-background",
|
|
@@ -10016,12 +10156,12 @@ var VALUE_TEXT_COLORS = {
|
|
|
10016
10156
|
total: "text-info-700"
|
|
10017
10157
|
};
|
|
10018
10158
|
var StatCard = ({ item, showPlaceholder = false }) => {
|
|
10019
|
-
return /* @__PURE__ */ (0,
|
|
10159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
10020
10160
|
"div",
|
|
10021
10161
|
{
|
|
10022
10162
|
className: `rounded-xl py-[17px] px-6 min-h-[105px] flex flex-col justify-center items-start gap-1 ${VARIANT_STYLES[item.variant]}`,
|
|
10023
10163
|
children: [
|
|
10024
|
-
/* @__PURE__ */ (0,
|
|
10164
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10025
10165
|
Text_default,
|
|
10026
10166
|
{
|
|
10027
10167
|
size: "4xl",
|
|
@@ -10030,7 +10170,7 @@ var StatCard = ({ item, showPlaceholder = false }) => {
|
|
|
10030
10170
|
children: showPlaceholder ? "-" : item.value
|
|
10031
10171
|
}
|
|
10032
10172
|
),
|
|
10033
|
-
/* @__PURE__ */ (0,
|
|
10173
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10034
10174
|
Text_default,
|
|
10035
10175
|
{
|
|
10036
10176
|
size: "xs",
|
|
@@ -10065,13 +10205,13 @@ var StatisticsCard = ({
|
|
|
10065
10205
|
}) => {
|
|
10066
10206
|
const hasData = data && data.length > 0;
|
|
10067
10207
|
const gridColumnsClass = hasData ? getGridColumnsClass(data.length) : "";
|
|
10068
|
-
return /* @__PURE__ */ (0,
|
|
10208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
10069
10209
|
"div",
|
|
10070
10210
|
{
|
|
10071
10211
|
className: `bg-background rounded-xl p-4 h-auto lg:h-[185px] flex flex-col gap-2 ${className}`,
|
|
10072
10212
|
children: [
|
|
10073
|
-
/* @__PURE__ */ (0,
|
|
10074
|
-
/* @__PURE__ */ (0,
|
|
10213
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex flex-row justify-between items-center gap-4", children: [
|
|
10214
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10075
10215
|
Text_default,
|
|
10076
10216
|
{
|
|
10077
10217
|
as: "h3",
|
|
@@ -10082,22 +10222,22 @@ var StatisticsCard = ({
|
|
|
10082
10222
|
children: title
|
|
10083
10223
|
}
|
|
10084
10224
|
),
|
|
10085
|
-
dropdownOptions && dropdownOptions.length > 0 && /* @__PURE__ */ (0,
|
|
10225
|
+
dropdownOptions && dropdownOptions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "w-[120px] min-w-[90px] sm:shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
10086
10226
|
Select_default,
|
|
10087
10227
|
{
|
|
10088
10228
|
value: selectedDropdownValue,
|
|
10089
10229
|
onValueChange: onDropdownChange,
|
|
10090
10230
|
size: "medium",
|
|
10091
10231
|
children: [
|
|
10092
|
-
/* @__PURE__ */ (0,
|
|
10232
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10093
10233
|
SelectTrigger,
|
|
10094
10234
|
{
|
|
10095
10235
|
className: "border border-border-300 rounded [&>span]:whitespace-nowrap [&>span]:overflow-hidden [&>span]:text-ellipsis",
|
|
10096
10236
|
"aria-label": dropdownAriaLabel,
|
|
10097
|
-
children: /* @__PURE__ */ (0,
|
|
10237
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectValue, { placeholder: selectPlaceholder })
|
|
10098
10238
|
}
|
|
10099
10239
|
),
|
|
10100
|
-
/* @__PURE__ */ (0,
|
|
10240
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectContent, { className: "min-w-[120px]", children: dropdownOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10101
10241
|
SelectItem,
|
|
10102
10242
|
{
|
|
10103
10243
|
value: option.value,
|
|
@@ -10110,11 +10250,11 @@ var StatisticsCard = ({
|
|
|
10110
10250
|
}
|
|
10111
10251
|
) })
|
|
10112
10252
|
] }),
|
|
10113
|
-
hasData ? /* @__PURE__ */ (0,
|
|
10253
|
+
hasData ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10114
10254
|
"div",
|
|
10115
10255
|
{
|
|
10116
10256
|
className: `grid grid-cols-1 sm:grid-cols-2 gap-[13px] ${gridColumnsClass}`,
|
|
10117
|
-
children: data.map((item, index) => /* @__PURE__ */ (0,
|
|
10257
|
+
children: data.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10118
10258
|
StatCard,
|
|
10119
10259
|
{
|
|
10120
10260
|
item,
|
|
@@ -10123,8 +10263,8 @@ var StatisticsCard = ({
|
|
|
10123
10263
|
`${item.variant}-${item.label}-${index}`
|
|
10124
10264
|
))
|
|
10125
10265
|
}
|
|
10126
|
-
) : /* @__PURE__ */ (0,
|
|
10127
|
-
/* @__PURE__ */ (0,
|
|
10266
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("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: [
|
|
10267
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10128
10268
|
Text_default,
|
|
10129
10269
|
{
|
|
10130
10270
|
size: "sm",
|
|
@@ -10133,14 +10273,14 @@ var StatisticsCard = ({
|
|
|
10133
10273
|
children: emptyStateMessage
|
|
10134
10274
|
}
|
|
10135
10275
|
),
|
|
10136
|
-
onEmptyStateButtonClick && /* @__PURE__ */ (0,
|
|
10276
|
+
onEmptyStateButtonClick && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10137
10277
|
Button_default,
|
|
10138
10278
|
{
|
|
10139
10279
|
variant: "outline",
|
|
10140
10280
|
action: "primary",
|
|
10141
10281
|
size: "small",
|
|
10142
10282
|
onClick: onEmptyStateButtonClick,
|
|
10143
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
10283
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_phosphor_react23.Plus, { size: 16, weight: "bold" }),
|
|
10144
10284
|
children: emptyStateButtonText
|
|
10145
10285
|
}
|
|
10146
10286
|
)
|
|
@@ -10151,7 +10291,7 @@ var StatisticsCard = ({
|
|
|
10151
10291
|
};
|
|
10152
10292
|
|
|
10153
10293
|
// src/components/NotFound/NotFound.tsx
|
|
10154
|
-
var
|
|
10294
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
10155
10295
|
var NotFound = ({
|
|
10156
10296
|
title,
|
|
10157
10297
|
description,
|
|
@@ -10194,22 +10334,22 @@ var NotFound = ({
|
|
|
10194
10334
|
const errorTitle = title || getDefaultTitle();
|
|
10195
10335
|
const errorDescription = description || getDefaultDescription();
|
|
10196
10336
|
const errorCode = getErrorCode();
|
|
10197
|
-
return /* @__PURE__ */ (0,
|
|
10337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10198
10338
|
"div",
|
|
10199
10339
|
{
|
|
10200
10340
|
className: cn(
|
|
10201
10341
|
"flex flex-col w-full h-screen items-center justify-center bg-background-50 px-4",
|
|
10202
10342
|
className
|
|
10203
10343
|
),
|
|
10204
|
-
children: /* @__PURE__ */ (0,
|
|
10344
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10205
10345
|
"main",
|
|
10206
10346
|
{
|
|
10207
10347
|
role: "main",
|
|
10208
10348
|
"aria-labelledby": "error-title",
|
|
10209
10349
|
"aria-describedby": "error-description",
|
|
10210
10350
|
className: "flex flex-col items-center text-center max-w-md space-y-6",
|
|
10211
|
-
children: /* @__PURE__ */ (0,
|
|
10212
|
-
/* @__PURE__ */ (0,
|
|
10351
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("section", { "aria-label": `Erro ${errorCode}`, children: [
|
|
10352
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10213
10353
|
"div",
|
|
10214
10354
|
{
|
|
10215
10355
|
className: "text-8xl font-bold text-primary-300 select-none",
|
|
@@ -10217,8 +10357,8 @@ var NotFound = ({
|
|
|
10217
10357
|
children: errorCode
|
|
10218
10358
|
}
|
|
10219
10359
|
),
|
|
10220
|
-
/* @__PURE__ */ (0,
|
|
10221
|
-
/* @__PURE__ */ (0,
|
|
10360
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("header", { className: "space-y-2", children: [
|
|
10361
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10222
10362
|
Text_default,
|
|
10223
10363
|
{
|
|
10224
10364
|
size: "xl",
|
|
@@ -10229,9 +10369,9 @@ var NotFound = ({
|
|
|
10229
10369
|
children: errorTitle
|
|
10230
10370
|
}
|
|
10231
10371
|
),
|
|
10232
|
-
/* @__PURE__ */ (0,
|
|
10372
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Text_default, { size: "md", className: "text-text-600", id: "error-description", children: errorDescription })
|
|
10233
10373
|
] }),
|
|
10234
|
-
onButtonClick && /* @__PURE__ */ (0,
|
|
10374
|
+
onButtonClick && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("nav", { "aria-label": "Navega\xE7\xE3o de erro", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10235
10375
|
Button_default,
|
|
10236
10376
|
{
|
|
10237
10377
|
onClick: handleButtonClick,
|
|
@@ -10251,35 +10391,6 @@ var NotFound = ({
|
|
|
10251
10391
|
};
|
|
10252
10392
|
var NotFound_default = NotFound;
|
|
10253
10393
|
|
|
10254
|
-
// src/components/NoSearchResult/NoSearchResult.tsx
|
|
10255
|
-
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
10256
|
-
var NoSearchResult = ({ image, title, description }) => {
|
|
10257
|
-
const displayTitle = title || "Nenhum resultado encontrado";
|
|
10258
|
-
const displayDescription = description || "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave.";
|
|
10259
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-row justify-center items-center gap-8 w-full max-w-4xl min-h-96", children: [
|
|
10260
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "w-72 h-72 flex-shrink-0 relative", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10261
|
-
"img",
|
|
10262
|
-
{
|
|
10263
|
-
src: image,
|
|
10264
|
-
alt: "No search results",
|
|
10265
|
-
className: "w-full h-full object-contain"
|
|
10266
|
-
}
|
|
10267
|
-
) }),
|
|
10268
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col items-start w-full max-w-md", children: [
|
|
10269
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex flex-row justify-between items-end px-6 pt-6 pb-4 w-full rounded-t-xl", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10270
|
-
Text_default,
|
|
10271
|
-
{
|
|
10272
|
-
as: "h2",
|
|
10273
|
-
className: "text-text-950 font-semibold text-3xl leading-tight w-full flex items-center",
|
|
10274
|
-
children: displayTitle
|
|
10275
|
-
}
|
|
10276
|
-
) }),
|
|
10277
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex flex-row justify-center items-center px-6 gap-2 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Text_default, { className: "text-text-600 font-normal text-lg leading-relaxed w-full text-justify", children: displayDescription }) })
|
|
10278
|
-
] })
|
|
10279
|
-
] });
|
|
10280
|
-
};
|
|
10281
|
-
var NoSearchResult_default = NoSearchResult;
|
|
10282
|
-
|
|
10283
10394
|
// src/components/VideoPlayer/VideoPlayer.tsx
|
|
10284
10395
|
var import_react35 = require("react");
|
|
10285
10396
|
var import_react_dom = require("react-dom");
|