@herca/r-kit 0.0.83 → 0.0.84
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/clients.cjs +110 -83
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +5 -2
- package/dist/clients.d.ts +5 -2
- package/dist/clients.js +110 -83
- package/dist/clients.js.map +1 -1
- package/package.json +1 -1
package/dist/clients.cjs
CHANGED
|
@@ -13278,6 +13278,7 @@ var PreviewItem = ({
|
|
|
13278
13278
|
};
|
|
13279
13279
|
|
|
13280
13280
|
// src/components/input-file/input-file.tsx
|
|
13281
|
+
var import_clsx5 = __toESM(require("clsx"), 1);
|
|
13281
13282
|
var import_jsx_runtime415 = require("react/jsx-runtime");
|
|
13282
13283
|
var defaultExtractUrl = (res) => {
|
|
13283
13284
|
if (res !== null && typeof res === "object" && "url" in res && typeof res.url === "string") {
|
|
@@ -13310,7 +13311,8 @@ var InputFile = (0, import_react401.forwardRef)(
|
|
|
13310
13311
|
uploadConfig,
|
|
13311
13312
|
onUploadSuccess,
|
|
13312
13313
|
onRemoveFile,
|
|
13313
|
-
onClear
|
|
13314
|
+
onClear,
|
|
13315
|
+
selectedFilesClassName
|
|
13314
13316
|
}, ref) => {
|
|
13315
13317
|
const inputRef = (0, import_react401.useRef)(null);
|
|
13316
13318
|
const replaceInputRef = (0, import_react401.useRef)(null);
|
|
@@ -13721,7 +13723,7 @@ var InputFile = (0, import_react401.forwardRef)(
|
|
|
13721
13723
|
className: "hidden"
|
|
13722
13724
|
}
|
|
13723
13725
|
),
|
|
13724
|
-
files.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime415.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
13726
|
+
files.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime415.jsxs)("div", { className: (0, import_clsx5.default)("flex flex-col gap-3", selectedFilesClassName), children: [
|
|
13725
13727
|
/* @__PURE__ */ (0, import_jsx_runtime415.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
13726
13728
|
/* @__PURE__ */ (0, import_jsx_runtime415.jsx)(
|
|
13727
13729
|
Text,
|
|
@@ -14044,11 +14046,11 @@ var InputOTP = ({
|
|
|
14044
14046
|
const fullPattern = FULL_PATTERNS[type];
|
|
14045
14047
|
const hasError = Array.isArray(errorMessages) ? errorMessages.length > 0 : typeof errorMessages === "string" && errorMessages.length > 0;
|
|
14046
14048
|
const values = React402.useMemo(() => {
|
|
14047
|
-
const chars = value
|
|
14048
|
-
return Array.from({ length }, (_2, i) => chars[i] ?? "");
|
|
14049
|
+
const chars = value?.split("");
|
|
14050
|
+
return Array.from({ length }, (_2, i) => chars?.[i] ?? "");
|
|
14049
14051
|
}, [value, length]);
|
|
14050
14052
|
React402.useEffect(() => {
|
|
14051
|
-
if (value
|
|
14053
|
+
if (value?.length === length && previousValueRef.current != void 0 && previousValueRef.current.length !== length) {
|
|
14052
14054
|
onComplete?.(value);
|
|
14053
14055
|
}
|
|
14054
14056
|
previousValueRef.current = value;
|
|
@@ -14173,6 +14175,7 @@ var InputOTP = ({
|
|
|
14173
14175
|
name !== void 0 && name.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime417.jsx)("input", { type: "hidden", name, value, required }),
|
|
14174
14176
|
values.map((char, i) => {
|
|
14175
14177
|
const displayValue = mask && char.length > 0 ? "\u2022" : char;
|
|
14178
|
+
console.log(displayValue);
|
|
14176
14179
|
const inputId = i === 0 ? fieldId : `${fieldId}-${i}`;
|
|
14177
14180
|
const computedAriaLabel = ariaLabel !== void 0 ? ariaLabel(i, length) : `Digit ${i + 1} of ${length}`;
|
|
14178
14181
|
return /* @__PURE__ */ (0, import_jsx_runtime417.jsxs)(React402.Fragment, { children: [
|
|
@@ -14183,7 +14186,7 @@ var InputOTP = ({
|
|
|
14183
14186
|
inputsRef.current[i] = el;
|
|
14184
14187
|
},
|
|
14185
14188
|
id: inputId,
|
|
14186
|
-
value:
|
|
14189
|
+
value: char,
|
|
14187
14190
|
disabled,
|
|
14188
14191
|
readOnly,
|
|
14189
14192
|
required: required && i === 0,
|
|
@@ -14291,7 +14294,7 @@ function useCopy() {
|
|
|
14291
14294
|
}
|
|
14292
14295
|
|
|
14293
14296
|
// src/components/table/table.tsx
|
|
14294
|
-
var
|
|
14297
|
+
var import_clsx6 = __toESM(require("clsx"), 1);
|
|
14295
14298
|
var import_react404 = require("react");
|
|
14296
14299
|
|
|
14297
14300
|
// src/components/table/table-variants.ts
|
|
@@ -14348,7 +14351,7 @@ function Table({
|
|
|
14348
14351
|
return /* @__PURE__ */ (0, import_jsx_runtime419.jsx)(TableContext.Provider, { value: { variant }, children: /* @__PURE__ */ (0, import_jsx_runtime419.jsx)(
|
|
14349
14352
|
"table",
|
|
14350
14353
|
{
|
|
14351
|
-
className: (0,
|
|
14354
|
+
className: (0, import_clsx6.default)(
|
|
14352
14355
|
className,
|
|
14353
14356
|
"overflow-hidden",
|
|
14354
14357
|
(variant === "bordered" || variant == "stripped" || variant == "hovered" || variant === "wrapped-row-bordered") && "border-separate border-spacing-0",
|
|
@@ -14370,7 +14373,7 @@ function TableBody({ children, className }) {
|
|
|
14370
14373
|
return /* @__PURE__ */ (0, import_jsx_runtime419.jsx)(
|
|
14371
14374
|
"tbody",
|
|
14372
14375
|
{
|
|
14373
|
-
className: (0,
|
|
14376
|
+
className: (0, import_clsx6.default)(
|
|
14374
14377
|
(isBordered || isStripped || isHovered) && "[&>tr:last-child>td:first-child]:rounded-bl-lg [&>tr:last-child>td:last-child]:rounded-br-lg",
|
|
14375
14378
|
isWrapped && "[&>tr>td:first-child]:border-l-0!",
|
|
14376
14379
|
className
|
|
@@ -14394,7 +14397,7 @@ function TableRow({
|
|
|
14394
14397
|
return /* @__PURE__ */ (0, import_jsx_runtime419.jsx)(TableRowContext.Provider, { value: { isLast }, children: /* @__PURE__ */ (0, import_jsx_runtime419.jsx)(
|
|
14395
14398
|
"tr",
|
|
14396
14399
|
{
|
|
14397
|
-
className: (0,
|
|
14400
|
+
className: (0, import_clsx6.default)(
|
|
14398
14401
|
TableVariants({ tableRow: variant }),
|
|
14399
14402
|
"[&>th:first-child]:rounded-tl-lg [&>th:last-child]:rounded-tr-lg",
|
|
14400
14403
|
Boolean(isLast) && "border-b-0!",
|
|
@@ -14419,7 +14422,7 @@ function TableCellHead({
|
|
|
14419
14422
|
return /* @__PURE__ */ (0, import_jsx_runtime419.jsx)("th", { className: cn(className, "px-4 py-3"), children: value !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime419.jsxs)(
|
|
14420
14423
|
"button",
|
|
14421
14424
|
{
|
|
14422
|
-
className: (0,
|
|
14425
|
+
className: (0, import_clsx6.default)(
|
|
14423
14426
|
"flex items-center gap-2.5",
|
|
14424
14427
|
!!onClick && "cursor-pointer"
|
|
14425
14428
|
),
|
|
@@ -14499,7 +14502,7 @@ function TablePagination({
|
|
|
14499
14502
|
return /* @__PURE__ */ (0, import_jsx_runtime419.jsxs)(
|
|
14500
14503
|
"div",
|
|
14501
14504
|
{
|
|
14502
|
-
className: (0,
|
|
14505
|
+
className: (0, import_clsx6.default)(
|
|
14503
14506
|
"flex w-full items-center justify-between md:flex-nowrap",
|
|
14504
14507
|
wrapperClassName
|
|
14505
14508
|
),
|
|
@@ -14519,7 +14522,7 @@ function TablePagination({
|
|
|
14519
14522
|
/* @__PURE__ */ (0, import_jsx_runtime419.jsx)(
|
|
14520
14523
|
DropdownTrigger,
|
|
14521
14524
|
{
|
|
14522
|
-
className: (0,
|
|
14525
|
+
className: (0, import_clsx6.default)("outline-none", dropdownTriggerClassName),
|
|
14523
14526
|
children: /* @__PURE__ */ (0, import_jsx_runtime419.jsx)(
|
|
14524
14527
|
Input,
|
|
14525
14528
|
{
|
|
@@ -14543,7 +14546,7 @@ function TablePagination({
|
|
|
14543
14546
|
/* @__PURE__ */ (0, import_jsx_runtime419.jsx)(
|
|
14544
14547
|
DropdownContent,
|
|
14545
14548
|
{
|
|
14546
|
-
className: (0,
|
|
14549
|
+
className: (0, import_clsx6.default)(
|
|
14547
14550
|
"w-19 gap-0 rounded-lg p-1 shadow-sm",
|
|
14548
14551
|
dropdownContentClassName
|
|
14549
14552
|
),
|
|
@@ -14551,7 +14554,7 @@ function TablePagination({
|
|
|
14551
14554
|
children: perPages.map((item) => /* @__PURE__ */ (0, import_jsx_runtime419.jsx)(
|
|
14552
14555
|
DropdownItem,
|
|
14553
14556
|
{
|
|
14554
|
-
className: (0,
|
|
14557
|
+
className: (0, import_clsx6.default)(
|
|
14555
14558
|
value === item && "bg-primary-50 border-primary-300",
|
|
14556
14559
|
"justify-center rounded-sm! border-0",
|
|
14557
14560
|
dropdownItemClassName
|
|
@@ -14605,7 +14608,7 @@ function TablePagination({
|
|
|
14605
14608
|
e.preventDefault();
|
|
14606
14609
|
numberOnClick?.(item);
|
|
14607
14610
|
},
|
|
14608
|
-
className: (0,
|
|
14611
|
+
className: (0, import_clsx6.default)(
|
|
14609
14612
|
"grid size-9 cursor-pointer place-items-center rounded-lg",
|
|
14610
14613
|
active ? "bg-primary-1000 hover:bg-primary-1000 *:text-white" : "hover:bg-primary-50 *:text-gray-700"
|
|
14611
14614
|
),
|
|
@@ -14821,7 +14824,7 @@ var ButtonNavigator = ({
|
|
|
14821
14824
|
};
|
|
14822
14825
|
|
|
14823
14826
|
// src/components/calendar/partials/calendar-grid.tsx
|
|
14824
|
-
var
|
|
14827
|
+
var import_clsx9 = __toESM(require("clsx"), 1);
|
|
14825
14828
|
|
|
14826
14829
|
// src/components/calendar/partials/button-more.tsx
|
|
14827
14830
|
var import_jsx_runtime421 = require("react/jsx-runtime");
|
|
@@ -14843,7 +14846,7 @@ function ButtonMore({ count, onClick }) {
|
|
|
14843
14846
|
}
|
|
14844
14847
|
|
|
14845
14848
|
// src/components/calendar/partials/calendar-day-item.tsx
|
|
14846
|
-
var
|
|
14849
|
+
var import_clsx7 = __toESM(require("clsx"), 1);
|
|
14847
14850
|
|
|
14848
14851
|
// src/components/calendar/helpers/create-date-style-helpers.ts
|
|
14849
14852
|
function createDateStyleHelpers({
|
|
@@ -14966,7 +14969,7 @@ function CalendarDayItem({
|
|
|
14966
14969
|
style: styleHelpers.getDayStyle(),
|
|
14967
14970
|
onClick: () => onClick(day),
|
|
14968
14971
|
disabled: isDisabled && isCurrentMonth,
|
|
14969
|
-
className: (0,
|
|
14972
|
+
className: (0, import_clsx7.default)(
|
|
14970
14973
|
date_size_map[size ?? "md"],
|
|
14971
14974
|
styleHelpers.getCursorClass(),
|
|
14972
14975
|
styleHelpers.getTextColorClass(),
|
|
@@ -14989,7 +14992,7 @@ function CalendarDayItem({
|
|
|
14989
14992
|
/* @__PURE__ */ (0, import_jsx_runtime422.jsx)(
|
|
14990
14993
|
"h5",
|
|
14991
14994
|
{
|
|
14992
|
-
className: (0,
|
|
14995
|
+
className: (0, import_clsx7.default)(
|
|
14993
14996
|
"font-metropolis text-xs transition-colors",
|
|
14994
14997
|
variant === "default" && "grid size-8 place-items-center justify-center rounded-full",
|
|
14995
14998
|
//prettier-ignore
|
|
@@ -15027,7 +15030,7 @@ function CalendarDayItem({
|
|
|
15027
15030
|
|
|
15028
15031
|
// src/components/calendar/partials/event-bar.tsx
|
|
15029
15032
|
var import_react405 = require("react");
|
|
15030
|
-
var
|
|
15033
|
+
var import_clsx8 = __toESM(require("clsx"), 1);
|
|
15031
15034
|
var import_jsx_runtime423 = require("react/jsx-runtime");
|
|
15032
15035
|
function EventBar({
|
|
15033
15036
|
segment,
|
|
@@ -15073,7 +15076,7 @@ function EventBar({
|
|
|
15073
15076
|
onMouseEnter: () => setHovered(true),
|
|
15074
15077
|
onMouseLeave: () => setHovered(false),
|
|
15075
15078
|
onMouseMove: (e) => handleMouseMove(e, isMouseEventOnChildren),
|
|
15076
|
-
className: (0,
|
|
15079
|
+
className: (0, import_clsx8.default)(
|
|
15077
15080
|
"relative mx-0.5 mt-1 flex items-center justify-between gap-3 overflow-hidden rounded p-1 text-[11px] leading-5 font-medium md:p-1.5",
|
|
15078
15081
|
onClick && "cursor-pointer"
|
|
15079
15082
|
),
|
|
@@ -15130,7 +15133,7 @@ function EventBar({
|
|
|
15130
15133
|
}
|
|
15131
15134
|
}
|
|
15132
15135
|
),
|
|
15133
|
-
/* @__PURE__ */ (0, import_jsx_runtime423.jsx)(Text, { variant: "t3", className: (0,
|
|
15136
|
+
/* @__PURE__ */ (0, import_jsx_runtime423.jsx)(Text, { variant: "t3", className: (0, import_clsx8.default)("text-gray-800"), children: segment?.event?.tooltip?.label ?? segment.event.label })
|
|
15134
15137
|
] })
|
|
15135
15138
|
] })
|
|
15136
15139
|
}
|
|
@@ -15166,7 +15169,7 @@ function CalendarGrid({
|
|
|
15166
15169
|
return /* @__PURE__ */ (0, import_jsx_runtime424.jsx)(
|
|
15167
15170
|
"div",
|
|
15168
15171
|
{
|
|
15169
|
-
className: (0,
|
|
15172
|
+
className: (0, import_clsx9.default)(
|
|
15170
15173
|
"relative",
|
|
15171
15174
|
variant === "compact" && size === "sm" && "space-y-1"
|
|
15172
15175
|
),
|
|
@@ -15257,7 +15260,7 @@ function CalendarGrid({
|
|
|
15257
15260
|
return /* @__PURE__ */ (0, import_jsx_runtime424.jsxs)(
|
|
15258
15261
|
"div",
|
|
15259
15262
|
{
|
|
15260
|
-
className: (0,
|
|
15263
|
+
className: (0, import_clsx9.default)(
|
|
15261
15264
|
"relative",
|
|
15262
15265
|
variant === "default" && "border-b border-gray-300 last:border-b-0!",
|
|
15263
15266
|
//prettier-ignore
|
|
@@ -15267,7 +15270,7 @@ function CalendarGrid({
|
|
|
15267
15270
|
/* @__PURE__ */ (0, import_jsx_runtime424.jsx)(
|
|
15268
15271
|
"div",
|
|
15269
15272
|
{
|
|
15270
|
-
className: (0,
|
|
15273
|
+
className: (0, import_clsx9.default)(
|
|
15271
15274
|
"grid w-full grid-cols-7",
|
|
15272
15275
|
variant === "default" && "*:border-r *:border-gray-300 [&>*:nth-last-child(1)]:border-r-0",
|
|
15273
15276
|
//prettier-ignore
|
|
@@ -15555,7 +15558,7 @@ function NavigatorButton({
|
|
|
15555
15558
|
}
|
|
15556
15559
|
|
|
15557
15560
|
// src/components/calendar/partials/days-of-week.tsx
|
|
15558
|
-
var
|
|
15561
|
+
var import_clsx10 = __toESM(require("clsx"), 1);
|
|
15559
15562
|
var import_jsx_runtime427 = require("react/jsx-runtime");
|
|
15560
15563
|
var day_of_week_size = {
|
|
15561
15564
|
sm: "t2",
|
|
@@ -15573,7 +15576,7 @@ function DaysOfWeek({
|
|
|
15573
15576
|
return /* @__PURE__ */ (0, import_jsx_runtime427.jsxs)(
|
|
15574
15577
|
"div",
|
|
15575
15578
|
{
|
|
15576
|
-
className: (0,
|
|
15579
|
+
className: (0, import_clsx10.default)(
|
|
15577
15580
|
"grid justify-items-center",
|
|
15578
15581
|
variant === "compact" && "calendar-cols mb-3 gap-x-1 *:text-center!",
|
|
15579
15582
|
variant === "default" && "w-full bg-gray-100 *:p-3 *:w-full *:text-start! *:border-r *:border-gray-300 *:last:border-r-0",
|
|
@@ -15594,7 +15597,7 @@ function DaysOfWeek({
|
|
|
15594
15597
|
as: "h5",
|
|
15595
15598
|
weight: variant === "compact" ? "medium" : "semibold",
|
|
15596
15599
|
value: day,
|
|
15597
|
-
className: (0,
|
|
15600
|
+
className: (0, import_clsx10.default)(
|
|
15598
15601
|
variant === "compact" && "text-gray-600!",
|
|
15599
15602
|
variant === "default" && "text-gray-900! uppercase"
|
|
15600
15603
|
),
|
|
@@ -15608,7 +15611,7 @@ function DaysOfWeek({
|
|
|
15608
15611
|
}
|
|
15609
15612
|
|
|
15610
15613
|
// src/components/calendar/calendar.tsx
|
|
15611
|
-
var
|
|
15614
|
+
var import_clsx11 = __toESM(require("clsx"), 1);
|
|
15612
15615
|
|
|
15613
15616
|
// src/components/calendar/constants.tsx
|
|
15614
15617
|
var typeOptions = [
|
|
@@ -15795,7 +15798,7 @@ var Calendar2 = ({
|
|
|
15795
15798
|
setSelectedType(type);
|
|
15796
15799
|
}
|
|
15797
15800
|
}, [type]);
|
|
15798
|
-
return /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(import_jsx_runtime428.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime428.jsxs)("div", { className: (0,
|
|
15801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(import_jsx_runtime428.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime428.jsxs)("div", { className: (0, import_clsx11.default)(variant === "default" && "flex flex-col gap-2"), children: [
|
|
15799
15802
|
variant === "default" && /* @__PURE__ */ (0, import_jsx_runtime428.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
15800
15803
|
/* @__PURE__ */ (0, import_jsx_runtime428.jsxs)("div", { className: "flex items-center gap-6", children: [
|
|
15801
15804
|
/* @__PURE__ */ (0, import_jsx_runtime428.jsxs)("div", { className: "*:cursor-pointer", children: [
|
|
@@ -15868,7 +15871,7 @@ var Calendar2 = ({
|
|
|
15868
15871
|
setSelectedType(option.value);
|
|
15869
15872
|
onTypeChange?.(option.value);
|
|
15870
15873
|
},
|
|
15871
|
-
className: (0,
|
|
15874
|
+
className: (0, import_clsx11.default)(
|
|
15872
15875
|
(selectedType === option.value || index === selectedTypeIndex) && "bg-primary-50!"
|
|
15873
15876
|
),
|
|
15874
15877
|
children: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(Text, { className: "text-gray-900", children: option.label })
|
|
@@ -16072,7 +16075,7 @@ var parseMonthName = (monthStr) => {
|
|
|
16072
16075
|
};
|
|
16073
16076
|
|
|
16074
16077
|
// src/components/date-picker/date-picker.tsx
|
|
16075
|
-
var
|
|
16078
|
+
var import_clsx12 = __toESM(require("clsx"), 1);
|
|
16076
16079
|
var import_jsx_runtime429 = require("react/jsx-runtime");
|
|
16077
16080
|
var DatePicker = ({
|
|
16078
16081
|
format = "DD-MM-YYYY",
|
|
@@ -16094,7 +16097,9 @@ var DatePicker = ({
|
|
|
16094
16097
|
size = "md",
|
|
16095
16098
|
showController = true,
|
|
16096
16099
|
align = "start",
|
|
16097
|
-
containerClassName
|
|
16100
|
+
containerClassName,
|
|
16101
|
+
placeholder,
|
|
16102
|
+
isClearable = false
|
|
16098
16103
|
}) => {
|
|
16099
16104
|
const [selectedDate, setSelectedDate] = (0, import_react409.useState)(
|
|
16100
16105
|
controlledValue || null
|
|
@@ -16324,7 +16329,7 @@ var DatePicker = ({
|
|
|
16324
16329
|
"div",
|
|
16325
16330
|
{
|
|
16326
16331
|
ref: containerRef,
|
|
16327
|
-
className: (0,
|
|
16332
|
+
className: (0, import_clsx12.default)("relative flex max-w-sm flex-col", containerClassName),
|
|
16328
16333
|
children: /* @__PURE__ */ (0, import_jsx_runtime429.jsxs)(
|
|
16329
16334
|
Dropdown,
|
|
16330
16335
|
{
|
|
@@ -16337,18 +16342,40 @@ var DatePicker = ({
|
|
|
16337
16342
|
}
|
|
16338
16343
|
},
|
|
16339
16344
|
children: [
|
|
16340
|
-
/* @__PURE__ */ (0, import_jsx_runtime429.jsx)(DropdownTrigger, { asChild:
|
|
16345
|
+
/* @__PURE__ */ (0, import_jsx_runtime429.jsx)(DropdownTrigger, { asChild: true, children: Boolean(trigger) === false ? /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
|
|
16341
16346
|
Input,
|
|
16342
16347
|
{
|
|
16343
|
-
type: "text",
|
|
16344
16348
|
mergedAddon: true,
|
|
16349
|
+
type: "text",
|
|
16345
16350
|
className: "pl-0",
|
|
16346
|
-
leftAddonClassName: "pr-1!",
|
|
16347
|
-
leftAddon: /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(Icon_default, { name: "calendar", className: "text-gray-900" }),
|
|
16348
|
-
placeholder: mode === "range" ? `${formatConfig.placeholder} - ${formatConfig.placeholder}` : formatConfig.placeholder,
|
|
16351
|
+
leftAddonClassName: "pr-1! shrink-0",
|
|
16349
16352
|
onChange: handleInputChange2,
|
|
16350
16353
|
value: inputValue,
|
|
16351
|
-
readOnly: mode === "range"
|
|
16354
|
+
readOnly: mode === "range",
|
|
16355
|
+
leftAddon: /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(Icon_default, { name: "calendar", className: "text-gray-900", size: 24 }),
|
|
16356
|
+
rightAddonClassName: "shrink-0",
|
|
16357
|
+
rightAddon: isClearable && inputValue && /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
|
|
16358
|
+
"button",
|
|
16359
|
+
{
|
|
16360
|
+
className: "shrink-0 cursor-pointer",
|
|
16361
|
+
onClick: (e) => {
|
|
16362
|
+
e.preventDefault();
|
|
16363
|
+
e.stopPropagation();
|
|
16364
|
+
setInputValue("");
|
|
16365
|
+
controlledOnRangeChange?.({ start: null, end: null });
|
|
16366
|
+
controlledOnChange?.(null);
|
|
16367
|
+
},
|
|
16368
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
|
|
16369
|
+
Icon_default,
|
|
16370
|
+
{
|
|
16371
|
+
name: "times-circle",
|
|
16372
|
+
size: 20,
|
|
16373
|
+
className: "shrink-0 text-gray-900"
|
|
16374
|
+
}
|
|
16375
|
+
)
|
|
16376
|
+
}
|
|
16377
|
+
),
|
|
16378
|
+
placeholder: placeholder !== void 0 ? placeholder : mode === "range" ? `${formatConfig.placeholder} - ${formatConfig.placeholder}` : formatConfig.placeholder
|
|
16352
16379
|
}
|
|
16353
16380
|
) : trigger }),
|
|
16354
16381
|
/* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
|
|
@@ -16356,7 +16383,7 @@ var DatePicker = ({
|
|
|
16356
16383
|
{
|
|
16357
16384
|
align,
|
|
16358
16385
|
sideOffset: 5,
|
|
16359
|
-
className: (0,
|
|
16386
|
+
className: (0, import_clsx12.default)("z-10 overflow-hidden p-0", wrapperClassName),
|
|
16360
16387
|
children: /* @__PURE__ */ (0, import_jsx_runtime429.jsx)("div", { className: "top-full z-10", children: mode === "single" ? /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
|
|
16361
16388
|
Calendar2,
|
|
16362
16389
|
{
|
|
@@ -16782,7 +16809,7 @@ var Switch = ({
|
|
|
16782
16809
|
};
|
|
16783
16810
|
|
|
16784
16811
|
// src/components/toast/toast-card.tsx
|
|
16785
|
-
var
|
|
16812
|
+
var import_clsx13 = __toESM(require("clsx"), 1);
|
|
16786
16813
|
|
|
16787
16814
|
// src/components/toast/toast-variants.ts
|
|
16788
16815
|
var import_class_variance_authority11 = require("class-variance-authority");
|
|
@@ -16836,7 +16863,7 @@ function ToastCard({
|
|
|
16836
16863
|
return /* @__PURE__ */ (0, import_jsx_runtime432.jsxs)(
|
|
16837
16864
|
"div",
|
|
16838
16865
|
{
|
|
16839
|
-
className: (0,
|
|
16866
|
+
className: (0, import_clsx13.default)(
|
|
16840
16867
|
"flex max-w-81.75 min-w-81.75 items-center justify-between rounded-lg px-3 py-2 shadow-[0px_2px_10px_0px_#6B728033]",
|
|
16841
16868
|
variant === "outline" && "border border-gray-500",
|
|
16842
16869
|
variant === "outline" && color !== "primary" && color !== "secondary" && "bg-white!",
|
|
@@ -16851,7 +16878,7 @@ function ToastCard({
|
|
|
16851
16878
|
{
|
|
16852
16879
|
name: icon,
|
|
16853
16880
|
size: iconSize,
|
|
16854
|
-
className: (0,
|
|
16881
|
+
className: (0, import_clsx13.default)(
|
|
16855
16882
|
variant === "outline" && color === "primary" && "text-primary-1000!",
|
|
16856
16883
|
variant === "outline" && color === "secondary" && "text-white!",
|
|
16857
16884
|
ToastVariants({ text: color })
|
|
@@ -16861,7 +16888,7 @@ function ToastCard({
|
|
|
16861
16888
|
/* @__PURE__ */ (0, import_jsx_runtime432.jsxs)(
|
|
16862
16889
|
"div",
|
|
16863
16890
|
{
|
|
16864
|
-
className: (0,
|
|
16891
|
+
className: (0, import_clsx13.default)(
|
|
16865
16892
|
"flex flex-col",
|
|
16866
16893
|
variant === "outline" && color === "primary" && "text-primary-1000!",
|
|
16867
16894
|
variant === "outline" && color === "secondary" && "text-white!",
|
|
@@ -16889,7 +16916,7 @@ function ToastCard({
|
|
|
16889
16916
|
{
|
|
16890
16917
|
name: "times",
|
|
16891
16918
|
size: 20,
|
|
16892
|
-
className: (0,
|
|
16919
|
+
className: (0, import_clsx13.default)(
|
|
16893
16920
|
ToastVariants({ text: color }),
|
|
16894
16921
|
variant === "outline" && color === "primary" && "text-primary-1000!",
|
|
16895
16922
|
variant === "outline" && color === "secondary" && "text-white!"
|
|
@@ -16904,7 +16931,7 @@ function ToastCard({
|
|
|
16904
16931
|
|
|
16905
16932
|
// src/components/toast/toast-provider.tsx
|
|
16906
16933
|
var import_react414 = require("react");
|
|
16907
|
-
var
|
|
16934
|
+
var import_clsx14 = __toESM(require("clsx"), 1);
|
|
16908
16935
|
|
|
16909
16936
|
// src/components/toast/toast-context.ts
|
|
16910
16937
|
var import_react412 = require("react");
|
|
@@ -16956,7 +16983,7 @@ function ToastProvider({
|
|
|
16956
16983
|
/* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
|
|
16957
16984
|
"div",
|
|
16958
16985
|
{
|
|
16959
|
-
className: (0,
|
|
16986
|
+
className: (0, import_clsx14.default)(
|
|
16960
16987
|
"fixed z-50 flex flex-col gap-3 duration-300",
|
|
16961
16988
|
position === "top-right" && "top-4 right-4",
|
|
16962
16989
|
position === "top-left" && "top-4 left-4",
|
|
@@ -17066,7 +17093,7 @@ function RoundedSpinner({
|
|
|
17066
17093
|
}
|
|
17067
17094
|
|
|
17068
17095
|
// src/components/select/select.tsx
|
|
17069
|
-
var
|
|
17096
|
+
var import_clsx15 = __toESM(require("clsx"), 1);
|
|
17070
17097
|
|
|
17071
17098
|
// src/components/select/selectSize.ts
|
|
17072
17099
|
var import_class_variance_authority12 = require("class-variance-authority");
|
|
@@ -17487,7 +17514,7 @@ function Select({
|
|
|
17487
17514
|
onLoadMore !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
|
|
17488
17515
|
"div",
|
|
17489
17516
|
{
|
|
17490
|
-
className: (0,
|
|
17517
|
+
className: (0, import_clsx15.default)(
|
|
17491
17518
|
"flex h-5 items-center justify-center py-2 duration-300"
|
|
17492
17519
|
),
|
|
17493
17520
|
children: isLoadingMore === true && /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(RoundedSpinner, { size: 20, color: "primary" })
|
|
@@ -18042,7 +18069,7 @@ TabsContent.displayName = "TabsContent";
|
|
|
18042
18069
|
|
|
18043
18070
|
// src/components/button-group/button-group.tsx
|
|
18044
18071
|
var import_react419 = require("react");
|
|
18045
|
-
var
|
|
18072
|
+
var import_clsx16 = __toESM(require("clsx"), 1);
|
|
18046
18073
|
var import_jsx_runtime439 = require("react/jsx-runtime");
|
|
18047
18074
|
var ButtonGroupContext = (0, import_react419.createContext)(null);
|
|
18048
18075
|
var ButtonGroup = ({
|
|
@@ -18055,7 +18082,7 @@ var ButtonGroup = ({
|
|
|
18055
18082
|
return /* @__PURE__ */ (0, import_jsx_runtime439.jsx)(ButtonGroupContext.Provider, { value: { size, color, variant, direction }, children: /* @__PURE__ */ (0, import_jsx_runtime439.jsx)(
|
|
18056
18083
|
"div",
|
|
18057
18084
|
{
|
|
18058
|
-
className: (0,
|
|
18085
|
+
className: (0, import_clsx16.default)(
|
|
18059
18086
|
"flex *:rounded-none",
|
|
18060
18087
|
direction === "horizontal" ? "flex-row items-center *:first:rounded-tl-lg *:first:rounded-bl-lg *:last:rounded-tr-lg *:last:rounded-br-lg" : "flex-col items-stretch *:first:rounded-tl-lg *:first:rounded-tr-lg *:last:rounded-br-lg *:last:rounded-bl-lg"
|
|
18061
18088
|
),
|
|
@@ -18076,7 +18103,7 @@ var ButtonGroupItem = ({
|
|
|
18076
18103
|
const isTertiary = variant === "tertiary";
|
|
18077
18104
|
const isVertical = direction === "vertical";
|
|
18078
18105
|
const isHorizontal = direction === "horizontal";
|
|
18079
|
-
const borderDirectionClass = (0,
|
|
18106
|
+
const borderDirectionClass = (0, import_clsx16.default)(
|
|
18080
18107
|
isHorizontal && "border-l-0 first:border-l",
|
|
18081
18108
|
isVertical && "border-t-0 first:border-t"
|
|
18082
18109
|
);
|
|
@@ -18097,8 +18124,8 @@ var ButtonGroupItem = ({
|
|
|
18097
18124
|
size: context?.size,
|
|
18098
18125
|
color: color ?? context?.color,
|
|
18099
18126
|
variant: context?.variant,
|
|
18100
|
-
className: (0,
|
|
18101
|
-
isDefault && (0,
|
|
18127
|
+
className: (0, import_clsx16.default)(
|
|
18128
|
+
isDefault && (0, import_clsx16.default)(
|
|
18102
18129
|
isHorizontal && "border-r border-white last:border-r-0",
|
|
18103
18130
|
isVertical && "border-b border-white last:border-b-0"
|
|
18104
18131
|
),
|
|
@@ -18131,7 +18158,7 @@ var import_react436 = require("@tiptap/react");
|
|
|
18131
18158
|
var import_starter_kit = __toESM(require("@tiptap/starter-kit"), 1);
|
|
18132
18159
|
var import_codemirror_theme_dracula = require("@uiw/codemirror-theme-dracula");
|
|
18133
18160
|
var import_react_codemirror = __toESM(require("@uiw/react-codemirror"), 1);
|
|
18134
|
-
var
|
|
18161
|
+
var import_clsx22 = __toESM(require("clsx"), 1);
|
|
18135
18162
|
var import_react437 = require("react");
|
|
18136
18163
|
|
|
18137
18164
|
// node_modules/orderedmap/dist/index.js
|
|
@@ -35100,7 +35127,7 @@ function AdvanceGroup({
|
|
|
35100
35127
|
|
|
35101
35128
|
// src/components/text-editor/partials/alignment-group.tsx
|
|
35102
35129
|
var import_react423 = require("@tiptap/react");
|
|
35103
|
-
var
|
|
35130
|
+
var import_clsx17 = __toESM(require("clsx"), 1);
|
|
35104
35131
|
var import_jsx_runtime443 = require("react/jsx-runtime");
|
|
35105
35132
|
function AlignmentGroup({
|
|
35106
35133
|
editor,
|
|
@@ -35158,7 +35185,7 @@ function AlignmentGroup({
|
|
|
35158
35185
|
DropdownItem,
|
|
35159
35186
|
{
|
|
35160
35187
|
onClick: () => editor.chain().focus().setTextAlign(align.align).run(),
|
|
35161
|
-
className: (0,
|
|
35188
|
+
className: (0, import_clsx17.default)(
|
|
35162
35189
|
"rounded-md border-transparent py-1",
|
|
35163
35190
|
activeState[align.align] && "bg-primary-50 border-primary-300"
|
|
35164
35191
|
),
|
|
@@ -35197,11 +35224,11 @@ function AlignmentGroup({
|
|
|
35197
35224
|
|
|
35198
35225
|
// src/components/text-editor/partials/formatting-group.tsx
|
|
35199
35226
|
var import_react424 = require("@tiptap/react");
|
|
35200
|
-
var
|
|
35227
|
+
var import_clsx19 = __toESM(require("clsx"), 1);
|
|
35201
35228
|
var import_react425 = require("react");
|
|
35202
35229
|
|
|
35203
35230
|
// src/components/text-editor/partials/color-picker-button.tsx
|
|
35204
|
-
var
|
|
35231
|
+
var import_clsx18 = __toESM(require("clsx"), 1);
|
|
35205
35232
|
var import_jsx_runtime444 = require("react/jsx-runtime");
|
|
35206
35233
|
function ColorPickerButton({
|
|
35207
35234
|
id,
|
|
@@ -35214,7 +35241,7 @@ function ColorPickerButton({
|
|
|
35214
35241
|
/* @__PURE__ */ (0, import_jsx_runtime444.jsx)(
|
|
35215
35242
|
"div",
|
|
35216
35243
|
{
|
|
35217
|
-
className: (0,
|
|
35244
|
+
className: (0, import_clsx18.default)(
|
|
35218
35245
|
"flex items-center gap-1 rounded-lg border border-gray-300 p-2",
|
|
35219
35246
|
disabled && "opacity-50"
|
|
35220
35247
|
),
|
|
@@ -35341,7 +35368,7 @@ function FormattingGroup({
|
|
|
35341
35368
|
fontSizes.map((size, index) => /* @__PURE__ */ (0, import_jsx_runtime445.jsx)(
|
|
35342
35369
|
DropdownItem,
|
|
35343
35370
|
{
|
|
35344
|
-
className: (0,
|
|
35371
|
+
className: (0, import_clsx19.default)(
|
|
35345
35372
|
"flex justify-start rounded-md border-transparent py-1",
|
|
35346
35373
|
displayFontSize === size && "bg-primary-50 border-primary-300"
|
|
35347
35374
|
),
|
|
@@ -35367,7 +35394,7 @@ function FormattingGroup({
|
|
|
35367
35394
|
"div",
|
|
35368
35395
|
{
|
|
35369
35396
|
title: "Heading",
|
|
35370
|
-
className: (0,
|
|
35397
|
+
className: (0, import_clsx19.default)(
|
|
35371
35398
|
"flex items-center gap-1 rounded-lg border border-gray-300 p-2",
|
|
35372
35399
|
(disabled || activeState.isInYoutube || activeState.isInImage) && "opacity-50"
|
|
35373
35400
|
),
|
|
@@ -35386,7 +35413,7 @@ function FormattingGroup({
|
|
|
35386
35413
|
{
|
|
35387
35414
|
name: "angle-down-small",
|
|
35388
35415
|
size: 18,
|
|
35389
|
-
className: (0,
|
|
35416
|
+
className: (0, import_clsx19.default)(activeState.activeHeading && "ml-1")
|
|
35390
35417
|
}
|
|
35391
35418
|
)
|
|
35392
35419
|
]
|
|
@@ -35398,7 +35425,7 @@ function FormattingGroup({
|
|
|
35398
35425
|
/* @__PURE__ */ (0, import_jsx_runtime445.jsx)(
|
|
35399
35426
|
DropdownItem,
|
|
35400
35427
|
{
|
|
35401
|
-
className: (0,
|
|
35428
|
+
className: (0, import_clsx19.default)(
|
|
35402
35429
|
"rounded-md border-transparent py-1",
|
|
35403
35430
|
activeState.activeParagraph && "bg-primary-50 border-primary-300"
|
|
35404
35431
|
),
|
|
@@ -35411,7 +35438,7 @@ function FormattingGroup({
|
|
|
35411
35438
|
headings.map((head, index) => /* @__PURE__ */ (0, import_jsx_runtime445.jsx)(
|
|
35412
35439
|
DropdownItem,
|
|
35413
35440
|
{
|
|
35414
|
-
className: (0,
|
|
35441
|
+
className: (0, import_clsx19.default)(
|
|
35415
35442
|
"rounded-md border-transparent py-1",
|
|
35416
35443
|
activeState.activeHeading === head.level && "bg-primary-50 border-primary-300"
|
|
35417
35444
|
),
|
|
@@ -35467,7 +35494,7 @@ function FormattingGroup({
|
|
|
35467
35494
|
"div",
|
|
35468
35495
|
{
|
|
35469
35496
|
title: "Line Height",
|
|
35470
|
-
className: (0,
|
|
35497
|
+
className: (0, import_clsx19.default)(
|
|
35471
35498
|
"flex items-center gap-1 rounded-lg border border-gray-300 p-2",
|
|
35472
35499
|
(disabled || activeState.isInYoutube || activeState.isInImage) && "opacity-50"
|
|
35473
35500
|
),
|
|
@@ -35523,7 +35550,7 @@ function FormattingGroup({
|
|
|
35523
35550
|
lineHeights.map((size, index) => /* @__PURE__ */ (0, import_jsx_runtime445.jsx)(
|
|
35524
35551
|
DropdownItem,
|
|
35525
35552
|
{
|
|
35526
|
-
className: (0,
|
|
35553
|
+
className: (0, import_clsx19.default)(
|
|
35527
35554
|
"flex justify-center rounded-md border-transparent py-1",
|
|
35528
35555
|
displayLineHeight === size && "bg-primary-50 border-primary-300"
|
|
35529
35556
|
),
|
|
@@ -35685,7 +35712,7 @@ var import_react434 = require("react");
|
|
|
35685
35712
|
|
|
35686
35713
|
// src/components/kbd/kbd.tsx
|
|
35687
35714
|
var import_react427 = require("react");
|
|
35688
|
-
var
|
|
35715
|
+
var import_clsx20 = __toESM(require("clsx"), 1);
|
|
35689
35716
|
|
|
35690
35717
|
// src/components/kbd/kbd-variants.ts
|
|
35691
35718
|
var import_class_variance_authority13 = require("class-variance-authority");
|
|
@@ -35821,7 +35848,7 @@ function Kbd({ size, variant, color, className, ...props }) {
|
|
|
35821
35848
|
return /* @__PURE__ */ (0, import_jsx_runtime447.jsx)(
|
|
35822
35849
|
"kbd",
|
|
35823
35850
|
{
|
|
35824
|
-
className: (0,
|
|
35851
|
+
className: (0, import_clsx20.default)(kbdVariants({ size, variant, color }), className),
|
|
35825
35852
|
...props
|
|
35826
35853
|
}
|
|
35827
35854
|
);
|
|
@@ -36617,7 +36644,7 @@ function InsertGroup({
|
|
|
36617
36644
|
|
|
36618
36645
|
// src/components/text-editor/partials/table-group.tsx
|
|
36619
36646
|
var import_react435 = require("@tiptap/react");
|
|
36620
|
-
var
|
|
36647
|
+
var import_clsx21 = __toESM(require("clsx"), 1);
|
|
36621
36648
|
var import_jsx_runtime451 = require("react/jsx-runtime");
|
|
36622
36649
|
function TableGroup({
|
|
36623
36650
|
editor,
|
|
@@ -36722,7 +36749,7 @@ function TableGroup({
|
|
|
36722
36749
|
"div",
|
|
36723
36750
|
{
|
|
36724
36751
|
title: "Heading",
|
|
36725
|
-
className: (0,
|
|
36752
|
+
className: (0, import_clsx21.default)(
|
|
36726
36753
|
"flex items-center gap-1 rounded-lg border border-gray-300 p-2",
|
|
36727
36754
|
activeState.isInTable && "bg-primary-1000",
|
|
36728
36755
|
(disabled || activeState.isInYoutube || activeState.isInImage) && "opacity-50"
|
|
@@ -36733,7 +36760,7 @@ function TableGroup({
|
|
|
36733
36760
|
{
|
|
36734
36761
|
name: "table",
|
|
36735
36762
|
size: 18,
|
|
36736
|
-
className: (0,
|
|
36763
|
+
className: (0, import_clsx21.default)(
|
|
36737
36764
|
activeState.isInTable ? "text-white" : "text-gray-900"
|
|
36738
36765
|
)
|
|
36739
36766
|
}
|
|
@@ -36743,7 +36770,7 @@ function TableGroup({
|
|
|
36743
36770
|
{
|
|
36744
36771
|
name: "angle-down-small",
|
|
36745
36772
|
size: 17,
|
|
36746
|
-
className: (0,
|
|
36773
|
+
className: (0, import_clsx21.default)(
|
|
36747
36774
|
activeState.isInTable ? "text-white" : "text-gray-900"
|
|
36748
36775
|
)
|
|
36749
36776
|
}
|
|
@@ -36765,7 +36792,7 @@ function TableGroup({
|
|
|
36765
36792
|
{
|
|
36766
36793
|
onClick: () => action.onClick(),
|
|
36767
36794
|
disabled: Boolean(action.disabled) || action.requiresTable && !activeState.isInTable,
|
|
36768
|
-
className: (0,
|
|
36795
|
+
className: (0, import_clsx21.default)(
|
|
36769
36796
|
"rounded-md border-transparent py-1 disabled:opacity-50",
|
|
36770
36797
|
Boolean(action.active) && "bg-primary-50 border-primary-300"
|
|
36771
36798
|
),
|
|
@@ -36782,7 +36809,7 @@ function TableGroup({
|
|
|
36782
36809
|
{
|
|
36783
36810
|
onClick: () => action.onClick(),
|
|
36784
36811
|
disabled: Boolean(action.disabled) || action.requiresTable && !activeState.isInTable,
|
|
36785
|
-
className: (0,
|
|
36812
|
+
className: (0, import_clsx21.default)(
|
|
36786
36813
|
"rounded-md border-transparent py-1 disabled:opacity-50",
|
|
36787
36814
|
Boolean(action.active) && "bg-primary-50 border-primary-300"
|
|
36788
36815
|
),
|
|
@@ -36799,7 +36826,7 @@ function TableGroup({
|
|
|
36799
36826
|
{
|
|
36800
36827
|
onClick: () => action.onClick(),
|
|
36801
36828
|
disabled: Boolean(action.disabled) || action.requiresTable && !activeState.isInTable,
|
|
36802
|
-
className: (0,
|
|
36829
|
+
className: (0, import_clsx21.default)(
|
|
36803
36830
|
"rounded-md border-transparent py-1 disabled:opacity-50",
|
|
36804
36831
|
Boolean(action.active) && "bg-primary-50 border-primary-300"
|
|
36805
36832
|
),
|
|
@@ -36933,7 +36960,7 @@ function TextEditor({
|
|
|
36933
36960
|
children: /* @__PURE__ */ (0, import_jsx_runtime452.jsxs)(
|
|
36934
36961
|
"div",
|
|
36935
36962
|
{
|
|
36936
|
-
className: (0,
|
|
36963
|
+
className: (0, import_clsx22.default)(
|
|
36937
36964
|
"relative flex w-full flex-col rounded-xl border",
|
|
36938
36965
|
errorMessages !== void 0 ? "border-danger-500" : "border-gray-300"
|
|
36939
36966
|
),
|
|
@@ -36941,7 +36968,7 @@ function TextEditor({
|
|
|
36941
36968
|
/* @__PURE__ */ (0, import_jsx_runtime452.jsx)(
|
|
36942
36969
|
"div",
|
|
36943
36970
|
{
|
|
36944
|
-
className: (0,
|
|
36971
|
+
className: (0, import_clsx22.default)(
|
|
36945
36972
|
"sticky top-0 z-10 rounded-t-xl bg-white",
|
|
36946
36973
|
toolbarClassName
|
|
36947
36974
|
),
|
|
@@ -36987,7 +37014,7 @@ function TextEditor({
|
|
|
36987
37014
|
import_extension_drag_handle_react.DragHandle,
|
|
36988
37015
|
{
|
|
36989
37016
|
editor,
|
|
36990
|
-
className: (0,
|
|
37017
|
+
className: (0, import_clsx22.default)("relative z-20", dragHandleClassName),
|
|
36991
37018
|
...dragHandleProps,
|
|
36992
37019
|
children: /* @__PURE__ */ (0, import_jsx_runtime452.jsx)("div", { className: "custom-drag-handle absolute left-0" })
|
|
36993
37020
|
}
|
|
@@ -36999,7 +37026,7 @@ function TextEditor({
|
|
|
36999
37026
|
extensions: [(0, import_lang_html.html)()],
|
|
37000
37027
|
onChange: (value2) => setHtmlValue(value2),
|
|
37001
37028
|
theme: import_codemirror_theme_dracula.dracula,
|
|
37002
|
-
className: (0,
|
|
37029
|
+
className: (0, import_clsx22.default)(isHtmlMode ? "block" : "hidden")
|
|
37003
37030
|
}
|
|
37004
37031
|
),
|
|
37005
37032
|
/* @__PURE__ */ (0, import_jsx_runtime452.jsx)(
|
|
@@ -37008,7 +37035,7 @@ function TextEditor({
|
|
|
37008
37035
|
placeholder,
|
|
37009
37036
|
disabled,
|
|
37010
37037
|
editor,
|
|
37011
|
-
className: (0,
|
|
37038
|
+
className: (0, import_clsx22.default)(
|
|
37012
37039
|
"*:min-h-100 *:translate-y-1 *:px-5 *:py-2 *:outline-none",
|
|
37013
37040
|
textEditorClassName,
|
|
37014
37041
|
isHtmlMode && "hidden"
|