@snapcall/design-system 1.13.1 → 1.14.1
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/index.d.mts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +326 -193
- package/dist/index.mjs +325 -193
- package/dist/tailwind.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -51946,7 +51946,7 @@ var CommandItem = React6.forwardRef(
|
|
|
51946
51946
|
__spreadProps(__spreadValues({
|
|
51947
51947
|
ref,
|
|
51948
51948
|
className: cn(
|
|
51949
|
-
"px-2 py-1.5 text-sm flex flex-col gap-1 text-gray-1000 rounded-md cursor-pointer focus-within:bg-gray-100 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 hover:bg-gray-50 active:bg-gray-100 data-[state=checked]:bg-gray-50",
|
|
51949
|
+
"px-2 py-1.5 text-sm flex flex-col gap-1 text-gray-1000 rounded-md cursor-pointer focus-within:bg-gray-100 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 hover:bg-gray-50 active:bg-gray-100 data-[state=checked]:bg-gray-50 data-[selected=true]:bg-gray-50",
|
|
51950
51950
|
className
|
|
51951
51951
|
)
|
|
51952
51952
|
}, props), {
|
|
@@ -51967,10 +51967,141 @@ var CommandItem = React6.forwardRef(
|
|
|
51967
51967
|
);
|
|
51968
51968
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
51969
51969
|
|
|
51970
|
+
// src/components/CreatableSelect/CreatableSelect.tsx
|
|
51971
|
+
import { useCallback, useRef, useState as useState2 } from "react";
|
|
51972
|
+
import { Command as CommandPrimitive2 } from "cmdk";
|
|
51973
|
+
import { jsx as jsx1232, jsxs as jsxs1011 } from "react/jsx-runtime";
|
|
51974
|
+
function CreatableSelect({
|
|
51975
|
+
isLoading,
|
|
51976
|
+
items,
|
|
51977
|
+
multiple,
|
|
51978
|
+
newLabel = "New: ",
|
|
51979
|
+
nothingFoundLabel = "No matches found",
|
|
51980
|
+
placeholder,
|
|
51981
|
+
value,
|
|
51982
|
+
valueKey,
|
|
51983
|
+
onValueChanged,
|
|
51984
|
+
getItemProps
|
|
51985
|
+
}) {
|
|
51986
|
+
const inputRef = useRef(null);
|
|
51987
|
+
const [open, setOpen] = useState2(false);
|
|
51988
|
+
const [inputValue, setInputValue] = useState2("");
|
|
51989
|
+
const handleUnselect = useCallback(
|
|
51990
|
+
(selected) => {
|
|
51991
|
+
onValueChanged(value.filter((s) => s !== selected));
|
|
51992
|
+
},
|
|
51993
|
+
[onValueChanged, value]
|
|
51994
|
+
);
|
|
51995
|
+
const handleKeyDown = useCallback(
|
|
51996
|
+
(e) => {
|
|
51997
|
+
const input = inputRef.current;
|
|
51998
|
+
if (input) {
|
|
51999
|
+
if (["Delete", "Backspace"].includes(e.key) && input.value === "") {
|
|
52000
|
+
onValueChanged([...value.slice(0, -1)]);
|
|
52001
|
+
}
|
|
52002
|
+
if (e.key === "Escape") {
|
|
52003
|
+
input.blur();
|
|
52004
|
+
}
|
|
52005
|
+
}
|
|
52006
|
+
},
|
|
52007
|
+
[onValueChanged, value]
|
|
52008
|
+
);
|
|
52009
|
+
const selectables = items.filter(
|
|
52010
|
+
(it) => !value.includes(it[valueKey])
|
|
52011
|
+
);
|
|
52012
|
+
return /* @__PURE__ */ jsxs1011(
|
|
52013
|
+
Command,
|
|
52014
|
+
{
|
|
52015
|
+
onKeyDown: handleKeyDown,
|
|
52016
|
+
className: "overflow-visible bg-transparent",
|
|
52017
|
+
children: [
|
|
52018
|
+
/* @__PURE__ */ jsx1232("div", { className: "flex px-3 py-2 min-h-9 w-full rounded-md border border-gray-200 bg-transparent focus-within:outline focus-within:outline-[2px] focus-within:outline-blue-300 focus-within:outline-offset-[2px]", children: /* @__PURE__ */ jsxs1011("div", { className: "flex flex-wrap w-full gap-1", children: [
|
|
52019
|
+
multiple && value.map((it) => /* @__PURE__ */ jsxs1011(Badge, { children: [
|
|
52020
|
+
it,
|
|
52021
|
+
/* @__PURE__ */ jsx1232(
|
|
52022
|
+
"button",
|
|
52023
|
+
{
|
|
52024
|
+
className: "ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
52025
|
+
onKeyDown: (e) => e.key === "Enter" && handleUnselect(it),
|
|
52026
|
+
onMouseDown: (e) => {
|
|
52027
|
+
e.preventDefault();
|
|
52028
|
+
e.stopPropagation();
|
|
52029
|
+
},
|
|
52030
|
+
onClick: () => handleUnselect(it),
|
|
52031
|
+
children: /* @__PURE__ */ jsx1232(XCloseIcon, { size: 12, className: "text-current" })
|
|
52032
|
+
}
|
|
52033
|
+
)
|
|
52034
|
+
] }, it)),
|
|
52035
|
+
!multiple && value.map((it) => /* @__PURE__ */ jsx1232("span", { className: "text-sm", children: it }, it)),
|
|
52036
|
+
/* @__PURE__ */ jsx1232(
|
|
52037
|
+
CommandPrimitive2.Input,
|
|
52038
|
+
{
|
|
52039
|
+
ref: inputRef,
|
|
52040
|
+
value: inputValue,
|
|
52041
|
+
onValueChange: (v) => {
|
|
52042
|
+
setInputValue(v);
|
|
52043
|
+
!multiple && onValueChanged([]);
|
|
52044
|
+
},
|
|
52045
|
+
onBlur: () => setOpen(false),
|
|
52046
|
+
onFocus: () => setOpen(true),
|
|
52047
|
+
placeholder: multiple || value.length === 0 ? placeholder : "",
|
|
52048
|
+
className: "flex-grow text-sm bg-transparent outline-none text-gray-1000 placeholder:text-gray-700"
|
|
52049
|
+
}
|
|
52050
|
+
)
|
|
52051
|
+
] }) }),
|
|
52052
|
+
/* @__PURE__ */ jsx1232("div", { className: "relative", children: open && /* @__PURE__ */ jsx1232("div", { className: "absolute z-50 w-full bg-white border rounded-md shadow-md outline-none top-2 text-gray-1000 animate-in", children: isLoading ? /* @__PURE__ */ jsx1232(CommandLoading, {}) : selectables.length < 1 ? /* @__PURE__ */ jsx1232("span", { className: "flex flex-col gap-4 p-4 text-center text-gray-700", children: nothingFoundLabel }) : /* @__PURE__ */ jsxs1011(CommandList, { className: "h-full overflow-auto", children: [
|
|
52053
|
+
selectables.map((it) => {
|
|
52054
|
+
const itemProps = getItemProps(it);
|
|
52055
|
+
return /* @__PURE__ */ jsx1232(
|
|
52056
|
+
CommandItem,
|
|
52057
|
+
__spreadValues({
|
|
52058
|
+
onMouseDown: (e) => {
|
|
52059
|
+
e.preventDefault();
|
|
52060
|
+
e.stopPropagation();
|
|
52061
|
+
},
|
|
52062
|
+
onSelect: () => {
|
|
52063
|
+
setInputValue("");
|
|
52064
|
+
onValueChanged(
|
|
52065
|
+
multiple ? [...value, it[valueKey]] : [it[valueKey]]
|
|
52066
|
+
);
|
|
52067
|
+
},
|
|
52068
|
+
className: "cursor-pointer"
|
|
52069
|
+
}, itemProps),
|
|
52070
|
+
it[valueKey]
|
|
52071
|
+
);
|
|
52072
|
+
}),
|
|
52073
|
+
inputValue && !value.includes(inputValue) && /* @__PURE__ */ jsx1232(
|
|
52074
|
+
CommandItem,
|
|
52075
|
+
{
|
|
52076
|
+
value: inputValue,
|
|
52077
|
+
onMouseDown: (e) => {
|
|
52078
|
+
e.preventDefault();
|
|
52079
|
+
e.stopPropagation();
|
|
52080
|
+
},
|
|
52081
|
+
onSelect: () => {
|
|
52082
|
+
onValueChanged(
|
|
52083
|
+
multiple ? [
|
|
52084
|
+
...value,
|
|
52085
|
+
...inputValue.split(",").map((it) => it.trim())
|
|
52086
|
+
] : [inputValue]
|
|
52087
|
+
);
|
|
52088
|
+
setInputValue("");
|
|
52089
|
+
},
|
|
52090
|
+
className: "cursor-pointer",
|
|
52091
|
+
children: `${newLabel}${inputValue}`
|
|
52092
|
+
},
|
|
52093
|
+
"new-item"
|
|
52094
|
+
)
|
|
52095
|
+
] }) }) })
|
|
52096
|
+
]
|
|
52097
|
+
}
|
|
52098
|
+
);
|
|
52099
|
+
}
|
|
52100
|
+
|
|
51970
52101
|
// src/components/Dialog/Dialog.tsx
|
|
51971
|
-
import * as
|
|
52102
|
+
import * as React8 from "react";
|
|
51972
52103
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
51973
|
-
import { jsx as
|
|
52104
|
+
import { jsx as jsx1233, jsxs as jsxs1012 } from "react/jsx-runtime";
|
|
51974
52105
|
var Dialog = DialogPrimitive.Root;
|
|
51975
52106
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
51976
52107
|
var DialogPortal = (_a) => {
|
|
@@ -51979,12 +52110,12 @@ var DialogPortal = (_a) => {
|
|
|
51979
52110
|
} = _b, props = __objRest(_b, [
|
|
51980
52111
|
"className"
|
|
51981
52112
|
]);
|
|
51982
|
-
return /* @__PURE__ */
|
|
52113
|
+
return /* @__PURE__ */ jsx1233(DialogPrimitive.Portal, __spreadValues({ className: cn(className) }, props));
|
|
51983
52114
|
};
|
|
51984
52115
|
DialogPortal.displayName = DialogPrimitive.Portal.displayName;
|
|
51985
|
-
var DialogOverlay =
|
|
52116
|
+
var DialogOverlay = React8.forwardRef((_a, ref) => {
|
|
51986
52117
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
51987
|
-
return /* @__PURE__ */
|
|
52118
|
+
return /* @__PURE__ */ jsx1233(
|
|
51988
52119
|
DialogPrimitive.Overlay,
|
|
51989
52120
|
__spreadValues({
|
|
51990
52121
|
ref,
|
|
@@ -51996,11 +52127,11 @@ var DialogOverlay = React7.forwardRef((_a, ref) => {
|
|
|
51996
52127
|
);
|
|
51997
52128
|
});
|
|
51998
52129
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
51999
|
-
var DialogContent =
|
|
52130
|
+
var DialogContent = React8.forwardRef((_a, ref) => {
|
|
52000
52131
|
var _b = _a, { className, children, bottomSheet = false } = _b, props = __objRest(_b, ["className", "children", "bottomSheet"]);
|
|
52001
|
-
return /* @__PURE__ */
|
|
52002
|
-
/* @__PURE__ */
|
|
52003
|
-
/* @__PURE__ */
|
|
52132
|
+
return /* @__PURE__ */ jsxs1012(DialogPortal, { children: [
|
|
52133
|
+
/* @__PURE__ */ jsx1233(DialogOverlay, {}),
|
|
52134
|
+
/* @__PURE__ */ jsxs1012(
|
|
52004
52135
|
DialogPrimitive.Content,
|
|
52005
52136
|
__spreadProps(__spreadValues({
|
|
52006
52137
|
ref,
|
|
@@ -52017,7 +52148,7 @@ var DialogContent = React7.forwardRef((_a, ref) => {
|
|
|
52017
52148
|
}, props), {
|
|
52018
52149
|
children: [
|
|
52019
52150
|
children,
|
|
52020
|
-
/* @__PURE__ */
|
|
52151
|
+
/* @__PURE__ */ jsxs1012(
|
|
52021
52152
|
DialogPrimitive.Close,
|
|
52022
52153
|
{
|
|
52023
52154
|
className: cn(
|
|
@@ -52026,8 +52157,8 @@ var DialogContent = React7.forwardRef((_a, ref) => {
|
|
|
52026
52157
|
"absolute right-6 top-6"
|
|
52027
52158
|
),
|
|
52028
52159
|
children: [
|
|
52029
|
-
/* @__PURE__ */
|
|
52030
|
-
/* @__PURE__ */
|
|
52160
|
+
/* @__PURE__ */ jsx1233(XCloseIcon, { className: "w-3 h-3" }),
|
|
52161
|
+
/* @__PURE__ */ jsx1233("span", { className: "sr-only", children: "Close" })
|
|
52031
52162
|
]
|
|
52032
52163
|
}
|
|
52033
52164
|
)
|
|
@@ -52043,7 +52174,7 @@ var DialogHeader = (_a) => {
|
|
|
52043
52174
|
} = _b, props = __objRest(_b, [
|
|
52044
52175
|
"className"
|
|
52045
52176
|
]);
|
|
52046
|
-
return /* @__PURE__ */
|
|
52177
|
+
return /* @__PURE__ */ jsx1233(
|
|
52047
52178
|
"div",
|
|
52048
52179
|
__spreadValues({
|
|
52049
52180
|
className: cn(
|
|
@@ -52060,7 +52191,7 @@ var DialogFooter = (_a) => {
|
|
|
52060
52191
|
} = _b, props = __objRest(_b, [
|
|
52061
52192
|
"className"
|
|
52062
52193
|
]);
|
|
52063
|
-
return /* @__PURE__ */
|
|
52194
|
+
return /* @__PURE__ */ jsx1233(
|
|
52064
52195
|
"div",
|
|
52065
52196
|
__spreadValues({
|
|
52066
52197
|
className: cn(
|
|
@@ -52071,9 +52202,9 @@ var DialogFooter = (_a) => {
|
|
|
52071
52202
|
);
|
|
52072
52203
|
};
|
|
52073
52204
|
DialogFooter.displayName = "DialogFooter";
|
|
52074
|
-
var DialogTitle =
|
|
52205
|
+
var DialogTitle = React8.forwardRef((_a, ref) => {
|
|
52075
52206
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52076
|
-
return /* @__PURE__ */
|
|
52207
|
+
return /* @__PURE__ */ jsx1233(
|
|
52077
52208
|
DialogPrimitive.Title,
|
|
52078
52209
|
__spreadValues({
|
|
52079
52210
|
ref,
|
|
@@ -52082,9 +52213,9 @@ var DialogTitle = React7.forwardRef((_a, ref) => {
|
|
|
52082
52213
|
);
|
|
52083
52214
|
});
|
|
52084
52215
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
52085
|
-
var DialogDescription =
|
|
52216
|
+
var DialogDescription = React8.forwardRef((_a, ref) => {
|
|
52086
52217
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52087
|
-
return /* @__PURE__ */
|
|
52218
|
+
return /* @__PURE__ */ jsx1233(
|
|
52088
52219
|
DialogPrimitive.Description,
|
|
52089
52220
|
__spreadValues({
|
|
52090
52221
|
ref,
|
|
@@ -52095,9 +52226,9 @@ var DialogDescription = React7.forwardRef((_a, ref) => {
|
|
|
52095
52226
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
52096
52227
|
|
|
52097
52228
|
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
52098
|
-
import
|
|
52229
|
+
import React9 from "react";
|
|
52099
52230
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
52100
|
-
import { jsx as
|
|
52231
|
+
import { jsx as jsx1234, jsxs as jsxs1013 } from "react/jsx-runtime";
|
|
52101
52232
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
52102
52233
|
var DropdownMenuItemBase = ({
|
|
52103
52234
|
icon,
|
|
@@ -52109,7 +52240,7 @@ var DropdownMenuItemBase = ({
|
|
|
52109
52240
|
description,
|
|
52110
52241
|
hasSubNav
|
|
52111
52242
|
}) => {
|
|
52112
|
-
return /* @__PURE__ */
|
|
52243
|
+
return /* @__PURE__ */ jsxs1013(
|
|
52113
52244
|
"div",
|
|
52114
52245
|
{
|
|
52115
52246
|
className: cn(
|
|
@@ -52118,9 +52249,9 @@ var DropdownMenuItemBase = ({
|
|
|
52118
52249
|
className
|
|
52119
52250
|
),
|
|
52120
52251
|
children: [
|
|
52121
|
-
/* @__PURE__ */
|
|
52122
|
-
checkbox && /* @__PURE__ */
|
|
52123
|
-
icon &&
|
|
52252
|
+
/* @__PURE__ */ jsxs1013("div", { className: "flex items-center gap-2", children: [
|
|
52253
|
+
checkbox && /* @__PURE__ */ jsx1234(Checkbox, { checked }),
|
|
52254
|
+
icon && React9.cloneElement(icon, {
|
|
52124
52255
|
size: 16,
|
|
52125
52256
|
className: cn(
|
|
52126
52257
|
"flex-shrink-0",
|
|
@@ -52128,15 +52259,15 @@ var DropdownMenuItemBase = ({
|
|
|
52128
52259
|
icon.props.className
|
|
52129
52260
|
)
|
|
52130
52261
|
}),
|
|
52131
|
-
/* @__PURE__ */
|
|
52132
|
-
hasSubNav && /* @__PURE__ */
|
|
52262
|
+
/* @__PURE__ */ jsx1234("span", { className: "flex gap-2 grow", children }),
|
|
52263
|
+
hasSubNav && /* @__PURE__ */ jsx1234("div", { className: "inline-flex items-center justify-end", children: /* @__PURE__ */ jsx1234(ChevronRightIcon, { size: 16, className: "text-gray-1000" }) })
|
|
52133
52264
|
] }),
|
|
52134
|
-
description && /* @__PURE__ */
|
|
52265
|
+
description && /* @__PURE__ */ jsx1234("div", { className: "text-xs text-gray-700", children: description })
|
|
52135
52266
|
]
|
|
52136
52267
|
}
|
|
52137
52268
|
);
|
|
52138
52269
|
};
|
|
52139
|
-
var DropdownMenuCheckboxItem =
|
|
52270
|
+
var DropdownMenuCheckboxItem = React9.forwardRef(
|
|
52140
52271
|
(_a, forwardedRef) => {
|
|
52141
52272
|
var _b = _a, { className, children, checked, icon, description, destructive } = _b, props = __objRest(_b, ["className", "children", "checked", "icon", "description", "destructive"]);
|
|
52142
52273
|
const extraProps = {
|
|
@@ -52146,20 +52277,20 @@ var DropdownMenuCheckboxItem = React8.forwardRef(
|
|
|
52146
52277
|
checked,
|
|
52147
52278
|
className
|
|
52148
52279
|
};
|
|
52149
|
-
return /* @__PURE__ */
|
|
52280
|
+
return /* @__PURE__ */ jsx1234(
|
|
52150
52281
|
DropdownMenuPrimitive.CheckboxItem,
|
|
52151
52282
|
__spreadProps(__spreadValues({
|
|
52152
52283
|
checked
|
|
52153
52284
|
}, props), {
|
|
52154
52285
|
ref: forwardedRef,
|
|
52155
52286
|
className: "outline-none select-none group",
|
|
52156
|
-
children: /* @__PURE__ */
|
|
52287
|
+
children: /* @__PURE__ */ jsx1234(DropdownMenuItemBase, __spreadProps(__spreadValues({ checkbox: true }, extraProps), { children }))
|
|
52157
52288
|
})
|
|
52158
52289
|
);
|
|
52159
52290
|
}
|
|
52160
52291
|
);
|
|
52161
52292
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
52162
|
-
var DropdownMenuContent =
|
|
52293
|
+
var DropdownMenuContent = React9.forwardRef(
|
|
52163
52294
|
(_a, forwardedRef) => {
|
|
52164
52295
|
var _b = _a, {
|
|
52165
52296
|
children,
|
|
@@ -52174,7 +52305,7 @@ var DropdownMenuContent = React8.forwardRef(
|
|
|
52174
52305
|
"sideOffset",
|
|
52175
52306
|
"align"
|
|
52176
52307
|
]);
|
|
52177
|
-
return /* @__PURE__ */
|
|
52308
|
+
return /* @__PURE__ */ jsx1234(
|
|
52178
52309
|
DropdownMenuPrimitive.Content,
|
|
52179
52310
|
__spreadProps(__spreadValues({
|
|
52180
52311
|
className: cn(
|
|
@@ -52193,7 +52324,7 @@ var DropdownMenuContent = React8.forwardRef(
|
|
|
52193
52324
|
);
|
|
52194
52325
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
52195
52326
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
52196
|
-
var DropdownMenuItem =
|
|
52327
|
+
var DropdownMenuItem = React9.forwardRef(
|
|
52197
52328
|
(_a, forwardedRef) => {
|
|
52198
52329
|
var _b = _a, { className, children, icon, description, destructive } = _b, props = __objRest(_b, ["className", "children", "icon", "description", "destructive"]);
|
|
52199
52330
|
const extraProps = {
|
|
@@ -52202,20 +52333,20 @@ var DropdownMenuItem = React8.forwardRef(
|
|
|
52202
52333
|
icon,
|
|
52203
52334
|
className
|
|
52204
52335
|
};
|
|
52205
|
-
return /* @__PURE__ */
|
|
52336
|
+
return /* @__PURE__ */ jsx1234(
|
|
52206
52337
|
DropdownMenuPrimitive.Item,
|
|
52207
52338
|
__spreadProps(__spreadValues({}, props), {
|
|
52208
52339
|
ref: forwardedRef,
|
|
52209
52340
|
className: "outline-none select-none group",
|
|
52210
|
-
children: /* @__PURE__ */
|
|
52341
|
+
children: /* @__PURE__ */ jsx1234(DropdownMenuItemBase, __spreadProps(__spreadValues({}, extraProps), { children }))
|
|
52211
52342
|
})
|
|
52212
52343
|
);
|
|
52213
52344
|
}
|
|
52214
52345
|
);
|
|
52215
52346
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
52216
|
-
var DropdownMenuLabel =
|
|
52347
|
+
var DropdownMenuLabel = React9.forwardRef((_a, forwardedRef) => {
|
|
52217
52348
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52218
|
-
return /* @__PURE__ */
|
|
52349
|
+
return /* @__PURE__ */ jsx1234(
|
|
52219
52350
|
DropdownMenuPrimitive.Label,
|
|
52220
52351
|
__spreadProps(__spreadValues({
|
|
52221
52352
|
className: cn(
|
|
@@ -52230,7 +52361,7 @@ var DropdownMenuLabel = React8.forwardRef((_a, forwardedRef) => {
|
|
|
52230
52361
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
52231
52362
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
52232
52363
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
52233
|
-
var DropdownMenuRadioItem =
|
|
52364
|
+
var DropdownMenuRadioItem = React9.forwardRef(
|
|
52234
52365
|
(_a, forwardedRef) => {
|
|
52235
52366
|
var _b = _a, { className, children, icon, description, destructive } = _b, props = __objRest(_b, ["className", "children", "icon", "description", "destructive"]);
|
|
52236
52367
|
const extraProps = {
|
|
@@ -52239,20 +52370,20 @@ var DropdownMenuRadioItem = React8.forwardRef(
|
|
|
52239
52370
|
icon,
|
|
52240
52371
|
className
|
|
52241
52372
|
};
|
|
52242
|
-
return /* @__PURE__ */
|
|
52373
|
+
return /* @__PURE__ */ jsx1234(
|
|
52243
52374
|
DropdownMenuPrimitive.RadioItem,
|
|
52244
52375
|
__spreadProps(__spreadValues({}, props), {
|
|
52245
52376
|
ref: forwardedRef,
|
|
52246
52377
|
className: "outline-none select-none group",
|
|
52247
|
-
children: /* @__PURE__ */
|
|
52378
|
+
children: /* @__PURE__ */ jsx1234(DropdownMenuItemBase, __spreadProps(__spreadValues({}, extraProps), { children }))
|
|
52248
52379
|
})
|
|
52249
52380
|
);
|
|
52250
52381
|
}
|
|
52251
52382
|
);
|
|
52252
52383
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
52253
|
-
var DropdownMenuSeparator =
|
|
52384
|
+
var DropdownMenuSeparator = React9.forwardRef((_a, forwardedRef) => {
|
|
52254
52385
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52255
|
-
return /* @__PURE__ */
|
|
52386
|
+
return /* @__PURE__ */ jsx1234(
|
|
52256
52387
|
DropdownMenuPrimitive.Separator,
|
|
52257
52388
|
__spreadProps(__spreadValues({
|
|
52258
52389
|
className: cn("my-1 border-b border-gray-200", className)
|
|
@@ -52263,9 +52394,9 @@ var DropdownMenuSeparator = React8.forwardRef((_a, forwardedRef) => {
|
|
|
52263
52394
|
});
|
|
52264
52395
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
52265
52396
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
52266
|
-
var DropdownMenuSubContent =
|
|
52397
|
+
var DropdownMenuSubContent = React9.forwardRef((_a, forwardedRef) => {
|
|
52267
52398
|
var _b = _a, { children, className, sideOffset = 8 } = _b, props = __objRest(_b, ["children", "className", "sideOffset"]);
|
|
52268
|
-
return /* @__PURE__ */
|
|
52399
|
+
return /* @__PURE__ */ jsx1234(
|
|
52269
52400
|
DropdownMenuPrimitive.SubContent,
|
|
52270
52401
|
__spreadProps(__spreadValues({
|
|
52271
52402
|
className: cn(
|
|
@@ -52280,7 +52411,7 @@ var DropdownMenuSubContent = React8.forwardRef((_a, forwardedRef) => {
|
|
|
52280
52411
|
);
|
|
52281
52412
|
});
|
|
52282
52413
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
52283
|
-
var DropdownMenuSubTrigger =
|
|
52414
|
+
var DropdownMenuSubTrigger = React9.forwardRef(
|
|
52284
52415
|
(_a, forwardedRef) => {
|
|
52285
52416
|
var _b = _a, { className, children, icon, description, destructive } = _b, props = __objRest(_b, ["className", "children", "icon", "description", "destructive"]);
|
|
52286
52417
|
const extraProps = {
|
|
@@ -52289,12 +52420,12 @@ var DropdownMenuSubTrigger = React8.forwardRef(
|
|
|
52289
52420
|
icon,
|
|
52290
52421
|
className
|
|
52291
52422
|
};
|
|
52292
|
-
return /* @__PURE__ */
|
|
52423
|
+
return /* @__PURE__ */ jsx1234(
|
|
52293
52424
|
DropdownMenuPrimitive.SubTrigger,
|
|
52294
52425
|
__spreadProps(__spreadValues({}, props), {
|
|
52295
52426
|
ref: forwardedRef,
|
|
52296
52427
|
className: "outline-none select-none group",
|
|
52297
|
-
children: /* @__PURE__ */
|
|
52428
|
+
children: /* @__PURE__ */ jsx1234(DropdownMenuItemBase, __spreadProps(__spreadValues({ hasSubNav: true }, extraProps), { children }))
|
|
52298
52429
|
})
|
|
52299
52430
|
);
|
|
52300
52431
|
}
|
|
@@ -52303,16 +52434,16 @@ DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayNam
|
|
|
52303
52434
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
52304
52435
|
|
|
52305
52436
|
// src/components/FilterButton/FilterButton.tsx
|
|
52306
|
-
import
|
|
52307
|
-
import { Fragment, jsx as
|
|
52308
|
-
var FilterButton =
|
|
52437
|
+
import React10 from "react";
|
|
52438
|
+
import { Fragment, jsx as jsx1235, jsxs as jsxs1014 } from "react/jsx-runtime";
|
|
52439
|
+
var FilterButton = React10.forwardRef(
|
|
52309
52440
|
(_a, ref) => {
|
|
52310
52441
|
var _b = _a, { selectedCount, children, size = "sm", variant = "outline" } = _b, props = __objRest(_b, ["selectedCount", "children", "size", "variant"]);
|
|
52311
|
-
return /* @__PURE__ */
|
|
52442
|
+
return /* @__PURE__ */ jsxs1014(Button, __spreadProps(__spreadValues({ ref, variant, size }, props), { children: [
|
|
52312
52443
|
children,
|
|
52313
|
-
selectedCount !== void 0 && selectedCount > 0 && /* @__PURE__ */
|
|
52314
|
-
/* @__PURE__ */
|
|
52315
|
-
/* @__PURE__ */
|
|
52444
|
+
selectedCount !== void 0 && selectedCount > 0 && /* @__PURE__ */ jsxs1014(Fragment, { children: [
|
|
52445
|
+
/* @__PURE__ */ jsx1235("span", { className: "h-4 border-l border-gray-200" }),
|
|
52446
|
+
/* @__PURE__ */ jsx1235(Badge, { variant: "fill", color: "blue", children: selectedCount })
|
|
52316
52447
|
] })
|
|
52317
52448
|
] }));
|
|
52318
52449
|
}
|
|
@@ -52320,7 +52451,7 @@ var FilterButton = React9.forwardRef(
|
|
|
52320
52451
|
FilterButton.displayName = "FilterButton";
|
|
52321
52452
|
|
|
52322
52453
|
// src/components/Form/Form.tsx
|
|
52323
|
-
import * as
|
|
52454
|
+
import * as React12 from "react";
|
|
52324
52455
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
52325
52456
|
import {
|
|
52326
52457
|
Controller,
|
|
@@ -52329,12 +52460,12 @@ import {
|
|
|
52329
52460
|
} from "react-hook-form";
|
|
52330
52461
|
|
|
52331
52462
|
// src/components/Label/Label.tsx
|
|
52332
|
-
import * as
|
|
52463
|
+
import * as React11 from "react";
|
|
52333
52464
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
52334
|
-
import { jsx as
|
|
52335
|
-
var Label2 =
|
|
52465
|
+
import { jsx as jsx1236 } from "react/jsx-runtime";
|
|
52466
|
+
var Label2 = React11.forwardRef((_a, ref) => {
|
|
52336
52467
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52337
|
-
return /* @__PURE__ */
|
|
52468
|
+
return /* @__PURE__ */ jsx1236(
|
|
52338
52469
|
LabelPrimitive.Root,
|
|
52339
52470
|
__spreadValues({
|
|
52340
52471
|
ref,
|
|
@@ -52348,24 +52479,24 @@ var Label2 = React10.forwardRef((_a, ref) => {
|
|
|
52348
52479
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
52349
52480
|
|
|
52350
52481
|
// src/components/Form/Form.tsx
|
|
52351
|
-
import { jsx as
|
|
52482
|
+
import { jsx as jsx1237 } from "react/jsx-runtime";
|
|
52352
52483
|
var Form = FormProvider;
|
|
52353
|
-
var FormFieldContext =
|
|
52484
|
+
var FormFieldContext = React12.createContext(
|
|
52354
52485
|
{}
|
|
52355
52486
|
);
|
|
52356
52487
|
var FormField = (_a) => {
|
|
52357
52488
|
var props = __objRest(_a, []);
|
|
52358
|
-
return /* @__PURE__ */
|
|
52489
|
+
return /* @__PURE__ */ jsx1237(
|
|
52359
52490
|
FormFieldContext.Provider,
|
|
52360
52491
|
{
|
|
52361
52492
|
value: { name: props.name, isDisabled: props.disabled },
|
|
52362
|
-
children: /* @__PURE__ */
|
|
52493
|
+
children: /* @__PURE__ */ jsx1237(Controller, __spreadValues({}, props))
|
|
52363
52494
|
}
|
|
52364
52495
|
);
|
|
52365
52496
|
};
|
|
52366
52497
|
var useFormField = () => {
|
|
52367
|
-
const fieldContext =
|
|
52368
|
-
const itemContext =
|
|
52498
|
+
const fieldContext = React12.useContext(FormFieldContext);
|
|
52499
|
+
const itemContext = React12.useContext(FormItemContext);
|
|
52369
52500
|
const { getFieldState, formState } = useFormContext();
|
|
52370
52501
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
52371
52502
|
if (!fieldContext) {
|
|
@@ -52381,13 +52512,13 @@ var useFormField = () => {
|
|
|
52381
52512
|
formMessageId: `${id}-form-item-message`
|
|
52382
52513
|
}, fieldState);
|
|
52383
52514
|
};
|
|
52384
|
-
var FormItemContext =
|
|
52515
|
+
var FormItemContext = React12.createContext(
|
|
52385
52516
|
{}
|
|
52386
52517
|
);
|
|
52387
|
-
var FormItem =
|
|
52518
|
+
var FormItem = React12.forwardRef((_a, ref) => {
|
|
52388
52519
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52389
|
-
const id =
|
|
52390
|
-
return /* @__PURE__ */
|
|
52520
|
+
const id = React12.useId();
|
|
52521
|
+
return /* @__PURE__ */ jsx1237(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx1237(
|
|
52391
52522
|
"div",
|
|
52392
52523
|
__spreadValues({
|
|
52393
52524
|
ref,
|
|
@@ -52396,10 +52527,10 @@ var FormItem = React11.forwardRef((_a, ref) => {
|
|
|
52396
52527
|
) });
|
|
52397
52528
|
});
|
|
52398
52529
|
FormItem.displayName = "FormItem";
|
|
52399
|
-
var FormLabel =
|
|
52530
|
+
var FormLabel = React12.forwardRef((_a, ref) => {
|
|
52400
52531
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52401
52532
|
const { isDisabled, formItemId } = useFormField();
|
|
52402
|
-
return /* @__PURE__ */
|
|
52533
|
+
return /* @__PURE__ */ jsx1237(
|
|
52403
52534
|
Label2,
|
|
52404
52535
|
__spreadValues({
|
|
52405
52536
|
ref,
|
|
@@ -52409,10 +52540,10 @@ var FormLabel = React11.forwardRef((_a, ref) => {
|
|
|
52409
52540
|
);
|
|
52410
52541
|
});
|
|
52411
52542
|
FormLabel.displayName = "FormLabel";
|
|
52412
|
-
var FormControl =
|
|
52543
|
+
var FormControl = React12.forwardRef((_a, ref) => {
|
|
52413
52544
|
var props = __objRest(_a, []);
|
|
52414
52545
|
const { error, isDisabled, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
52415
|
-
return /* @__PURE__ */
|
|
52546
|
+
return /* @__PURE__ */ jsx1237(
|
|
52416
52547
|
Slot2,
|
|
52417
52548
|
__spreadValues({
|
|
52418
52549
|
ref,
|
|
@@ -52425,10 +52556,10 @@ var FormControl = React11.forwardRef((_a, ref) => {
|
|
|
52425
52556
|
);
|
|
52426
52557
|
});
|
|
52427
52558
|
FormControl.displayName = "FormControl";
|
|
52428
|
-
var FormDescription =
|
|
52559
|
+
var FormDescription = React12.forwardRef((_a, ref) => {
|
|
52429
52560
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52430
52561
|
const { formDescriptionId, isDisabled } = useFormField();
|
|
52431
|
-
return /* @__PURE__ */
|
|
52562
|
+
return /* @__PURE__ */ jsx1237(
|
|
52432
52563
|
"p",
|
|
52433
52564
|
__spreadValues({
|
|
52434
52565
|
ref,
|
|
@@ -52442,12 +52573,12 @@ var FormDescription = React11.forwardRef((_a, ref) => {
|
|
|
52442
52573
|
);
|
|
52443
52574
|
});
|
|
52444
52575
|
FormDescription.displayName = "FormDescription";
|
|
52445
|
-
var FormMessage =
|
|
52576
|
+
var FormMessage = React12.forwardRef((_a, ref) => {
|
|
52446
52577
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
52447
52578
|
const { error, isDisabled, formMessageId } = useFormField();
|
|
52448
52579
|
const body = error ? String(error == null ? void 0 : error.message) : children;
|
|
52449
52580
|
const textColorClassName = error ? "text-red-700" : "text-gray-700";
|
|
52450
|
-
return /* @__PURE__ */
|
|
52581
|
+
return /* @__PURE__ */ jsx1237(
|
|
52451
52582
|
"p",
|
|
52452
52583
|
__spreadProps(__spreadValues({
|
|
52453
52584
|
ref,
|
|
@@ -52466,10 +52597,10 @@ var FormMessage = React11.forwardRef((_a, ref) => {
|
|
|
52466
52597
|
FormMessage.displayName = "FormMessage";
|
|
52467
52598
|
|
|
52468
52599
|
// src/components/Input/Input.tsx
|
|
52469
|
-
import * as
|
|
52600
|
+
import * as React13 from "react";
|
|
52470
52601
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
52471
|
-
import { jsx as
|
|
52472
|
-
var Input =
|
|
52602
|
+
import { jsx as jsx1238, jsxs as jsxs1015 } from "react/jsx-runtime";
|
|
52603
|
+
var Input = React13.forwardRef(
|
|
52473
52604
|
(_a, ref) => {
|
|
52474
52605
|
var _b = _a, {
|
|
52475
52606
|
className,
|
|
@@ -52487,8 +52618,8 @@ var Input = React12.forwardRef(
|
|
|
52487
52618
|
"suffixEnchancer"
|
|
52488
52619
|
]);
|
|
52489
52620
|
const isDisabled = !!props["data-is-disabled"] || disabled;
|
|
52490
|
-
return /* @__PURE__ */
|
|
52491
|
-
/* @__PURE__ */
|
|
52621
|
+
return /* @__PURE__ */ jsxs1015("div", { className: "flex gap-2", children: [
|
|
52622
|
+
/* @__PURE__ */ jsxs1015(
|
|
52492
52623
|
"div",
|
|
52493
52624
|
{
|
|
52494
52625
|
className: cn(
|
|
@@ -52500,7 +52631,7 @@ var Input = React12.forwardRef(
|
|
|
52500
52631
|
className
|
|
52501
52632
|
),
|
|
52502
52633
|
children: [
|
|
52503
|
-
prefixEnchancer && /* @__PURE__ */
|
|
52634
|
+
prefixEnchancer && /* @__PURE__ */ jsx1238(
|
|
52504
52635
|
Slot3,
|
|
52505
52636
|
{
|
|
52506
52637
|
className: cn(
|
|
@@ -52510,7 +52641,7 @@ var Input = React12.forwardRef(
|
|
|
52510
52641
|
children: prefixEnchancer
|
|
52511
52642
|
}
|
|
52512
52643
|
),
|
|
52513
|
-
/* @__PURE__ */
|
|
52644
|
+
/* @__PURE__ */ jsx1238(
|
|
52514
52645
|
"input",
|
|
52515
52646
|
__spreadProps(__spreadValues({}, props), {
|
|
52516
52647
|
disabled: isDisabled,
|
|
@@ -52519,7 +52650,7 @@ var Input = React12.forwardRef(
|
|
|
52519
52650
|
ref
|
|
52520
52651
|
})
|
|
52521
52652
|
),
|
|
52522
|
-
suffixEnchancer && /* @__PURE__ */
|
|
52653
|
+
suffixEnchancer && /* @__PURE__ */ jsx1238(
|
|
52523
52654
|
Slot3,
|
|
52524
52655
|
{
|
|
52525
52656
|
className: cn(
|
|
@@ -52532,7 +52663,7 @@ var Input = React12.forwardRef(
|
|
|
52532
52663
|
]
|
|
52533
52664
|
}
|
|
52534
52665
|
),
|
|
52535
|
-
button &&
|
|
52666
|
+
button && React13.cloneElement(button, {
|
|
52536
52667
|
size: "sm",
|
|
52537
52668
|
disabled: isDisabled,
|
|
52538
52669
|
className: cn("flex-shrink-0", button.props.className)
|
|
@@ -52543,7 +52674,7 @@ var Input = React12.forwardRef(
|
|
|
52543
52674
|
Input.displayName = "Input";
|
|
52544
52675
|
|
|
52545
52676
|
// src/components/Pagination/Pagination.tsx
|
|
52546
|
-
import { jsx as
|
|
52677
|
+
import { jsx as jsx1239, jsxs as jsxs1016 } from "react/jsx-runtime";
|
|
52547
52678
|
var PaginationPageChoice = /* @__PURE__ */ ((PaginationPageChoice2) => {
|
|
52548
52679
|
PaginationPageChoice2["FIRST"] = "FIRST";
|
|
52549
52680
|
PaginationPageChoice2["PREVIOUS"] = "PREVIOUS";
|
|
@@ -52559,12 +52690,12 @@ var Pagination = ({
|
|
|
52559
52690
|
onPageChange,
|
|
52560
52691
|
className
|
|
52561
52692
|
}) => {
|
|
52562
|
-
return /* @__PURE__ */
|
|
52563
|
-
totalRowsCaption && /* @__PURE__ */
|
|
52564
|
-
/* @__PURE__ */
|
|
52565
|
-
currentPageCation && /* @__PURE__ */
|
|
52566
|
-
/* @__PURE__ */
|
|
52567
|
-
/* @__PURE__ */
|
|
52693
|
+
return /* @__PURE__ */ jsxs1016("div", { className: cn("flex items-center justify-between px-2", className), children: [
|
|
52694
|
+
totalRowsCaption && /* @__PURE__ */ jsx1239("div", { className: "flex-1 text-sm text-gray-700", children: totalRowsCaption }),
|
|
52695
|
+
/* @__PURE__ */ jsxs1016("div", { className: "flex items-center gap-4", children: [
|
|
52696
|
+
currentPageCation && /* @__PURE__ */ jsx1239("div", { className: "flex items-center justify-center text-sm font-medium text-gray-1000", children: currentPageCation }),
|
|
52697
|
+
/* @__PURE__ */ jsxs1016("div", { className: "flex items-center gap-2", children: [
|
|
52698
|
+
/* @__PURE__ */ jsx1239(
|
|
52568
52699
|
Button,
|
|
52569
52700
|
{
|
|
52570
52701
|
variant: "outline",
|
|
@@ -52572,10 +52703,10 @@ var Pagination = ({
|
|
|
52572
52703
|
size: "sm",
|
|
52573
52704
|
onClick: () => onPageChange("FIRST" /* FIRST */),
|
|
52574
52705
|
disabled: !previousPageAvailable,
|
|
52575
|
-
children: /* @__PURE__ */
|
|
52706
|
+
children: /* @__PURE__ */ jsx1239(ChevronLeftDoubleIcon, { size: "16" })
|
|
52576
52707
|
}
|
|
52577
52708
|
),
|
|
52578
|
-
/* @__PURE__ */
|
|
52709
|
+
/* @__PURE__ */ jsx1239(
|
|
52579
52710
|
Button,
|
|
52580
52711
|
{
|
|
52581
52712
|
variant: "outline",
|
|
@@ -52583,10 +52714,10 @@ var Pagination = ({
|
|
|
52583
52714
|
size: "sm",
|
|
52584
52715
|
onClick: () => onPageChange("PREVIOUS" /* PREVIOUS */),
|
|
52585
52716
|
disabled: !previousPageAvailable,
|
|
52586
|
-
children: /* @__PURE__ */
|
|
52717
|
+
children: /* @__PURE__ */ jsx1239(ChevronLeftIcon, { size: "16" })
|
|
52587
52718
|
}
|
|
52588
52719
|
),
|
|
52589
|
-
/* @__PURE__ */
|
|
52720
|
+
/* @__PURE__ */ jsx1239(
|
|
52590
52721
|
Button,
|
|
52591
52722
|
{
|
|
52592
52723
|
variant: "outline",
|
|
@@ -52594,10 +52725,10 @@ var Pagination = ({
|
|
|
52594
52725
|
size: "sm",
|
|
52595
52726
|
onClick: () => onPageChange("NEXT" /* NEXT */),
|
|
52596
52727
|
disabled: !nextPageAvailable,
|
|
52597
|
-
children: /* @__PURE__ */
|
|
52728
|
+
children: /* @__PURE__ */ jsx1239(ChevronRightIcon, { size: "16" })
|
|
52598
52729
|
}
|
|
52599
52730
|
),
|
|
52600
|
-
/* @__PURE__ */
|
|
52731
|
+
/* @__PURE__ */ jsx1239(
|
|
52601
52732
|
Button,
|
|
52602
52733
|
{
|
|
52603
52734
|
variant: "outline",
|
|
@@ -52605,7 +52736,7 @@ var Pagination = ({
|
|
|
52605
52736
|
size: "sm",
|
|
52606
52737
|
onClick: () => onPageChange("LAST" /* LAST */),
|
|
52607
52738
|
disabled: !nextPageAvailable,
|
|
52608
|
-
children: /* @__PURE__ */
|
|
52739
|
+
children: /* @__PURE__ */ jsx1239(ChevronRightDoubleIcon, { size: "16" })
|
|
52609
52740
|
}
|
|
52610
52741
|
)
|
|
52611
52742
|
] })
|
|
@@ -52614,14 +52745,14 @@ var Pagination = ({
|
|
|
52614
52745
|
};
|
|
52615
52746
|
|
|
52616
52747
|
// src/components/Popover/Popover.tsx
|
|
52617
|
-
import * as
|
|
52748
|
+
import * as React14 from "react";
|
|
52618
52749
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
52619
|
-
import { jsx as
|
|
52750
|
+
import { jsx as jsx1240 } from "react/jsx-runtime";
|
|
52620
52751
|
var Popover = PopoverPrimitive.Root;
|
|
52621
52752
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
52622
|
-
var PopoverContent =
|
|
52753
|
+
var PopoverContent = React14.forwardRef((_a, ref) => {
|
|
52623
52754
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
52624
|
-
return /* @__PURE__ */
|
|
52755
|
+
return /* @__PURE__ */ jsx1240(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx1240(
|
|
52625
52756
|
PopoverPrimitive.Content,
|
|
52626
52757
|
__spreadValues({
|
|
52627
52758
|
ref,
|
|
@@ -52637,16 +52768,16 @@ var PopoverContent = React13.forwardRef((_a, ref) => {
|
|
|
52637
52768
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
52638
52769
|
|
|
52639
52770
|
// src/components/Select/Select.tsx
|
|
52640
|
-
import * as
|
|
52771
|
+
import * as React15 from "react";
|
|
52641
52772
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
52642
|
-
import { jsx as
|
|
52773
|
+
import { jsx as jsx1241, jsxs as jsxs1017 } from "react/jsx-runtime";
|
|
52643
52774
|
var Select = SelectPrimitive.Root;
|
|
52644
52775
|
var SelectGroup = SelectPrimitive.Group;
|
|
52645
52776
|
var SelectValue = SelectPrimitive.Value;
|
|
52646
|
-
var SelectTrigger =
|
|
52777
|
+
var SelectTrigger = React15.forwardRef((_a, ref) => {
|
|
52647
52778
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
52648
52779
|
const isDisabled = props["data-is-disabled"];
|
|
52649
|
-
return /* @__PURE__ */
|
|
52780
|
+
return /* @__PURE__ */ jsxs1017(
|
|
52650
52781
|
SelectPrimitive.Trigger,
|
|
52651
52782
|
__spreadProps(__spreadValues({
|
|
52652
52783
|
ref,
|
|
@@ -52663,15 +52794,15 @@ var SelectTrigger = React14.forwardRef((_a, ref) => {
|
|
|
52663
52794
|
}, props), {
|
|
52664
52795
|
children: [
|
|
52665
52796
|
children,
|
|
52666
|
-
/* @__PURE__ */
|
|
52797
|
+
/* @__PURE__ */ jsx1241(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx1241(ChevronSelectorVerticalIcon, { size: "16", className: "w-4 h-4 opacity-50" }) })
|
|
52667
52798
|
]
|
|
52668
52799
|
})
|
|
52669
52800
|
);
|
|
52670
52801
|
});
|
|
52671
52802
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
52672
|
-
var SelectContent =
|
|
52803
|
+
var SelectContent = React15.forwardRef((_a, ref) => {
|
|
52673
52804
|
var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
|
|
52674
|
-
return /* @__PURE__ */
|
|
52805
|
+
return /* @__PURE__ */ jsx1241(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx1241(
|
|
52675
52806
|
SelectPrimitive.Content,
|
|
52676
52807
|
__spreadProps(__spreadValues({
|
|
52677
52808
|
ref,
|
|
@@ -52682,7 +52813,7 @@ var SelectContent = React14.forwardRef((_a, ref) => {
|
|
|
52682
52813
|
),
|
|
52683
52814
|
position
|
|
52684
52815
|
}, props), {
|
|
52685
|
-
children: /* @__PURE__ */
|
|
52816
|
+
children: /* @__PURE__ */ jsx1241(
|
|
52686
52817
|
SelectPrimitive.Viewport,
|
|
52687
52818
|
{
|
|
52688
52819
|
className: cn(
|
|
@@ -52696,9 +52827,9 @@ var SelectContent = React14.forwardRef((_a, ref) => {
|
|
|
52696
52827
|
) });
|
|
52697
52828
|
});
|
|
52698
52829
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
52699
|
-
var SelectLabel =
|
|
52830
|
+
var SelectLabel = React15.forwardRef((_a, ref) => {
|
|
52700
52831
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52701
|
-
return /* @__PURE__ */
|
|
52832
|
+
return /* @__PURE__ */ jsx1241(
|
|
52702
52833
|
SelectPrimitive.Label,
|
|
52703
52834
|
__spreadValues({
|
|
52704
52835
|
ref,
|
|
@@ -52707,9 +52838,9 @@ var SelectLabel = React14.forwardRef((_a, ref) => {
|
|
|
52707
52838
|
);
|
|
52708
52839
|
});
|
|
52709
52840
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
52710
|
-
var SelectItem =
|
|
52841
|
+
var SelectItem = React15.forwardRef((_a, ref) => {
|
|
52711
52842
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
52712
|
-
return /* @__PURE__ */
|
|
52843
|
+
return /* @__PURE__ */ jsx1241(
|
|
52713
52844
|
SelectPrimitive.Item,
|
|
52714
52845
|
__spreadProps(__spreadValues({
|
|
52715
52846
|
ref,
|
|
@@ -52718,14 +52849,14 @@ var SelectItem = React14.forwardRef((_a, ref) => {
|
|
|
52718
52849
|
className
|
|
52719
52850
|
)
|
|
52720
52851
|
}, props), {
|
|
52721
|
-
children: /* @__PURE__ */
|
|
52852
|
+
children: /* @__PURE__ */ jsx1241(SelectPrimitive.ItemText, { children })
|
|
52722
52853
|
})
|
|
52723
52854
|
);
|
|
52724
52855
|
});
|
|
52725
52856
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
52726
|
-
var SelectSeparator =
|
|
52857
|
+
var SelectSeparator = React15.forwardRef((_a, ref) => {
|
|
52727
52858
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52728
|
-
return /* @__PURE__ */
|
|
52859
|
+
return /* @__PURE__ */ jsx1241(
|
|
52729
52860
|
SelectPrimitive.Separator,
|
|
52730
52861
|
__spreadValues({
|
|
52731
52862
|
ref,
|
|
@@ -52736,12 +52867,12 @@ var SelectSeparator = React14.forwardRef((_a, ref) => {
|
|
|
52736
52867
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
52737
52868
|
|
|
52738
52869
|
// src/components/Switch/Switch.tsx
|
|
52739
|
-
import * as
|
|
52870
|
+
import * as React16 from "react";
|
|
52740
52871
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
52741
|
-
import { jsx as
|
|
52742
|
-
var Switch =
|
|
52872
|
+
import { jsx as jsx1242 } from "react/jsx-runtime";
|
|
52873
|
+
var Switch = React16.forwardRef((_a, ref) => {
|
|
52743
52874
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52744
|
-
return /* @__PURE__ */
|
|
52875
|
+
return /* @__PURE__ */ jsx1242(
|
|
52745
52876
|
SwitchPrimitive.Root,
|
|
52746
52877
|
__spreadProps(__spreadValues({
|
|
52747
52878
|
className: cn(
|
|
@@ -52750,18 +52881,18 @@ var Switch = React15.forwardRef((_a, ref) => {
|
|
|
52750
52881
|
)
|
|
52751
52882
|
}, props), {
|
|
52752
52883
|
ref,
|
|
52753
|
-
children: /* @__PURE__ */
|
|
52884
|
+
children: /* @__PURE__ */ jsx1242(SwitchPrimitive.Thumb, { className: "inline-block w-4 h-4 bg-gray-600 rounded-full translate-x-0.5 data-[state=checked]:translate-x-5 data-[state=checked]:bg-white transition-transform ease-linear will-change-transform" })
|
|
52754
52885
|
})
|
|
52755
52886
|
);
|
|
52756
52887
|
});
|
|
52757
52888
|
Switch.displayName = SwitchPrimitive.Root.displayName;
|
|
52758
52889
|
|
|
52759
52890
|
// src/components/Table/Table.tsx
|
|
52760
|
-
import * as
|
|
52761
|
-
import { jsx as
|
|
52762
|
-
var Table =
|
|
52891
|
+
import * as React17 from "react";
|
|
52892
|
+
import { jsx as jsx1243, jsxs as jsxs1018 } from "react/jsx-runtime";
|
|
52893
|
+
var Table = React17.forwardRef((_a, ref) => {
|
|
52763
52894
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52764
|
-
return /* @__PURE__ */
|
|
52895
|
+
return /* @__PURE__ */ jsx1243("div", { className: "w-full overflow-auto border rounded-lg", children: /* @__PURE__ */ jsx1243(
|
|
52765
52896
|
"table",
|
|
52766
52897
|
__spreadValues({
|
|
52767
52898
|
ref,
|
|
@@ -52770,9 +52901,9 @@ var Table = React16.forwardRef((_a, ref) => {
|
|
|
52770
52901
|
) });
|
|
52771
52902
|
});
|
|
52772
52903
|
Table.displayName = "Table";
|
|
52773
|
-
var TableHeader =
|
|
52904
|
+
var TableHeader = React17.forwardRef((_a, ref) => {
|
|
52774
52905
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52775
|
-
return /* @__PURE__ */
|
|
52906
|
+
return /* @__PURE__ */ jsx1243(
|
|
52776
52907
|
"thead",
|
|
52777
52908
|
__spreadValues({
|
|
52778
52909
|
ref,
|
|
@@ -52781,9 +52912,9 @@ var TableHeader = React16.forwardRef((_a, ref) => {
|
|
|
52781
52912
|
);
|
|
52782
52913
|
});
|
|
52783
52914
|
TableHeader.displayName = "TableHeader";
|
|
52784
|
-
var TableBody =
|
|
52915
|
+
var TableBody = React17.forwardRef((_a, ref) => {
|
|
52785
52916
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52786
|
-
return /* @__PURE__ */
|
|
52917
|
+
return /* @__PURE__ */ jsx1243(
|
|
52787
52918
|
"tbody",
|
|
52788
52919
|
__spreadValues({
|
|
52789
52920
|
ref,
|
|
@@ -52795,9 +52926,9 @@ var TableBody = React16.forwardRef((_a, ref) => {
|
|
|
52795
52926
|
);
|
|
52796
52927
|
});
|
|
52797
52928
|
TableBody.displayName = "TableBody";
|
|
52798
|
-
var TableRow =
|
|
52929
|
+
var TableRow = React17.forwardRef((_a, ref) => {
|
|
52799
52930
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52800
|
-
return /* @__PURE__ */
|
|
52931
|
+
return /* @__PURE__ */ jsx1243(
|
|
52801
52932
|
"tr",
|
|
52802
52933
|
__spreadValues({
|
|
52803
52934
|
ref,
|
|
@@ -52809,9 +52940,9 @@ var TableRow = React16.forwardRef((_a, ref) => {
|
|
|
52809
52940
|
);
|
|
52810
52941
|
});
|
|
52811
52942
|
TableRow.displayName = "TableRow";
|
|
52812
|
-
var TableHead =
|
|
52943
|
+
var TableHead = React17.forwardRef((_a, ref) => {
|
|
52813
52944
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52814
|
-
return /* @__PURE__ */
|
|
52945
|
+
return /* @__PURE__ */ jsx1243(
|
|
52815
52946
|
"th",
|
|
52816
52947
|
__spreadValues({
|
|
52817
52948
|
ref,
|
|
@@ -52823,9 +52954,9 @@ var TableHead = React16.forwardRef((_a, ref) => {
|
|
|
52823
52954
|
);
|
|
52824
52955
|
});
|
|
52825
52956
|
TableHead.displayName = "TableHead";
|
|
52826
|
-
var TableCell =
|
|
52957
|
+
var TableCell = React17.forwardRef((_a, ref) => {
|
|
52827
52958
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52828
|
-
return /* @__PURE__ */
|
|
52959
|
+
return /* @__PURE__ */ jsx1243(
|
|
52829
52960
|
"td",
|
|
52830
52961
|
__spreadValues({
|
|
52831
52962
|
ref,
|
|
@@ -52837,18 +52968,18 @@ var TableCell = React16.forwardRef((_a, ref) => {
|
|
|
52837
52968
|
);
|
|
52838
52969
|
});
|
|
52839
52970
|
TableCell.displayName = "TableCell";
|
|
52840
|
-
var TableEmpty =
|
|
52971
|
+
var TableEmpty = React17.forwardRef((_a, ref) => {
|
|
52841
52972
|
var _b = _a, { className, title, description, children } = _b, props = __objRest(_b, ["className", "title", "description", "children"]);
|
|
52842
|
-
return /* @__PURE__ */
|
|
52973
|
+
return /* @__PURE__ */ jsxs1018(
|
|
52843
52974
|
"div",
|
|
52844
52975
|
__spreadProps(__spreadValues({
|
|
52845
52976
|
ref,
|
|
52846
52977
|
className: cn("flex flex-col gap-6 items-center py-12", className)
|
|
52847
52978
|
}, props), {
|
|
52848
52979
|
children: [
|
|
52849
|
-
title && /* @__PURE__ */
|
|
52850
|
-
description && /* @__PURE__ */
|
|
52851
|
-
/* @__PURE__ */
|
|
52980
|
+
title && /* @__PURE__ */ jsx1243("span", { className: "text-lg font-semibold text-gray-1000", children: title }),
|
|
52981
|
+
description && /* @__PURE__ */ jsx1243("span", { className: "text-sm font-normal text-gray-900", children: description }),
|
|
52982
|
+
/* @__PURE__ */ jsx1243("div", { children })
|
|
52852
52983
|
]
|
|
52853
52984
|
})
|
|
52854
52985
|
);
|
|
@@ -52856,13 +52987,13 @@ var TableEmpty = React16.forwardRef((_a, ref) => {
|
|
|
52856
52987
|
TableEmpty.displayName = "TableEmpty";
|
|
52857
52988
|
|
|
52858
52989
|
// src/components/Tabs/Tabs.tsx
|
|
52859
|
-
import * as
|
|
52990
|
+
import * as React18 from "react";
|
|
52860
52991
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
52861
|
-
import { jsx as
|
|
52992
|
+
import { jsx as jsx1244 } from "react/jsx-runtime";
|
|
52862
52993
|
var Tabs = TabsPrimitive.Root;
|
|
52863
|
-
var TabsList =
|
|
52994
|
+
var TabsList = React18.forwardRef((_a, ref) => {
|
|
52864
52995
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52865
|
-
return /* @__PURE__ */
|
|
52996
|
+
return /* @__PURE__ */ jsx1244(
|
|
52866
52997
|
TabsPrimitive.List,
|
|
52867
52998
|
__spreadValues({
|
|
52868
52999
|
ref,
|
|
@@ -52874,9 +53005,9 @@ var TabsList = React17.forwardRef((_a, ref) => {
|
|
|
52874
53005
|
);
|
|
52875
53006
|
});
|
|
52876
53007
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
52877
|
-
var TabsTrigger =
|
|
53008
|
+
var TabsTrigger = React18.forwardRef((_a, ref) => {
|
|
52878
53009
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52879
|
-
return /* @__PURE__ */
|
|
53010
|
+
return /* @__PURE__ */ jsx1244(
|
|
52880
53011
|
TabsPrimitive.Trigger,
|
|
52881
53012
|
__spreadValues({
|
|
52882
53013
|
ref,
|
|
@@ -52891,9 +53022,9 @@ var TabsTrigger = React17.forwardRef((_a, ref) => {
|
|
|
52891
53022
|
);
|
|
52892
53023
|
});
|
|
52893
53024
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
52894
|
-
var TabsContent =
|
|
53025
|
+
var TabsContent = React18.forwardRef((_a, ref) => {
|
|
52895
53026
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52896
|
-
return /* @__PURE__ */
|
|
53027
|
+
return /* @__PURE__ */ jsx1244(
|
|
52897
53028
|
TabsPrimitive.Content,
|
|
52898
53029
|
__spreadValues({
|
|
52899
53030
|
ref,
|
|
@@ -52907,13 +53038,13 @@ var TabsContent = React17.forwardRef((_a, ref) => {
|
|
|
52907
53038
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
52908
53039
|
|
|
52909
53040
|
// src/components/Textarea/Textarea.tsx
|
|
52910
|
-
import * as
|
|
52911
|
-
import { jsx as
|
|
52912
|
-
var Textarea =
|
|
53041
|
+
import * as React19 from "react";
|
|
53042
|
+
import { jsx as jsx1245 } from "react/jsx-runtime";
|
|
53043
|
+
var Textarea = React19.forwardRef(
|
|
52913
53044
|
(_a, ref) => {
|
|
52914
53045
|
var _b = _a, { className, disabled } = _b, props = __objRest(_b, ["className", "disabled"]);
|
|
52915
53046
|
const isDisabled = !!props["data-is-disabled"] || disabled;
|
|
52916
|
-
return /* @__PURE__ */
|
|
53047
|
+
return /* @__PURE__ */ jsx1245("div", { className: "flex gap-2", children: /* @__PURE__ */ jsx1245(
|
|
52917
53048
|
"div",
|
|
52918
53049
|
{
|
|
52919
53050
|
className: cn(
|
|
@@ -52924,7 +53055,7 @@ var Textarea = React18.forwardRef(
|
|
|
52924
53055
|
},
|
|
52925
53056
|
className
|
|
52926
53057
|
),
|
|
52927
|
-
children: /* @__PURE__ */
|
|
53058
|
+
children: /* @__PURE__ */ jsx1245(
|
|
52928
53059
|
"textarea",
|
|
52929
53060
|
__spreadProps(__spreadValues({}, props), {
|
|
52930
53061
|
disabled: isDisabled,
|
|
@@ -52939,19 +53070,19 @@ var Textarea = React18.forwardRef(
|
|
|
52939
53070
|
Textarea.displayName = "Textarea";
|
|
52940
53071
|
|
|
52941
53072
|
// src/components/Toaster/Toast.tsx
|
|
52942
|
-
import * as
|
|
53073
|
+
import * as React20 from "react";
|
|
52943
53074
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
52944
53075
|
import { cva as cva4 } from "class-variance-authority";
|
|
52945
|
-
import { jsx as
|
|
53076
|
+
import { jsx as jsx1246 } from "react/jsx-runtime";
|
|
52946
53077
|
var ToastProvider = ToastPrimitives.Provider;
|
|
52947
|
-
var ToastViewport =
|
|
53078
|
+
var ToastViewport = React20.forwardRef((_a, ref) => {
|
|
52948
53079
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52949
|
-
return /* @__PURE__ */
|
|
53080
|
+
return /* @__PURE__ */ jsx1246(
|
|
52950
53081
|
ToastPrimitives.Viewport,
|
|
52951
53082
|
__spreadValues({
|
|
52952
53083
|
ref,
|
|
52953
53084
|
className: cn(
|
|
52954
|
-
"fixed top-8 left-1/2 -translate-x-1/2 z-[100] flex max-h-screen flex-col-reverse sm:flex-col md:max-w-[420px]",
|
|
53085
|
+
"fixed top-8 left-1/2 -translate-x-1/2 z-[100] flex max-h-screen flex-col-reverse sm:flex-col w-max md:max-w-[420px]",
|
|
52955
53086
|
className
|
|
52956
53087
|
)
|
|
52957
53088
|
}, props)
|
|
@@ -52972,9 +53103,9 @@ var toastVariants = cva4(
|
|
|
52972
53103
|
}
|
|
52973
53104
|
}
|
|
52974
53105
|
);
|
|
52975
|
-
var Toast =
|
|
53106
|
+
var Toast = React20.forwardRef((_a, ref) => {
|
|
52976
53107
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
52977
|
-
return /* @__PURE__ */
|
|
53108
|
+
return /* @__PURE__ */ jsx1246(
|
|
52978
53109
|
ToastPrimitives.Root,
|
|
52979
53110
|
__spreadValues({
|
|
52980
53111
|
ref,
|
|
@@ -52983,28 +53114,28 @@ var Toast = React19.forwardRef((_a, ref) => {
|
|
|
52983
53114
|
);
|
|
52984
53115
|
});
|
|
52985
53116
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
52986
|
-
var ToastAction =
|
|
53117
|
+
var ToastAction = React20.forwardRef((_a, ref) => {
|
|
52987
53118
|
var _b = _a, { className, altText } = _b, props = __objRest(_b, ["className", "altText"]);
|
|
52988
|
-
return /* @__PURE__ */
|
|
53119
|
+
return /* @__PURE__ */ jsx1246(ToastPrimitives.Action, { altText, ref, asChild: true, children: /* @__PURE__ */ jsx1246(Button, __spreadValues({ size: "xs" }, props)) });
|
|
52989
53120
|
});
|
|
52990
53121
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
52991
|
-
var ToastClose =
|
|
53122
|
+
var ToastClose = React20.forwardRef((_a, ref) => {
|
|
52992
53123
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52993
|
-
return /* @__PURE__ */
|
|
53124
|
+
return /* @__PURE__ */ jsx1246(
|
|
52994
53125
|
ToastPrimitives.Close,
|
|
52995
53126
|
__spreadProps(__spreadValues({
|
|
52996
53127
|
ref,
|
|
52997
53128
|
className: cn("focus:outline-none focus:ring-1", className),
|
|
52998
53129
|
"toast-close": ""
|
|
52999
53130
|
}, props), {
|
|
53000
|
-
children: /* @__PURE__ */
|
|
53131
|
+
children: /* @__PURE__ */ jsx1246(XCloseIcon, { className: "text-white", size: 16 })
|
|
53001
53132
|
})
|
|
53002
53133
|
);
|
|
53003
53134
|
});
|
|
53004
53135
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
53005
|
-
var ToastTitle =
|
|
53136
|
+
var ToastTitle = React20.forwardRef((_a, ref) => {
|
|
53006
53137
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53007
|
-
return /* @__PURE__ */
|
|
53138
|
+
return /* @__PURE__ */ jsx1246(
|
|
53008
53139
|
ToastPrimitives.Title,
|
|
53009
53140
|
__spreadValues({
|
|
53010
53141
|
ref,
|
|
@@ -53013,9 +53144,9 @@ var ToastTitle = React19.forwardRef((_a, ref) => {
|
|
|
53013
53144
|
);
|
|
53014
53145
|
});
|
|
53015
53146
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
53016
|
-
var ToastDescription =
|
|
53147
|
+
var ToastDescription = React20.forwardRef((_a, ref) => {
|
|
53017
53148
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
53018
|
-
return /* @__PURE__ */
|
|
53149
|
+
return /* @__PURE__ */ jsx1246(
|
|
53019
53150
|
ToastPrimitives.Description,
|
|
53020
53151
|
__spreadValues({
|
|
53021
53152
|
ref,
|
|
@@ -53026,10 +53157,10 @@ var ToastDescription = React19.forwardRef((_a, ref) => {
|
|
|
53026
53157
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
53027
53158
|
|
|
53028
53159
|
// src/components/Toaster/Toaster.tsx
|
|
53029
|
-
import
|
|
53160
|
+
import React22 from "react";
|
|
53030
53161
|
|
|
53031
53162
|
// src/components/Toaster/useToast.tsx
|
|
53032
|
-
import * as
|
|
53163
|
+
import * as React21 from "react";
|
|
53033
53164
|
var TOAST_LIMIT = 3;
|
|
53034
53165
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
53035
53166
|
var count = 0;
|
|
@@ -53138,8 +53269,8 @@ var toast = (parentId) => (_a) => {
|
|
|
53138
53269
|
};
|
|
53139
53270
|
};
|
|
53140
53271
|
function useToast({ toasterId = "default" } = {}) {
|
|
53141
|
-
const [state, setState] =
|
|
53142
|
-
|
|
53272
|
+
const [state, setState] = React21.useState(memoryState);
|
|
53273
|
+
React21.useEffect(() => {
|
|
53143
53274
|
listeners.push(setState);
|
|
53144
53275
|
return () => {
|
|
53145
53276
|
const index = listeners.indexOf(setState);
|
|
@@ -53155,7 +53286,7 @@ function useToast({ toasterId = "default" } = {}) {
|
|
|
53155
53286
|
}
|
|
53156
53287
|
|
|
53157
53288
|
// src/components/Toaster/Toaster.tsx
|
|
53158
|
-
import { jsx as
|
|
53289
|
+
import { jsx as jsx1247, jsxs as jsxs1019 } from "react/jsx-runtime";
|
|
53159
53290
|
var ToastContent = ({
|
|
53160
53291
|
title,
|
|
53161
53292
|
description,
|
|
@@ -53163,19 +53294,19 @@ var ToastContent = ({
|
|
|
53163
53294
|
actions,
|
|
53164
53295
|
hideClose
|
|
53165
53296
|
}) => {
|
|
53166
|
-
return /* @__PURE__ */
|
|
53167
|
-
/* @__PURE__ */
|
|
53168
|
-
/* @__PURE__ */
|
|
53169
|
-
icon &&
|
|
53297
|
+
return /* @__PURE__ */ jsxs1019("div", { className: "flex flex-col gap-2", children: [
|
|
53298
|
+
/* @__PURE__ */ jsxs1019("div", { className: "flex items-center gap-4", children: [
|
|
53299
|
+
/* @__PURE__ */ jsxs1019("div", { className: "flex items-center flex-grow gap-2", children: [
|
|
53300
|
+
icon && React22.cloneElement(icon, {
|
|
53170
53301
|
size: 16,
|
|
53171
53302
|
className: cn("shrink-0", icon.props.className)
|
|
53172
53303
|
}),
|
|
53173
|
-
title && /* @__PURE__ */
|
|
53304
|
+
title && /* @__PURE__ */ jsx1247(ToastTitle, { children: title })
|
|
53174
53305
|
] }),
|
|
53175
53306
|
actions,
|
|
53176
|
-
!hideClose && /* @__PURE__ */
|
|
53307
|
+
!hideClose && /* @__PURE__ */ jsx1247(ToastClose, {})
|
|
53177
53308
|
] }),
|
|
53178
|
-
description && /* @__PURE__ */
|
|
53309
|
+
description && /* @__PURE__ */ jsx1247(ToastDescription, { children: description })
|
|
53179
53310
|
] });
|
|
53180
53311
|
};
|
|
53181
53312
|
function Toaster(_a) {
|
|
@@ -53187,7 +53318,7 @@ function Toaster(_a) {
|
|
|
53187
53318
|
"toasterId"
|
|
53188
53319
|
]);
|
|
53189
53320
|
const { toasts } = useToast({ toasterId });
|
|
53190
|
-
return /* @__PURE__ */
|
|
53321
|
+
return /* @__PURE__ */ jsxs1019(ToastProvider, __spreadProps(__spreadValues({}, props), { children: [
|
|
53191
53322
|
toasts.filter((t) => t.parentId === toasterId).map(
|
|
53192
53323
|
(_a2) => {
|
|
53193
53324
|
var _b2 = _a2, {
|
|
@@ -53207,7 +53338,7 @@ function Toaster(_a) {
|
|
|
53207
53338
|
"icon",
|
|
53208
53339
|
"hideClose"
|
|
53209
53340
|
]);
|
|
53210
|
-
return /* @__PURE__ */
|
|
53341
|
+
return /* @__PURE__ */ jsx1247(Toast, __spreadProps(__spreadValues({}, props2), { children: /* @__PURE__ */ jsx1247(
|
|
53211
53342
|
ToastContent,
|
|
53212
53343
|
{
|
|
53213
53344
|
title,
|
|
@@ -53219,27 +53350,27 @@ function Toaster(_a) {
|
|
|
53219
53350
|
) }), id);
|
|
53220
53351
|
}
|
|
53221
53352
|
),
|
|
53222
|
-
/* @__PURE__ */
|
|
53353
|
+
/* @__PURE__ */ jsx1247(ToastViewport, { className })
|
|
53223
53354
|
] }));
|
|
53224
53355
|
}
|
|
53225
53356
|
|
|
53226
53357
|
// src/components/Tooltip/Tooltip.tsx
|
|
53227
|
-
import * as
|
|
53358
|
+
import * as React23 from "react";
|
|
53228
53359
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
53229
|
-
import { jsx as
|
|
53360
|
+
import { jsx as jsx1248 } from "react/jsx-runtime";
|
|
53230
53361
|
var TooltipProvider = (_a) => {
|
|
53231
53362
|
var _b = _a, {
|
|
53232
53363
|
delayDuration = 0
|
|
53233
53364
|
} = _b, props = __objRest(_b, [
|
|
53234
53365
|
"delayDuration"
|
|
53235
53366
|
]);
|
|
53236
|
-
return /* @__PURE__ */
|
|
53367
|
+
return /* @__PURE__ */ jsx1248(TooltipPrimitive.Provider, __spreadValues({ delayDuration }, props));
|
|
53237
53368
|
};
|
|
53238
53369
|
var Tooltip = TooltipPrimitive.Root;
|
|
53239
53370
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
53240
|
-
var TooltipContent =
|
|
53371
|
+
var TooltipContent = React23.forwardRef((_a, ref) => {
|
|
53241
53372
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
|
53242
|
-
return /* @__PURE__ */
|
|
53373
|
+
return /* @__PURE__ */ jsx1248(
|
|
53243
53374
|
TooltipPrimitive.Content,
|
|
53244
53375
|
__spreadValues({
|
|
53245
53376
|
ref,
|
|
@@ -53616,6 +53747,7 @@ export {
|
|
|
53616
53747
|
CornerUpRightIcon,
|
|
53617
53748
|
CpuChip1Icon,
|
|
53618
53749
|
CpuChip2Icon,
|
|
53750
|
+
CreatableSelect,
|
|
53619
53751
|
CreditCard1Icon,
|
|
53620
53752
|
CreditCard2Icon,
|
|
53621
53753
|
CreditCardCheckIcon,
|