elseware-ui 3.5.0 → 3.6.0
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/LICENSE +20 -20
- package/dist/components/data-display/lists/ListItem.d.ts.map +1 -1
- package/dist/components/data-display/rating/star-rating/StarRating.d.ts.map +1 -1
- package/dist/components/data-entry/image-input/web/ImageInput.web.d.ts.map +1 -1
- package/dist/components/data-entry/multi-image-input/web/MultiImageInput.web.d.ts.map +1 -1
- package/dist/components/data-entry/rating/StarRatingInput.d.ts.map +1 -1
- package/dist/components/navigation/drawer/DrawerToggler.d.ts.map +1 -1
- package/dist/components/navigation/header-nav/HeaderNavGroup.d.ts.map +1 -1
- package/dist/components/navigation/menu/components/MenuGroup.d.ts.map +1 -1
- package/dist/components/surfaces/accordion/Accordion.d.ts.map +1 -1
- package/dist/components/theme/ThemeSwitch.d.ts.map +1 -1
- package/dist/compositions/comment-thread/components/CommentRepliesToggle.d.ts.map +1 -1
- package/dist/compositions/comment-thread/components/renderers/CommentActions.d.ts.map +1 -1
- package/dist/compositions/comment-thread/components/renderers/CommentMenu.d.ts.map +1 -1
- package/dist/compositions/data-display/system-health-status/SystemHealthStatus.utils.d.ts.map +1 -1
- package/dist/compositions/data-display/system-health-status/types.d.ts +3 -3
- package/dist/compositions/data-display/system-health-status/types.d.ts.map +1 -1
- package/dist/compositions/navigation/top-nav/components/TNDropdownGroup.d.ts.map +1 -1
- package/dist/compositions/review-thread/components/renderers/ReviewActions.d.ts.map +1 -1
- package/dist/compositions/review-thread/components/renderers/ReviewMenu.d.ts.map +1 -1
- package/dist/compositions/review-thread/components/renderers/ReviewReplyMenu.d.ts.map +1 -1
- package/dist/index.css +0 -6
- package/dist/index.css.map +1 -1
- package/dist/index.mjs +74 -74
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -2
package/dist/index.mjs
CHANGED
|
@@ -3,23 +3,17 @@ import { twMerge } from 'tailwind-merge';
|
|
|
3
3
|
import React2, { createContext, forwardRef, useRef, useState, useImperativeHandle, useEffect, useMemo, useContext, useCallback, Children, useId, createElement, isValidElement } from 'react';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import { ResponsiveContainer, LineChart, CartesianGrid, XAxis, YAxis, Tooltip, Line, AreaChart, Area, BarChart, Bar, PieChart, Pie, Cell, ScatterChart, Scatter } from 'recharts';
|
|
6
|
+
import { LoadingIcon, UploadIcon, CheckIcon, RemoveCircleIcon, CircleChevronDownIcon, StarIcon, StarHalfIcon, SunIcon, MoonIcon, DragHandleIcon, DeleteIcon, PlusIcon, ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon, CloseIcon, MenuIcon, WarningIcon, ActivityIcon, CheckCircleIcon, ServerIcon, DatabaseIcon, ClockIcon, RefreshIcon, DiamondIcon, CircleIcon, EyeOffIcon, EyeIcon, ChevronUpIcon, LikeIcon, DislikeIcon, MoreVerticalIcon, ReplyIcon, EditIcon, FlagIcon } from 'elseware-icons';
|
|
6
7
|
import classNames64 from 'classnames';
|
|
7
|
-
import { FaCircleChevronDown } from 'react-icons/fa6/index.js';
|
|
8
8
|
import ReactWorldFlags from 'react-world-flags';
|
|
9
9
|
import emojiFlags from 'emoji-flags';
|
|
10
10
|
import * as d3 from 'd3';
|
|
11
11
|
import { geoEqualEarth, geoPath } from 'd3';
|
|
12
|
-
import { BsStarFill, BsStarHalf, BsStar, BsChevronDown, BsFillDiamondFill } from 'react-icons/bs/index.js';
|
|
13
|
-
import { FaSun, FaMoon, FaGripVertical, FaTrash, FaPlus, FaTimes, FaBars, FaCircle, FaEyeSlash, FaEye } from 'react-icons/fa/index.js';
|
|
14
12
|
import { useField, ErrorMessage, Formik, Form as Form$1, Field, useFormikContext, FieldArray } from 'formik';
|
|
15
13
|
import { motion, AnimatePresence } from 'framer-motion';
|
|
16
14
|
import { feature } from 'topojson-client';
|
|
17
|
-
import { AiOutlineLoading } from 'react-icons/ai/index.js';
|
|
18
15
|
import { DragDropContext, Droppable, Draggable } from '@hello-pangea/dnd';
|
|
19
|
-
import { MdUpload, MdOutlineDone, MdOutlineRemoveCircleOutline, MdDragIndicator, MdKeyboardArrowLeft, MdKeyboardArrowRight, MdOutlineDelete } from 'react-icons/md/index.js';
|
|
20
16
|
import { createPortal } from 'react-dom';
|
|
21
|
-
import { BiChevronDown, BiChevronUp, BiSolidLike, BiLike, BiSolidDislike, BiDislike, BiDotsVerticalRounded, BiReply, BiEdit, BiTrash, BiFlag } from 'react-icons/bi/index.js';
|
|
22
|
-
import { FiAlertTriangle, FiActivity, FiCheckCircle, FiServer, FiDatabase, FiClock, FiRefreshCw } from 'react-icons/fi/index.js';
|
|
23
17
|
import CodeMirror from '@uiw/react-codemirror';
|
|
24
18
|
import { markdown } from '@codemirror/lang-markdown';
|
|
25
19
|
import { oneDark } from '@codemirror/theme-one-dark';
|
|
@@ -3322,7 +3316,7 @@ function Accordion({
|
|
|
3322
3316
|
onClick: toggleOnSummaryClick ? void 0 : handleToggle,
|
|
3323
3317
|
className: "hover:cursor-pointer",
|
|
3324
3318
|
children: /* @__PURE__ */ jsx(
|
|
3325
|
-
|
|
3319
|
+
CircleChevronDownIcon,
|
|
3326
3320
|
{
|
|
3327
3321
|
className: classNames64("text-xl transition-transform duration-300", {
|
|
3328
3322
|
"rotate-180": collapse
|
|
@@ -4628,8 +4622,8 @@ function ListItemElement({
|
|
|
4628
4622
|
);
|
|
4629
4623
|
}
|
|
4630
4624
|
var bulletTypes = {
|
|
4631
|
-
["dot" /* dot */]: /* @__PURE__ */ jsx(
|
|
4632
|
-
["diamond" /* diamond */]: /* @__PURE__ */ jsx(
|
|
4625
|
+
["dot" /* dot */]: /* @__PURE__ */ jsx(CircleIcon, { appearance: "solid", size: 6 }),
|
|
4626
|
+
["diamond" /* diamond */]: /* @__PURE__ */ jsx(DiamondIcon, { appearance: "solid", size: 8 }),
|
|
4633
4627
|
["number" /* number */]: null,
|
|
4634
4628
|
["none" /* none */]: null
|
|
4635
4629
|
};
|
|
@@ -5107,11 +5101,11 @@ var ProgressBar = ({
|
|
|
5107
5101
|
] });
|
|
5108
5102
|
};
|
|
5109
5103
|
var sizes = {
|
|
5110
|
-
["xs" /* xs */]:
|
|
5111
|
-
["sm" /* sm */]:
|
|
5112
|
-
["md" /* md */]:
|
|
5113
|
-
["lg" /* lg */]:
|
|
5114
|
-
["xl" /* xl */]:
|
|
5104
|
+
["xs" /* xs */]: 10,
|
|
5105
|
+
["sm" /* sm */]: 12,
|
|
5106
|
+
["md" /* md */]: 14,
|
|
5107
|
+
["lg" /* lg */]: 16,
|
|
5108
|
+
["xl" /* xl */]: 18
|
|
5115
5109
|
};
|
|
5116
5110
|
var StarRating = ({
|
|
5117
5111
|
rating,
|
|
@@ -5136,13 +5130,19 @@ var StarRating = ({
|
|
|
5136
5130
|
className: cn(
|
|
5137
5131
|
"inline-flex items-center gap-[2px]",
|
|
5138
5132
|
"text-yellow-500 dark:text-yellow-400",
|
|
5139
|
-
sizes[size],
|
|
5140
5133
|
iconClassName
|
|
5141
5134
|
),
|
|
5142
5135
|
children: [
|
|
5143
|
-
[...Array(fullStars)].map((_, index) => /* @__PURE__ */ jsx(
|
|
5144
|
-
hasHalfStar && /* @__PURE__ */ jsx(
|
|
5145
|
-
[...Array(emptyStars)].map((_, index) => /* @__PURE__ */ jsx(
|
|
5136
|
+
[...Array(fullStars)].map((_, index) => /* @__PURE__ */ jsx(StarIcon, { appearance: "solid", size: sizes[size] }, index)),
|
|
5137
|
+
hasHalfStar && /* @__PURE__ */ jsx(StarHalfIcon, { appearance: "solid", size: sizes[size] }),
|
|
5138
|
+
[...Array(emptyStars)].map((_, index) => /* @__PURE__ */ jsx(
|
|
5139
|
+
StarIcon,
|
|
5140
|
+
{
|
|
5141
|
+
size: sizes[size],
|
|
5142
|
+
className: "opacity-40"
|
|
5143
|
+
},
|
|
5144
|
+
index + fullStars
|
|
5145
|
+
))
|
|
5146
5146
|
]
|
|
5147
5147
|
}
|
|
5148
5148
|
),
|
|
@@ -6610,14 +6610,14 @@ var ThemeSwitch = () => {
|
|
|
6610
6610
|
className: "relative w-16 h-8 flex items-center bg-gray-300 dark:bg-gray-800 rounded-full p-1 transition-all",
|
|
6611
6611
|
children: [
|
|
6612
6612
|
/* @__PURE__ */ jsx(
|
|
6613
|
-
|
|
6613
|
+
SunIcon,
|
|
6614
6614
|
{
|
|
6615
6615
|
className: "absolute left-2 text-yellow-500 transition-opacity duration-300 z-10",
|
|
6616
6616
|
style: { opacity: theme === "dark" ? 0 : 1 }
|
|
6617
6617
|
}
|
|
6618
6618
|
),
|
|
6619
6619
|
/* @__PURE__ */ jsx(
|
|
6620
|
-
|
|
6620
|
+
MoonIcon,
|
|
6621
6621
|
{
|
|
6622
6622
|
className: "absolute right-2 text-blue-400 transition-opacity duration-300 z-10",
|
|
6623
6623
|
style: { opacity: theme === "dark" ? 1 : 0 }
|
|
@@ -18370,7 +18370,7 @@ var Button = forwardRef(
|
|
|
18370
18370
|
if (!e.defaultPrevented) model.onPress?.();
|
|
18371
18371
|
};
|
|
18372
18372
|
const iconGroup = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18373
|
-
model.loading && /* @__PURE__ */ jsx(
|
|
18373
|
+
model.loading && /* @__PURE__ */ jsx(LoadingIcon, { className: "animate-spin z-10" }),
|
|
18374
18374
|
model.icon && /* @__PURE__ */ jsx(
|
|
18375
18375
|
"span",
|
|
18376
18376
|
{
|
|
@@ -18621,7 +18621,7 @@ function PasswordVisibilityToggler({
|
|
|
18621
18621
|
{
|
|
18622
18622
|
className: webPasswordToggleClassName,
|
|
18623
18623
|
onClick: () => onToggle(!passwordVisible),
|
|
18624
|
-
children: passwordVisible ? /* @__PURE__ */ jsx(
|
|
18624
|
+
children: passwordVisible ? /* @__PURE__ */ jsx(EyeOffIcon, {}) : /* @__PURE__ */ jsx(EyeIcon, {})
|
|
18625
18625
|
}
|
|
18626
18626
|
);
|
|
18627
18627
|
}
|
|
@@ -19018,7 +19018,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
19018
19018
|
shapes[resolvedShape]
|
|
19019
19019
|
),
|
|
19020
19020
|
children: [
|
|
19021
|
-
/* @__PURE__ */ jsx("div", { ...provided2.dragHandleProps, children: /* @__PURE__ */ jsx(
|
|
19021
|
+
/* @__PURE__ */ jsx("div", { ...provided2.dragHandleProps, children: /* @__PURE__ */ jsx(DragHandleIcon, { className: "cursor-grab text-gray-500" }) }),
|
|
19022
19022
|
/* @__PURE__ */ jsx(
|
|
19023
19023
|
Field,
|
|
19024
19024
|
{
|
|
@@ -19037,7 +19037,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
19037
19037
|
type: "button",
|
|
19038
19038
|
onClick: () => remove(index),
|
|
19039
19039
|
className: "text-red-500",
|
|
19040
|
-
children: /* @__PURE__ */ jsx(
|
|
19040
|
+
children: /* @__PURE__ */ jsx(DeleteIcon, {})
|
|
19041
19041
|
}
|
|
19042
19042
|
)
|
|
19043
19043
|
]
|
|
@@ -19058,7 +19058,7 @@ var InputList = ({ name, placeholder, shape }) => {
|
|
|
19058
19058
|
onClick: () => push(""),
|
|
19059
19059
|
className: "flex h-fit w-fit items-center space-x-2 px-2 pb-2 text-green-600",
|
|
19060
19060
|
children: [
|
|
19061
|
-
/* @__PURE__ */ jsx(
|
|
19061
|
+
/* @__PURE__ */ jsx(PlusIcon, {}),
|
|
19062
19062
|
/* @__PURE__ */ jsx("span", { children: "Add Item" })
|
|
19063
19063
|
]
|
|
19064
19064
|
}
|
|
@@ -19126,7 +19126,7 @@ var InputListGroup = ({
|
|
|
19126
19126
|
),
|
|
19127
19127
|
children: [
|
|
19128
19128
|
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-2", children: [
|
|
19129
|
-
/* @__PURE__ */ jsx(
|
|
19129
|
+
/* @__PURE__ */ jsx(DragHandleIcon, { className: "cursor-grab text-gray-500" }),
|
|
19130
19130
|
/* @__PURE__ */ jsx(
|
|
19131
19131
|
Field,
|
|
19132
19132
|
{
|
|
@@ -19145,7 +19145,7 @@ var InputListGroup = ({
|
|
|
19145
19145
|
type: "button",
|
|
19146
19146
|
onClick: () => remove(groupIndex),
|
|
19147
19147
|
className: "text-red-500",
|
|
19148
|
-
children: /* @__PURE__ */ jsx(
|
|
19148
|
+
children: /* @__PURE__ */ jsx(DeleteIcon, {})
|
|
19149
19149
|
}
|
|
19150
19150
|
)
|
|
19151
19151
|
] }),
|
|
@@ -19188,7 +19188,7 @@ var InputListGroup = ({
|
|
|
19188
19188
|
shapes[resolvedShape]
|
|
19189
19189
|
),
|
|
19190
19190
|
children: [
|
|
19191
|
-
/* @__PURE__ */ jsx("div", { ...provided2.dragHandleProps, children: /* @__PURE__ */ jsx(
|
|
19191
|
+
/* @__PURE__ */ jsx("div", { ...provided2.dragHandleProps, children: /* @__PURE__ */ jsx(DragHandleIcon, { className: "cursor-grab text-gray-500" }) }),
|
|
19192
19192
|
/* @__PURE__ */ jsx(
|
|
19193
19193
|
Field,
|
|
19194
19194
|
{
|
|
@@ -19207,7 +19207,7 @@ var InputListGroup = ({
|
|
|
19207
19207
|
type: "button",
|
|
19208
19208
|
onClick: () => removeItem(itemIndex),
|
|
19209
19209
|
className: "text-gray-500",
|
|
19210
|
-
children: /* @__PURE__ */ jsx(
|
|
19210
|
+
children: /* @__PURE__ */ jsx(DeleteIcon, {})
|
|
19211
19211
|
}
|
|
19212
19212
|
)
|
|
19213
19213
|
]
|
|
@@ -19225,7 +19225,7 @@ var InputListGroup = ({
|
|
|
19225
19225
|
onClick: () => pushItem(""),
|
|
19226
19226
|
className: "flex w-fit items-center space-x-2 px-2 text-green-800",
|
|
19227
19227
|
children: [
|
|
19228
|
-
/* @__PURE__ */ jsx(
|
|
19228
|
+
/* @__PURE__ */ jsx(PlusIcon, {}),
|
|
19229
19229
|
/* @__PURE__ */ jsx("span", { children: "Add Item" })
|
|
19230
19230
|
]
|
|
19231
19231
|
}
|
|
@@ -19247,7 +19247,7 @@ var InputListGroup = ({
|
|
|
19247
19247
|
onClick: () => push({ name: "", items: [] }),
|
|
19248
19248
|
className: "flex w-fit items-center space-x-2 px-2 text-green-600",
|
|
19249
19249
|
children: [
|
|
19250
|
-
/* @__PURE__ */ jsx(
|
|
19250
|
+
/* @__PURE__ */ jsx(PlusIcon, {}),
|
|
19251
19251
|
/* @__PURE__ */ jsx("span", { children: "Add New Group" })
|
|
19252
19252
|
]
|
|
19253
19253
|
}
|
|
@@ -19736,7 +19736,7 @@ var ImageInput = forwardRef(
|
|
|
19736
19736
|
}),
|
|
19737
19737
|
htmlFor: `${field.name}`,
|
|
19738
19738
|
children: [
|
|
19739
|
-
/* @__PURE__ */ jsx("div", { className: "text-4xl text-gray-300 group-hover:text-gray-400", children: /* @__PURE__ */ jsx(
|
|
19739
|
+
/* @__PURE__ */ jsx("div", { className: "text-4xl text-gray-300 group-hover:text-gray-400", children: /* @__PURE__ */ jsx(UploadIcon, {}) }),
|
|
19740
19740
|
/* @__PURE__ */ jsx("div", { className: "text-xl font-bold text-gray-500 group-hover:text-gray-500", children: title })
|
|
19741
19741
|
]
|
|
19742
19742
|
}
|
|
@@ -19752,7 +19752,7 @@ var ImageInput = forwardRef(
|
|
|
19752
19752
|
) }),
|
|
19753
19753
|
loading && /* @__PURE__ */ jsxs("div", { className: "absolute", children: [
|
|
19754
19754
|
/* @__PURE__ */ jsx("div", { className: "h-[200px] w-[300px] bg-black opacity-50" }),
|
|
19755
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
19755
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx(LoadingIcon, { className: "animate-spin" }) })
|
|
19756
19756
|
] }),
|
|
19757
19757
|
!loading && url && /* @__PURE__ */ jsx(ImageView, { imageUrl: url, alt: url ? url : "image" }),
|
|
19758
19758
|
(preview || url) && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1 text-3xl", children: [
|
|
@@ -19762,7 +19762,7 @@ var ImageInput = forwardRef(
|
|
|
19762
19762
|
className: " text-green-600 hover:cursor-pointer",
|
|
19763
19763
|
onClick: uploadImage,
|
|
19764
19764
|
hidden: url ? true : false,
|
|
19765
|
-
children: /* @__PURE__ */ jsx(
|
|
19765
|
+
children: /* @__PURE__ */ jsx(CheckIcon, {})
|
|
19766
19766
|
}
|
|
19767
19767
|
),
|
|
19768
19768
|
/* @__PURE__ */ jsx(
|
|
@@ -19770,7 +19770,7 @@ var ImageInput = forwardRef(
|
|
|
19770
19770
|
{
|
|
19771
19771
|
className: "text-red-500 hover:cursor-pointer",
|
|
19772
19772
|
onClick: handleResetClick,
|
|
19773
|
-
children: /* @__PURE__ */ jsx(
|
|
19773
|
+
children: /* @__PURE__ */ jsx(RemoveCircleIcon, {})
|
|
19774
19774
|
}
|
|
19775
19775
|
)
|
|
19776
19776
|
] })
|
|
@@ -19926,7 +19926,7 @@ function MultiImageInput({
|
|
|
19926
19926
|
children: [
|
|
19927
19927
|
/* @__PURE__ */ jsx(ImageView, { imageUrl: url }),
|
|
19928
19928
|
/* @__PURE__ */ jsxs("div", { className: "absolute left-2 top-2 inline-flex items-center gap-1 rounded bg-black/60 px-2 py-1 text-xs text-white", children: [
|
|
19929
|
-
/* @__PURE__ */ jsx(
|
|
19929
|
+
/* @__PURE__ */ jsx(DragHandleIcon, {}),
|
|
19930
19930
|
index + 1
|
|
19931
19931
|
] }),
|
|
19932
19932
|
/* @__PURE__ */ jsxs("div", { className: "absolute right-2 top-2 flex gap-1", children: [
|
|
@@ -19937,7 +19937,7 @@ function MultiImageInput({
|
|
|
19937
19937
|
accessibilityLabel: "Move image left",
|
|
19938
19938
|
disabled: index === 0 || isOrganizerBusy,
|
|
19939
19939
|
glow: false,
|
|
19940
|
-
icon: /* @__PURE__ */ jsx(
|
|
19940
|
+
icon: /* @__PURE__ */ jsx(ChevronLeftIcon, {}),
|
|
19941
19941
|
onPress: () => moveImage(index, index - 1),
|
|
19942
19942
|
size: "xs",
|
|
19943
19943
|
className: "h-8 w-8 bg-black/60 p-0 text-xl text-white hover:bg-black/80 disabled:opacity-40"
|
|
@@ -19950,7 +19950,7 @@ function MultiImageInput({
|
|
|
19950
19950
|
accessibilityLabel: "Move image right",
|
|
19951
19951
|
disabled: index === imageUrls.length - 1 || isOrganizerBusy,
|
|
19952
19952
|
glow: false,
|
|
19953
|
-
icon: /* @__PURE__ */ jsx(
|
|
19953
|
+
icon: /* @__PURE__ */ jsx(ChevronRightIcon, {}),
|
|
19954
19954
|
onPress: () => moveImage(index, index + 1),
|
|
19955
19955
|
size: "xs",
|
|
19956
19956
|
className: "h-8 w-8 bg-black/60 p-0 text-xl text-white hover:bg-black/80 disabled:opacity-40"
|
|
@@ -19980,7 +19980,7 @@ function MultiImageInput({
|
|
|
19980
19980
|
accessibilityLabel: "Change image",
|
|
19981
19981
|
disabled: isOrganizerBusy,
|
|
19982
19982
|
glow: false,
|
|
19983
|
-
icon: /* @__PURE__ */ jsx(
|
|
19983
|
+
icon: /* @__PURE__ */ jsx(UploadIcon, {}),
|
|
19984
19984
|
onPress: () => openReplacePicker(index),
|
|
19985
19985
|
size: "sm",
|
|
19986
19986
|
text: "Change",
|
|
@@ -19995,14 +19995,14 @@ function MultiImageInput({
|
|
|
19995
19995
|
accessibilityLabel: "Delete image",
|
|
19996
19996
|
disabled: isOrganizerBusy,
|
|
19997
19997
|
glow: false,
|
|
19998
|
-
icon: /* @__PURE__ */ jsx(
|
|
19998
|
+
icon: /* @__PURE__ */ jsx(DeleteIcon, {}),
|
|
19999
19999
|
onPress: () => removeImage(index),
|
|
20000
20000
|
size: "sm",
|
|
20001
20001
|
variant: "danger"
|
|
20002
20002
|
}
|
|
20003
20003
|
)
|
|
20004
20004
|
] }),
|
|
20005
|
-
isReplacing && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 text-2xl text-white", children: /* @__PURE__ */ jsx(
|
|
20005
|
+
isReplacing && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 text-2xl text-white", children: /* @__PURE__ */ jsx(LoadingIcon, { className: "animate-spin" }) })
|
|
20006
20006
|
]
|
|
20007
20007
|
},
|
|
20008
20008
|
`${url}-${index}`
|
|
@@ -20132,7 +20132,7 @@ function StarRatingInput({
|
|
|
20132
20132
|
"text-yellow-600": index <= (hover ?? rating - 1),
|
|
20133
20133
|
"text-gray-400": index > (hover ?? rating - 1)
|
|
20134
20134
|
}),
|
|
20135
|
-
children: index <= (hover ?? rating - 1) ? /* @__PURE__ */ jsx(
|
|
20135
|
+
children: index <= (hover ?? rating - 1) ? /* @__PURE__ */ jsx(StarIcon, { appearance: "solid", size: 20 }) : /* @__PURE__ */ jsx(StarIcon, { size: 20 })
|
|
20136
20136
|
},
|
|
20137
20137
|
index
|
|
20138
20138
|
)) }),
|
|
@@ -20424,7 +20424,7 @@ function Select(selectProps) {
|
|
|
20424
20424
|
}
|
|
20425
20425
|
),
|
|
20426
20426
|
/* @__PURE__ */ jsx(
|
|
20427
|
-
|
|
20427
|
+
ChevronDownIcon,
|
|
20428
20428
|
{
|
|
20429
20429
|
"aria-hidden": "true",
|
|
20430
20430
|
className: cn(
|
|
@@ -20710,7 +20710,7 @@ function Tags(tagsProps) {
|
|
|
20710
20710
|
disabled,
|
|
20711
20711
|
onClick: () => handleRemoveTag(index),
|
|
20712
20712
|
type: "button",
|
|
20713
|
-
children: /* @__PURE__ */ jsx(
|
|
20713
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { className: "h-3 w-3" })
|
|
20714
20714
|
}
|
|
20715
20715
|
)
|
|
20716
20716
|
]
|
|
@@ -21315,7 +21315,7 @@ var Drawer = ({
|
|
|
21315
21315
|
] });
|
|
21316
21316
|
};
|
|
21317
21317
|
function DrawerToggler({
|
|
21318
|
-
icon = /* @__PURE__ */ jsx(
|
|
21318
|
+
icon = /* @__PURE__ */ jsx(MenuIcon, {}),
|
|
21319
21319
|
toggleDrawer,
|
|
21320
21320
|
styles
|
|
21321
21321
|
}) {
|
|
@@ -21693,7 +21693,7 @@ var HeaderNavGroup = ({
|
|
|
21693
21693
|
}
|
|
21694
21694
|
) }),
|
|
21695
21695
|
children && /* @__PURE__ */ jsx(
|
|
21696
|
-
|
|
21696
|
+
ChevronDownIcon,
|
|
21697
21697
|
{
|
|
21698
21698
|
className: classNames64({
|
|
21699
21699
|
"text-md": true,
|
|
@@ -21870,7 +21870,7 @@ var MenuGroup = ({
|
|
|
21870
21870
|
children: [
|
|
21871
21871
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx(MIContext, { icon, name, badge }) }),
|
|
21872
21872
|
/* @__PURE__ */ jsx(
|
|
21873
|
-
|
|
21873
|
+
ChevronDownIcon,
|
|
21874
21874
|
{
|
|
21875
21875
|
className: cn(
|
|
21876
21876
|
"text-xs transition-transform duration-200",
|
|
@@ -23500,7 +23500,7 @@ function CommentActions({
|
|
|
23500
23500
|
${liked ? "text-blue-500" : "hover:text-gray-900 dark:hover:text-gray-100"}
|
|
23501
23501
|
`,
|
|
23502
23502
|
children: [
|
|
23503
|
-
liked ? /* @__PURE__ */ jsx(
|
|
23503
|
+
liked ? /* @__PURE__ */ jsx(LikeIcon, { appearance: "solid", size: 18 }) : /* @__PURE__ */ jsx(LikeIcon, { size: 18 }),
|
|
23504
23504
|
/* @__PURE__ */ jsx("span", { children: likes })
|
|
23505
23505
|
]
|
|
23506
23506
|
}
|
|
@@ -23514,7 +23514,7 @@ function CommentActions({
|
|
|
23514
23514
|
${disliked ? "text-red-500" : "hover:text-gray-900 dark:hover:text-gray-100"}
|
|
23515
23515
|
`,
|
|
23516
23516
|
children: [
|
|
23517
|
-
disliked ? /* @__PURE__ */ jsx(
|
|
23517
|
+
disliked ? /* @__PURE__ */ jsx(DislikeIcon, { appearance: "solid", size: 18 }) : /* @__PURE__ */ jsx(DislikeIcon, { size: 18 }),
|
|
23518
23518
|
/* @__PURE__ */ jsx("span", { children: dislikes })
|
|
23519
23519
|
]
|
|
23520
23520
|
}
|
|
@@ -23633,7 +23633,7 @@ function CommentMenu({
|
|
|
23633
23633
|
if (canEdit) {
|
|
23634
23634
|
items.push({
|
|
23635
23635
|
type: "item",
|
|
23636
|
-
icon: /* @__PURE__ */ jsx(
|
|
23636
|
+
icon: /* @__PURE__ */ jsx(EditIcon, {}),
|
|
23637
23637
|
name: "Edit",
|
|
23638
23638
|
component: CommentMenuItem,
|
|
23639
23639
|
onClick: () => {
|
|
@@ -23646,7 +23646,7 @@ function CommentMenu({
|
|
|
23646
23646
|
if (canDelete) {
|
|
23647
23647
|
items.push({
|
|
23648
23648
|
type: "item",
|
|
23649
|
-
icon: /* @__PURE__ */ jsx(
|
|
23649
|
+
icon: /* @__PURE__ */ jsx(DeleteIcon, {}),
|
|
23650
23650
|
name: "Delete",
|
|
23651
23651
|
component: CommentMenuItem,
|
|
23652
23652
|
onClick: () => {
|
|
@@ -23659,7 +23659,7 @@ function CommentMenu({
|
|
|
23659
23659
|
if (canReport) {
|
|
23660
23660
|
items.push({
|
|
23661
23661
|
type: "item",
|
|
23662
|
-
icon: /* @__PURE__ */ jsx(
|
|
23662
|
+
icon: /* @__PURE__ */ jsx(FlagIcon, {}),
|
|
23663
23663
|
name: "Report",
|
|
23664
23664
|
component: CommentMenuItem,
|
|
23665
23665
|
onClick: () => {
|
|
@@ -23679,7 +23679,7 @@ function CommentMenu({
|
|
|
23679
23679
|
type: "button",
|
|
23680
23680
|
onClick: () => setOpen(!open),
|
|
23681
23681
|
className: "text-gray-500 transition-colors hover:text-gray-900 dark:hover:text-gray-100",
|
|
23682
|
-
children: /* @__PURE__ */ jsx(
|
|
23682
|
+
children: /* @__PURE__ */ jsx(MoreVerticalIcon, { size: 18 })
|
|
23683
23683
|
}
|
|
23684
23684
|
),
|
|
23685
23685
|
/* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: open, children: /* @__PURE__ */ jsx(
|
|
@@ -23718,7 +23718,7 @@ function CommentRepliesToggle({
|
|
|
23718
23718
|
onClick: onToggle,
|
|
23719
23719
|
className: "inline-flex w-fit items-center gap-1 text-sm font-medium text-blue-500 transition-colors hover:text-blue-400 disabled:cursor-not-allowed disabled:opacity-60",
|
|
23720
23720
|
children: [
|
|
23721
|
-
!loading && (collapsed ? /* @__PURE__ */ jsx(
|
|
23721
|
+
!loading && (collapsed ? /* @__PURE__ */ jsx(ChevronDownIcon, { size: 18 }) : /* @__PURE__ */ jsx(ChevronUpIcon, { size: 18 })),
|
|
23722
23722
|
/* @__PURE__ */ jsx("span", { children: label })
|
|
23723
23723
|
]
|
|
23724
23724
|
}
|
|
@@ -24605,7 +24605,7 @@ var resolveSystemHealthView = (input) => {
|
|
|
24605
24605
|
label: "Checking",
|
|
24606
24606
|
description: "Request in flight",
|
|
24607
24607
|
variant: "info",
|
|
24608
|
-
icon:
|
|
24608
|
+
icon: ActivityIcon,
|
|
24609
24609
|
dotClassName: "bg-eui-info-300",
|
|
24610
24610
|
panelClassName: "text-eui-info-200 bg-eui-info-500/10 border-eui-info-400/30"
|
|
24611
24611
|
},
|
|
@@ -24614,7 +24614,7 @@ var resolveSystemHealthView = (input) => {
|
|
|
24614
24614
|
label: "Operational",
|
|
24615
24615
|
description: "Health endpoint is reporting normally",
|
|
24616
24616
|
variant: "success",
|
|
24617
|
-
icon:
|
|
24617
|
+
icon: CheckCircleIcon,
|
|
24618
24618
|
dotClassName: "bg-eui-success-300",
|
|
24619
24619
|
panelClassName: "text-eui-success-200 bg-eui-success-500/10 border-eui-success-400/30"
|
|
24620
24620
|
},
|
|
@@ -24623,7 +24623,7 @@ var resolveSystemHealthView = (input) => {
|
|
|
24623
24623
|
label: "Reachable",
|
|
24624
24624
|
description: getSystemHealthStatusText(input.data) || "Response received",
|
|
24625
24625
|
variant: "warning",
|
|
24626
|
-
icon:
|
|
24626
|
+
icon: ActivityIcon,
|
|
24627
24627
|
dotClassName: "bg-eui-warning-300",
|
|
24628
24628
|
panelClassName: "text-eui-warning-100 bg-eui-warning-500/10 border-eui-warning-300/30"
|
|
24629
24629
|
},
|
|
@@ -24632,7 +24632,7 @@ var resolveSystemHealthView = (input) => {
|
|
|
24632
24632
|
label: "Unavailable",
|
|
24633
24633
|
description: getSystemHealthErrorMessage(input.error),
|
|
24634
24634
|
variant: "danger",
|
|
24635
|
-
icon:
|
|
24635
|
+
icon: WarningIcon,
|
|
24636
24636
|
dotClassName: "bg-eui-danger-300",
|
|
24637
24637
|
panelClassName: "text-eui-danger-200 bg-eui-danger-500/10 border-eui-danger-400/30"
|
|
24638
24638
|
}
|
|
@@ -24761,25 +24761,25 @@ function SystemHealthStatus({
|
|
|
24761
24761
|
const defaultMetrics = [
|
|
24762
24762
|
{
|
|
24763
24763
|
id: "server",
|
|
24764
|
-
icon:
|
|
24764
|
+
icon: ServerIcon,
|
|
24765
24765
|
label: serverLabel,
|
|
24766
24766
|
value: serverUrl
|
|
24767
24767
|
},
|
|
24768
24768
|
{
|
|
24769
24769
|
id: "endpoint",
|
|
24770
|
-
icon:
|
|
24770
|
+
icon: DatabaseIcon,
|
|
24771
24771
|
label: endpointLabel,
|
|
24772
24772
|
value: endpointUrl ?? endpointPath
|
|
24773
24773
|
},
|
|
24774
24774
|
{
|
|
24775
24775
|
id: "last-checked",
|
|
24776
|
-
icon:
|
|
24776
|
+
icon: ClockIcon,
|
|
24777
24777
|
label: lastCheckedLabel,
|
|
24778
24778
|
value: formatSystemHealthTimestamp(lastCheckedAt)
|
|
24779
24779
|
},
|
|
24780
24780
|
{
|
|
24781
24781
|
id: "environment",
|
|
24782
|
-
icon:
|
|
24782
|
+
icon: ActivityIcon,
|
|
24783
24783
|
label: environmentLabel,
|
|
24784
24784
|
value: environment
|
|
24785
24785
|
}
|
|
@@ -24878,7 +24878,7 @@ function SystemHealthStatus({
|
|
|
24878
24878
|
Button_web_default,
|
|
24879
24879
|
{
|
|
24880
24880
|
icon: /* @__PURE__ */ jsx(
|
|
24881
|
-
|
|
24881
|
+
RefreshIcon,
|
|
24882
24882
|
{
|
|
24883
24883
|
className: isFetching ? "animate-spin" : ""
|
|
24884
24884
|
}
|
|
@@ -28617,7 +28617,7 @@ var TNDropdownGroup = ({
|
|
|
28617
28617
|
children: [
|
|
28618
28618
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx(TNContext, { icon, name, badge }) }),
|
|
28619
28619
|
/* @__PURE__ */ jsx(
|
|
28620
|
-
|
|
28620
|
+
ChevronDownIcon,
|
|
28621
28621
|
{
|
|
28622
28622
|
className: cn(
|
|
28623
28623
|
"text-xs transition-transform duration-200",
|
|
@@ -29191,7 +29191,7 @@ function ReviewMenu({
|
|
|
29191
29191
|
if (canEdit) {
|
|
29192
29192
|
items.push({
|
|
29193
29193
|
type: "item",
|
|
29194
|
-
icon: /* @__PURE__ */ jsx(
|
|
29194
|
+
icon: /* @__PURE__ */ jsx(EditIcon, {}),
|
|
29195
29195
|
name: "Edit Review",
|
|
29196
29196
|
component: MenuItem,
|
|
29197
29197
|
onClick: withClose(onEdit),
|
|
@@ -29201,7 +29201,7 @@ function ReviewMenu({
|
|
|
29201
29201
|
if (canDelete) {
|
|
29202
29202
|
items.push({
|
|
29203
29203
|
type: "item",
|
|
29204
|
-
icon: /* @__PURE__ */ jsx(
|
|
29204
|
+
icon: /* @__PURE__ */ jsx(DeleteIcon, {}),
|
|
29205
29205
|
name: "Delete Review",
|
|
29206
29206
|
component: MenuItem,
|
|
29207
29207
|
onClick: withClose(onDelete),
|
|
@@ -29211,7 +29211,7 @@ function ReviewMenu({
|
|
|
29211
29211
|
if (canReport) {
|
|
29212
29212
|
items.push({
|
|
29213
29213
|
type: "item",
|
|
29214
|
-
icon: /* @__PURE__ */ jsx(
|
|
29214
|
+
icon: /* @__PURE__ */ jsx(FlagIcon, {}),
|
|
29215
29215
|
name: "Report Review",
|
|
29216
29216
|
component: MenuItem,
|
|
29217
29217
|
onClick: withClose(onReport),
|
|
@@ -29229,7 +29229,7 @@ function ReviewMenu({
|
|
|
29229
29229
|
onClick: () => setOpen(!open),
|
|
29230
29230
|
className: "text-gray-500 transition-colors hover:text-gray-900 dark:hover:text-gray-100",
|
|
29231
29231
|
"aria-label": "Review options",
|
|
29232
|
-
children: /* @__PURE__ */ jsx(
|
|
29232
|
+
children: /* @__PURE__ */ jsx(MoreVerticalIcon, { size: 20 })
|
|
29233
29233
|
}
|
|
29234
29234
|
),
|
|
29235
29235
|
/* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: open, children: /* @__PURE__ */ jsx(
|
|
@@ -29255,7 +29255,7 @@ function ReviewActions({ canReply, config, onReply }) {
|
|
|
29255
29255
|
variant: "secondary",
|
|
29256
29256
|
appearance: "ghost",
|
|
29257
29257
|
size: "sm",
|
|
29258
|
-
icon: /* @__PURE__ */ jsx(
|
|
29258
|
+
icon: /* @__PURE__ */ jsx(ReplyIcon, {}),
|
|
29259
29259
|
onClick: onReply
|
|
29260
29260
|
}
|
|
29261
29261
|
) });
|
|
@@ -29308,7 +29308,7 @@ function ReviewReplyMenu({
|
|
|
29308
29308
|
if (canEdit) {
|
|
29309
29309
|
items.push({
|
|
29310
29310
|
type: "item",
|
|
29311
|
-
icon: /* @__PURE__ */ jsx(
|
|
29311
|
+
icon: /* @__PURE__ */ jsx(EditIcon, {}),
|
|
29312
29312
|
name: "Edit Reply",
|
|
29313
29313
|
component: MenuItem,
|
|
29314
29314
|
onClick: withClose(onEdit),
|
|
@@ -29318,7 +29318,7 @@ function ReviewReplyMenu({
|
|
|
29318
29318
|
if (canDelete) {
|
|
29319
29319
|
items.push({
|
|
29320
29320
|
type: "item",
|
|
29321
|
-
icon: /* @__PURE__ */ jsx(
|
|
29321
|
+
icon: /* @__PURE__ */ jsx(DeleteIcon, {}),
|
|
29322
29322
|
name: "Delete Reply",
|
|
29323
29323
|
component: MenuItem,
|
|
29324
29324
|
onClick: withClose(onDelete),
|
|
@@ -29328,7 +29328,7 @@ function ReviewReplyMenu({
|
|
|
29328
29328
|
if (canReport) {
|
|
29329
29329
|
items.push({
|
|
29330
29330
|
type: "item",
|
|
29331
|
-
icon: /* @__PURE__ */ jsx(
|
|
29331
|
+
icon: /* @__PURE__ */ jsx(FlagIcon, {}),
|
|
29332
29332
|
name: "Report Reply",
|
|
29333
29333
|
component: MenuItem,
|
|
29334
29334
|
onClick: withClose(onReport),
|
|
@@ -29346,7 +29346,7 @@ function ReviewReplyMenu({
|
|
|
29346
29346
|
onClick: () => setOpen(!open),
|
|
29347
29347
|
className: "text-gray-500 transition-colors hover:text-gray-900 dark:hover:text-gray-100",
|
|
29348
29348
|
"aria-label": "Review reply options",
|
|
29349
|
-
children: /* @__PURE__ */ jsx(
|
|
29349
|
+
children: /* @__PURE__ */ jsx(MoreVerticalIcon, { size: 18 })
|
|
29350
29350
|
}
|
|
29351
29351
|
),
|
|
29352
29352
|
/* @__PURE__ */ jsx(Transition.TransitionDropdown, { visibility: open, children: /* @__PURE__ */ jsx(
|