@nextop-os/ui-system 0.0.25 → 0.0.27
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/{chunk-W4FQ2FEN.js → chunk-D5Y4OBKX.js} +205 -104
- package/dist/chunk-D5Y4OBKX.js.map +1 -0
- package/dist/{chunk-TYJPBTBR.js → chunk-UELLN5VR.js} +14 -68
- package/dist/chunk-UELLN5VR.js.map +1 -0
- package/dist/components/index.d.ts +17 -5
- package/dist/components/index.js +4 -2
- package/dist/icons/index.d.ts +5 -9
- package/dist/icons/index.js +9 -17
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -18
- package/dist/metadata/components.json +56 -94
- package/dist/metadata/index.js +56 -94
- package/dist/metadata/index.js.map +1 -1
- package/dist/styles/theme.css +4 -4
- package/package.json +1 -1
- package/ui-system.md +3 -1
- package/dist/chunk-TYJPBTBR.js.map +0 -1
- package/dist/chunk-W4FQ2FEN.js.map +0 -1
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AgentSessionsIcon,
|
|
2
3
|
ArrowLeftIcon,
|
|
3
4
|
ArrowRightIcon,
|
|
4
5
|
CheckIcon,
|
|
5
6
|
ChevronDownIcon,
|
|
6
|
-
ChevronRightIcon,
|
|
7
7
|
ChevronUpIcon,
|
|
8
8
|
CloseIcon,
|
|
9
9
|
FailedFilledIcon,
|
|
10
|
+
FileIcon,
|
|
11
|
+
FolderFilledIcon,
|
|
12
|
+
IssueIcon,
|
|
10
13
|
LoadingIcon,
|
|
11
14
|
SuccessFilledIcon
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UELLN5VR.js";
|
|
13
16
|
import {
|
|
14
17
|
cn
|
|
15
18
|
} from "./chunk-DGPY4WP3.js";
|
|
@@ -23,8 +26,8 @@ var badgeVariants = cva(
|
|
|
23
26
|
{
|
|
24
27
|
variants: {
|
|
25
28
|
variant: {
|
|
26
|
-
default: "bg-transparency-block text-[var(--text-secondary)] [a]:hover:bg-transparency-hover",
|
|
27
|
-
secondary: "bg-transparency-block text-[var(--text-secondary)] [a]:hover:bg-transparency-hover",
|
|
29
|
+
default: "bg-[var(--transparency-block)] text-[var(--text-secondary)] [a]:hover:bg-[var(--transparency-hover)]",
|
|
30
|
+
secondary: "bg-[var(--transparency-block)] text-[var(--text-secondary)] [a]:hover:bg-[var(--transparency-hover)]",
|
|
28
31
|
destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/18",
|
|
29
32
|
outline: "border-border bg-card/90 text-foreground [a]:hover:bg-muted [a]:hover:text-foreground",
|
|
30
33
|
ghost: "hover:bg-accent/80 hover:text-accent-foreground dark:hover:bg-muted/50",
|
|
@@ -68,7 +71,7 @@ var buttonVariants = cva2(
|
|
|
68
71
|
secondary: "bg-transparency-block text-[var(--text-primary)] hover:bg-transparency-hover aria-expanded:bg-transparency-hover aria-expanded:text-[var(--text-primary)]",
|
|
69
72
|
ghost: "bg-transparent text-[var(--text-primary)] hover:bg-transparency-hover aria-expanded:bg-transparency-hover aria-expanded:text-[var(--text-primary)]",
|
|
70
73
|
chrome: "border border-transparent bg-transparent text-[var(--text-tertiary)] shadow-none hover:border-transparent hover:bg-[var(--transparency-hover)] hover:text-[var(--text-primary)] active:bg-[var(--transparency-active)] active:text-[var(--text-primary)] aria-expanded:border-transparent aria-expanded:bg-[var(--transparency-block)] aria-expanded:text-[var(--text-primary)] disabled:pointer-events-auto disabled:cursor-not-allowed disabled:opacity-45",
|
|
71
|
-
destructive: "bg-[var(--state-danger)] text-[var(--
|
|
74
|
+
destructive: "bg-[var(--state-danger)] text-[var(--white-stationary)] hover:bg-[var(--state-danger-hover)] focus-visible:border-[var(--state-danger)] focus-visible:ring-[color-mix(in_srgb,var(--state-danger)_25%,transparent)]",
|
|
72
75
|
link: "text-primary underline-offset-4 hover:underline"
|
|
73
76
|
},
|
|
74
77
|
size: {
|
|
@@ -221,7 +224,7 @@ function Checkbox({
|
|
|
221
224
|
{
|
|
222
225
|
"data-slot": "checkbox",
|
|
223
226
|
className: cn(
|
|
224
|
-
"peer inline-flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-border
|
|
227
|
+
"peer inline-flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-[var(--border-1)] bg-[var(--transparency-block)] text-[var(--text-inverted)] transition-[background-color,border-color,color,box-shadow] outline-none focus-visible:border-[var(--border-focus)] focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--border-focus)_30%,transparent)] disabled:cursor-not-allowed disabled:border-[var(--border-1)] disabled:bg-[var(--transparency-block)] disabled:text-[var(--text-inverted)] disabled:opacity-100 data-disabled:border-[var(--border-1)] aria-invalid:border-[var(--state-danger)] aria-invalid:ring-2 aria-invalid:ring-[color-mix(in_srgb,var(--state-danger)_20%,transparent)] data-[state=checked]:border-[var(--text-primary)] data-[state=checked]:bg-[var(--text-primary)] data-[state=unchecked]:hover:border-[color-mix(in_srgb,var(--text-primary)_40%,transparent)] disabled:data-[state=checked]:border-[var(--border-1)] disabled:data-[state=checked]:bg-[var(--text-disabled)] data-disabled:data-[state=checked]:border-[var(--border-1)]",
|
|
225
228
|
className
|
|
226
229
|
),
|
|
227
230
|
...props,
|
|
@@ -427,7 +430,7 @@ function DialogDescription({
|
|
|
427
430
|
{
|
|
428
431
|
"data-slot": "dialog-description",
|
|
429
432
|
className: cn(
|
|
430
|
-
"text-sm leading-[1.3] text-text-secondary *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
|
|
433
|
+
"text-sm font-[400] leading-[1.3] text-text-secondary *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
|
|
431
434
|
className
|
|
432
435
|
),
|
|
433
436
|
...props
|
|
@@ -889,7 +892,7 @@ import * as React3 from "react";
|
|
|
889
892
|
import { Slot as Slot3 } from "radix-ui";
|
|
890
893
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
891
894
|
var menuSurfaceClassName = "t-dropdown flex flex-col gap-0.5 rounded-[8px] border border-[var(--border-1)] bg-[var(--background-fronted)] p-1 text-sm text-[var(--text-primary)] shadow-panel outline-none";
|
|
892
|
-
var menuItemClassName = "relative flex cursor-pointer items-center gap-1.5 rounded-sm px-2 py-1 text-sm text-[var(--text-primary)] outline-hidden transition-colors duration-200 select-none hover:bg-[var(--transparency-
|
|
895
|
+
var menuItemClassName = "relative flex cursor-pointer items-center gap-1.5 rounded-sm px-2 py-1 text-sm text-[var(--text-primary)] outline-hidden transition-colors duration-200 select-none hover:bg-[var(--transparency-hover)] hover:text-[var(--text-primary)] focus:bg-[var(--transparency-hover)] focus:text-[var(--text-primary)] data-[highlighted]:bg-[var(--transparency-hover)] data-[highlighted]:text-[var(--text-primary)] data-disabled:pointer-events-none data-disabled:text-[var(--text-disabled)] [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2";
|
|
893
896
|
var menuItemWithIndicatorClassName = `${menuItemClassName} pr-8`;
|
|
894
897
|
var menuItemIndicatorClassName = "pointer-events-none absolute right-2 flex size-4 items-center justify-center";
|
|
895
898
|
var MenuSurface = React3.forwardRef(
|
|
@@ -939,6 +942,7 @@ function DropdownMenuTrigger({
|
|
|
939
942
|
}
|
|
940
943
|
function DropdownMenuContent({
|
|
941
944
|
className,
|
|
945
|
+
children,
|
|
942
946
|
align = "start",
|
|
943
947
|
sideOffset = 4,
|
|
944
948
|
style,
|
|
@@ -960,7 +964,8 @@ function DropdownMenuContent({
|
|
|
960
964
|
"z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto",
|
|
961
965
|
className
|
|
962
966
|
),
|
|
963
|
-
style: { zIndex: "var(--z-popover)", ...style }
|
|
967
|
+
style: { zIndex: "var(--z-popover)", ...style },
|
|
968
|
+
children
|
|
964
969
|
}
|
|
965
970
|
)
|
|
966
971
|
}
|
|
@@ -1149,13 +1154,14 @@ function DropdownMenuSubTrigger({
|
|
|
1149
1154
|
...props,
|
|
1150
1155
|
children: [
|
|
1151
1156
|
children,
|
|
1152
|
-
/* @__PURE__ */ jsx9(
|
|
1157
|
+
/* @__PURE__ */ jsx9(ArrowRightIcon, { className: "ml-auto" })
|
|
1153
1158
|
]
|
|
1154
1159
|
}
|
|
1155
1160
|
);
|
|
1156
1161
|
}
|
|
1157
1162
|
function DropdownMenuSubContent({
|
|
1158
1163
|
className,
|
|
1164
|
+
children,
|
|
1159
1165
|
style,
|
|
1160
1166
|
...props
|
|
1161
1167
|
}) {
|
|
@@ -1173,7 +1179,8 @@ function DropdownMenuSubContent({
|
|
|
1173
1179
|
"z-50 min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden",
|
|
1174
1180
|
className
|
|
1175
1181
|
),
|
|
1176
|
-
style: { zIndex: "var(--z-popover)", ...style }
|
|
1182
|
+
style: { zIndex: "var(--z-popover)", ...style },
|
|
1183
|
+
children
|
|
1177
1184
|
}
|
|
1178
1185
|
)
|
|
1179
1186
|
}
|
|
@@ -1185,7 +1192,7 @@ import { jsx as jsx10 } from "react/jsx-runtime";
|
|
|
1185
1192
|
var inputVariantClassNames = {
|
|
1186
1193
|
default: "h-8 rounded-[6px] px-3 py-0 text-sm leading-[1.3]",
|
|
1187
1194
|
lg: "h-12 rounded-[8px] px-4 py-3 text-base leading-[1.3]",
|
|
1188
|
-
md: "h-
|
|
1195
|
+
md: "h-8 rounded-[6px] px-3 py-0 text-sm leading-[1.3]",
|
|
1189
1196
|
sm: "h-8 rounded-[6px] px-3 py-0 text-sm leading-[1.3]",
|
|
1190
1197
|
otp: "h-12 w-12 rounded-[4px] px-0 text-center text-xl font-medium sm:h-14 sm:w-14 sm:text-2xl"
|
|
1191
1198
|
};
|
|
@@ -1215,28 +1222,121 @@ function Input({
|
|
|
1215
1222
|
);
|
|
1216
1223
|
}
|
|
1217
1224
|
|
|
1225
|
+
// src/components/mention-pill/mention-pill.tsx
|
|
1226
|
+
import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1227
|
+
var mentionPillTokenByKind = {
|
|
1228
|
+
issue: "var(--rich-text-mention-issue)",
|
|
1229
|
+
session: "var(--rich-text-mention-session)",
|
|
1230
|
+
file: "var(--rich-text-mention-file)"
|
|
1231
|
+
};
|
|
1232
|
+
var mentionPillDataKindByKind = {
|
|
1233
|
+
issue: "task",
|
|
1234
|
+
session: "session",
|
|
1235
|
+
file: "file"
|
|
1236
|
+
};
|
|
1237
|
+
function MentionPill({
|
|
1238
|
+
className,
|
|
1239
|
+
fileKind = "file",
|
|
1240
|
+
kind,
|
|
1241
|
+
label,
|
|
1242
|
+
removable = kind === "file",
|
|
1243
|
+
removeButtonProps,
|
|
1244
|
+
style,
|
|
1245
|
+
summary,
|
|
1246
|
+
...props
|
|
1247
|
+
}) {
|
|
1248
|
+
const isFile = kind === "file";
|
|
1249
|
+
const Icon = isFile ? fileKind === "folder" ? FolderFilledIcon : FileIcon : kind === "issue" ? IssueIcon : AgentSessionsIcon;
|
|
1250
|
+
const color = isFile && fileKind === "folder" ? "var(--rich-text-folder)" : mentionPillTokenByKind[kind];
|
|
1251
|
+
const dataKind = mentionPillDataKindByKind[kind];
|
|
1252
|
+
const iconSizeClassName = isFile ? "size-3.5" : "size-4";
|
|
1253
|
+
const iconShellClassName = isFile ? "size-3.5" : "size-[18px]";
|
|
1254
|
+
return /* @__PURE__ */ jsxs5(
|
|
1255
|
+
"span",
|
|
1256
|
+
{
|
|
1257
|
+
className: cn(
|
|
1258
|
+
"group relative top-[3px] inline-flex max-w-full cursor-default items-center overflow-hidden rounded-[4px] border border-transparent bg-transparent py-0.5 align-baseline text-sm font-medium leading-5 no-underline transition-colors hover:border-transparent hover:bg-[color-mix(in_srgb,currentColor_12%,transparent)]",
|
|
1259
|
+
isFile ? "gap-1.5 px-1.5" : "gap-1 px-1",
|
|
1260
|
+
className
|
|
1261
|
+
),
|
|
1262
|
+
"data-agent-file-mention": "true",
|
|
1263
|
+
"data-agent-mention-kind": dataKind,
|
|
1264
|
+
"data-slot": "mention-pill",
|
|
1265
|
+
style: {
|
|
1266
|
+
color,
|
|
1267
|
+
...style
|
|
1268
|
+
},
|
|
1269
|
+
...props,
|
|
1270
|
+
children: [
|
|
1271
|
+
/* @__PURE__ */ jsxs5(
|
|
1272
|
+
"span",
|
|
1273
|
+
{
|
|
1274
|
+
"aria-hidden": removable ? void 0 : true,
|
|
1275
|
+
className: cn(
|
|
1276
|
+
"relative grid shrink-0 place-items-center",
|
|
1277
|
+
iconShellClassName
|
|
1278
|
+
),
|
|
1279
|
+
children: [
|
|
1280
|
+
/* @__PURE__ */ jsx11(
|
|
1281
|
+
Icon,
|
|
1282
|
+
{
|
|
1283
|
+
className: cn(
|
|
1284
|
+
"text-current transition-opacity",
|
|
1285
|
+
removable && "group-hover:opacity-0 group-focus-within:opacity-0",
|
|
1286
|
+
iconSizeClassName
|
|
1287
|
+
)
|
|
1288
|
+
}
|
|
1289
|
+
),
|
|
1290
|
+
removable ? /* @__PURE__ */ jsx11(
|
|
1291
|
+
"button",
|
|
1292
|
+
{
|
|
1293
|
+
"aria-label": removeButtonProps?.["aria-label"],
|
|
1294
|
+
type: "button",
|
|
1295
|
+
...removeButtonProps,
|
|
1296
|
+
className: cn(
|
|
1297
|
+
"absolute top-1/2 left-1/2 inline-flex size-5 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-sm text-[var(--text-secondary)] opacity-0 transition-opacity group-hover:opacity-100 hover:bg-transparency-block hover:text-[var(--text-primary)] focus-visible:opacity-100",
|
|
1298
|
+
removeButtonProps?.className
|
|
1299
|
+
),
|
|
1300
|
+
children: /* @__PURE__ */ jsx11(CloseIcon, { className: "size-3.5" })
|
|
1301
|
+
}
|
|
1302
|
+
) : null
|
|
1303
|
+
]
|
|
1304
|
+
}
|
|
1305
|
+
),
|
|
1306
|
+
/* @__PURE__ */ jsxs5("span", { className: "min-w-0 overflow-hidden text-ellipsis whitespace-nowrap", children: [
|
|
1307
|
+
/* @__PURE__ */ jsx11("span", { children: label }),
|
|
1308
|
+
summary ? /* @__PURE__ */ jsxs5("span", { className: "text-current", children: [
|
|
1309
|
+
" ",
|
|
1310
|
+
summary
|
|
1311
|
+
] }) : null
|
|
1312
|
+
] })
|
|
1313
|
+
]
|
|
1314
|
+
}
|
|
1315
|
+
);
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1218
1318
|
// src/components/popover/popover.tsx
|
|
1219
1319
|
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
1220
|
-
import { jsx as
|
|
1320
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1221
1321
|
function Popover({
|
|
1222
1322
|
...props
|
|
1223
1323
|
}) {
|
|
1224
|
-
return /* @__PURE__ */
|
|
1324
|
+
return /* @__PURE__ */ jsx12(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
1225
1325
|
}
|
|
1226
1326
|
function PopoverTrigger({
|
|
1227
1327
|
...props
|
|
1228
1328
|
}) {
|
|
1229
|
-
return /* @__PURE__ */
|
|
1329
|
+
return /* @__PURE__ */ jsx12(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
1230
1330
|
}
|
|
1231
1331
|
function PopoverPortal({
|
|
1232
1332
|
...props
|
|
1233
1333
|
}) {
|
|
1234
|
-
return /* @__PURE__ */
|
|
1334
|
+
return /* @__PURE__ */ jsx12(PopoverPrimitive.Portal, { "data-slot": "popover-portal", ...props });
|
|
1235
1335
|
}
|
|
1236
1336
|
function PopoverClose({
|
|
1237
1337
|
...props
|
|
1238
1338
|
}) {
|
|
1239
|
-
return /* @__PURE__ */
|
|
1339
|
+
return /* @__PURE__ */ jsx12(PopoverPrimitive.Close, { "data-slot": "popover-close", ...props });
|
|
1240
1340
|
}
|
|
1241
1341
|
function PopoverContent({
|
|
1242
1342
|
className,
|
|
@@ -1244,7 +1344,7 @@ function PopoverContent({
|
|
|
1244
1344
|
sideOffset = 4,
|
|
1245
1345
|
...props
|
|
1246
1346
|
}) {
|
|
1247
|
-
return /* @__PURE__ */
|
|
1347
|
+
return /* @__PURE__ */ jsx12(PopoverPortal, { children: /* @__PURE__ */ jsx12(
|
|
1248
1348
|
PopoverPrimitive.Content,
|
|
1249
1349
|
{
|
|
1250
1350
|
"data-slot": "popover-content",
|
|
@@ -1262,18 +1362,18 @@ function PopoverContent({
|
|
|
1262
1362
|
function PopoverAnchor({
|
|
1263
1363
|
...props
|
|
1264
1364
|
}) {
|
|
1265
|
-
return /* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ jsx12(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
|
|
1266
1366
|
}
|
|
1267
1367
|
|
|
1268
1368
|
// src/components/resizable/resizable.tsx
|
|
1269
1369
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
1270
|
-
import { jsx as
|
|
1370
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1271
1371
|
function ResizablePanelGroup({
|
|
1272
1372
|
className,
|
|
1273
1373
|
orientation = "horizontal",
|
|
1274
1374
|
...props
|
|
1275
1375
|
}) {
|
|
1276
|
-
return /* @__PURE__ */
|
|
1376
|
+
return /* @__PURE__ */ jsx13(
|
|
1277
1377
|
ResizablePrimitive.Group,
|
|
1278
1378
|
{
|
|
1279
1379
|
"data-orientation": orientation,
|
|
@@ -1288,43 +1388,43 @@ function ResizablePanelGroup({
|
|
|
1288
1388
|
);
|
|
1289
1389
|
}
|
|
1290
1390
|
function ResizablePanel(props) {
|
|
1291
|
-
return /* @__PURE__ */
|
|
1391
|
+
return /* @__PURE__ */ jsx13(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
|
|
1292
1392
|
}
|
|
1293
1393
|
function ResizableHandle({
|
|
1294
1394
|
className,
|
|
1295
1395
|
withHandle,
|
|
1296
1396
|
...props
|
|
1297
1397
|
}) {
|
|
1298
|
-
return /* @__PURE__ */
|
|
1398
|
+
return /* @__PURE__ */ jsx13(
|
|
1299
1399
|
ResizablePrimitive.Separator,
|
|
1300
1400
|
{
|
|
1301
1401
|
"data-slot": "resizable-handle",
|
|
1302
1402
|
className: cn(
|
|
1303
|
-
"group relative flex items-center justify-center bg-transparent outline-none after:absolute after:bg-border/70 after:transition-colors hover:after:bg-border focus-visible:after:bg-ring aria-[orientation=horizontal]:h-
|
|
1403
|
+
"group relative flex items-center justify-center bg-transparent outline-none after:absolute after:bg-border/70 after:transition-colors hover:after:bg-border focus-visible:after:bg-ring aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:cursor-row-resize aria-[orientation=horizontal]:after:inset-x-0 aria-[orientation=horizontal]:after:top-1/2 aria-[orientation=horizontal]:after:h-px aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=vertical]:h-full aria-[orientation=vertical]:w-px aria-[orientation=vertical]:cursor-col-resize aria-[orientation=vertical]:after:inset-y-0 aria-[orientation=vertical]:after:left-1/2 aria-[orientation=vertical]:after:w-px aria-[orientation=vertical]:after:-translate-x-1/2",
|
|
1304
1404
|
className
|
|
1305
1405
|
),
|
|
1306
1406
|
...props,
|
|
1307
|
-
children: withHandle ? /* @__PURE__ */
|
|
1407
|
+
children: withHandle ? /* @__PURE__ */ jsx13("div", { className: "z-10 flex items-center justify-center rounded-full bg-border/85 opacity-0 transition-[background-color,opacity] group-hover:bg-border group-hover:opacity-100 group-focus-visible:bg-border group-focus-visible:opacity-100 group-aria-[orientation=horizontal]:h-[3px] group-aria-[orientation=horizontal]:w-10 group-aria-[orientation=vertical]:h-10 group-aria-[orientation=vertical]:w-[3px]" }) : null
|
|
1308
1408
|
}
|
|
1309
1409
|
);
|
|
1310
1410
|
}
|
|
1311
1411
|
|
|
1312
1412
|
// src/components/scroll-area/scroll-area.tsx
|
|
1313
1413
|
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
1314
|
-
import { jsx as
|
|
1414
|
+
import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1315
1415
|
function ScrollArea({
|
|
1316
1416
|
className,
|
|
1317
1417
|
children,
|
|
1318
1418
|
...props
|
|
1319
1419
|
}) {
|
|
1320
|
-
return /* @__PURE__ */
|
|
1420
|
+
return /* @__PURE__ */ jsxs6(
|
|
1321
1421
|
ScrollAreaPrimitive.Root,
|
|
1322
1422
|
{
|
|
1323
1423
|
"data-slot": "scroll-area",
|
|
1324
1424
|
className: cn("group/scroll-area relative", className),
|
|
1325
1425
|
...props,
|
|
1326
1426
|
children: [
|
|
1327
|
-
/* @__PURE__ */
|
|
1427
|
+
/* @__PURE__ */ jsx14(
|
|
1328
1428
|
ScrollAreaPrimitive.Viewport,
|
|
1329
1429
|
{
|
|
1330
1430
|
"data-slot": "scroll-area-viewport",
|
|
@@ -1332,8 +1432,8 @@ function ScrollArea({
|
|
|
1332
1432
|
children
|
|
1333
1433
|
}
|
|
1334
1434
|
),
|
|
1335
|
-
/* @__PURE__ */
|
|
1336
|
-
/* @__PURE__ */
|
|
1435
|
+
/* @__PURE__ */ jsx14(ScrollBar, {}),
|
|
1436
|
+
/* @__PURE__ */ jsx14(ScrollAreaPrimitive.Corner, {})
|
|
1337
1437
|
]
|
|
1338
1438
|
}
|
|
1339
1439
|
);
|
|
@@ -1343,7 +1443,7 @@ function ScrollBar({
|
|
|
1343
1443
|
orientation = "vertical",
|
|
1344
1444
|
...props
|
|
1345
1445
|
}) {
|
|
1346
|
-
return /* @__PURE__ */
|
|
1446
|
+
return /* @__PURE__ */ jsx14(
|
|
1347
1447
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
1348
1448
|
{
|
|
1349
1449
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -1354,7 +1454,7 @@ function ScrollBar({
|
|
|
1354
1454
|
className
|
|
1355
1455
|
),
|
|
1356
1456
|
...props,
|
|
1357
|
-
children: /* @__PURE__ */
|
|
1457
|
+
children: /* @__PURE__ */ jsx14(
|
|
1358
1458
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
1359
1459
|
{
|
|
1360
1460
|
"data-slot": "scroll-area-thumb",
|
|
@@ -1367,17 +1467,17 @@ function ScrollBar({
|
|
|
1367
1467
|
|
|
1368
1468
|
// src/components/select/select.tsx
|
|
1369
1469
|
import { Select as SelectPrimitive } from "radix-ui";
|
|
1370
|
-
import { jsx as
|
|
1470
|
+
import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1371
1471
|
function Select({
|
|
1372
1472
|
...props
|
|
1373
1473
|
}) {
|
|
1374
|
-
return /* @__PURE__ */
|
|
1474
|
+
return /* @__PURE__ */ jsx15(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
1375
1475
|
}
|
|
1376
1476
|
function SelectGroup({
|
|
1377
1477
|
className,
|
|
1378
1478
|
...props
|
|
1379
1479
|
}) {
|
|
1380
|
-
return /* @__PURE__ */
|
|
1480
|
+
return /* @__PURE__ */ jsx15(
|
|
1381
1481
|
SelectPrimitive.Group,
|
|
1382
1482
|
{
|
|
1383
1483
|
"data-slot": "select-group",
|
|
@@ -1389,7 +1489,7 @@ function SelectGroup({
|
|
|
1389
1489
|
function SelectValue({
|
|
1390
1490
|
...props
|
|
1391
1491
|
}) {
|
|
1392
|
-
return /* @__PURE__ */
|
|
1492
|
+
return /* @__PURE__ */ jsx15(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
1393
1493
|
}
|
|
1394
1494
|
function SelectTrigger({
|
|
1395
1495
|
className,
|
|
@@ -1397,7 +1497,7 @@ function SelectTrigger({
|
|
|
1397
1497
|
children,
|
|
1398
1498
|
...props
|
|
1399
1499
|
}) {
|
|
1400
|
-
return /* @__PURE__ */
|
|
1500
|
+
return /* @__PURE__ */ jsxs7(
|
|
1401
1501
|
SelectPrimitive.Trigger,
|
|
1402
1502
|
{
|
|
1403
1503
|
"data-slot": "select-trigger",
|
|
@@ -1409,7 +1509,7 @@ function SelectTrigger({
|
|
|
1409
1509
|
...props,
|
|
1410
1510
|
children: [
|
|
1411
1511
|
children,
|
|
1412
|
-
/* @__PURE__ */
|
|
1512
|
+
/* @__PURE__ */ jsx15(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx15(ChevronDownIcon, { className: "pointer-events-none size-4 text-[var(--text-secondary)]" }) })
|
|
1413
1513
|
]
|
|
1414
1514
|
}
|
|
1415
1515
|
);
|
|
@@ -1422,7 +1522,7 @@ function SelectContent({
|
|
|
1422
1522
|
style,
|
|
1423
1523
|
...props
|
|
1424
1524
|
}) {
|
|
1425
|
-
return /* @__PURE__ */
|
|
1525
|
+
return /* @__PURE__ */ jsx15(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx15(
|
|
1426
1526
|
SelectPrimitive.Content,
|
|
1427
1527
|
{
|
|
1428
1528
|
asChild: true,
|
|
@@ -1431,7 +1531,7 @@ function SelectContent({
|
|
|
1431
1531
|
position,
|
|
1432
1532
|
align,
|
|
1433
1533
|
...props,
|
|
1434
|
-
children: /* @__PURE__ */
|
|
1534
|
+
children: /* @__PURE__ */ jsxs7(
|
|
1435
1535
|
MenuSurface,
|
|
1436
1536
|
{
|
|
1437
1537
|
"data-slot": "select-content",
|
|
@@ -1442,8 +1542,8 @@ function SelectContent({
|
|
|
1442
1542
|
),
|
|
1443
1543
|
style: { zIndex: "var(--z-popover)", ...style },
|
|
1444
1544
|
children: [
|
|
1445
|
-
/* @__PURE__ */
|
|
1446
|
-
/* @__PURE__ */
|
|
1545
|
+
/* @__PURE__ */ jsx15(SelectScrollUpButton, {}),
|
|
1546
|
+
/* @__PURE__ */ jsx15(
|
|
1447
1547
|
SelectPrimitive.Viewport,
|
|
1448
1548
|
{
|
|
1449
1549
|
"data-position": position,
|
|
@@ -1453,7 +1553,7 @@ function SelectContent({
|
|
|
1453
1553
|
children
|
|
1454
1554
|
}
|
|
1455
1555
|
),
|
|
1456
|
-
/* @__PURE__ */
|
|
1556
|
+
/* @__PURE__ */ jsx15(SelectScrollDownButton, {})
|
|
1457
1557
|
]
|
|
1458
1558
|
}
|
|
1459
1559
|
)
|
|
@@ -1464,7 +1564,7 @@ function SelectLabel({
|
|
|
1464
1564
|
className,
|
|
1465
1565
|
...props
|
|
1466
1566
|
}) {
|
|
1467
|
-
return /* @__PURE__ */
|
|
1567
|
+
return /* @__PURE__ */ jsx15(
|
|
1468
1568
|
SelectPrimitive.Label,
|
|
1469
1569
|
{
|
|
1470
1570
|
"data-slot": "select-label",
|
|
@@ -1480,7 +1580,7 @@ function SelectSplitLayout({
|
|
|
1480
1580
|
className,
|
|
1481
1581
|
...props
|
|
1482
1582
|
}) {
|
|
1483
|
-
return /* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ jsx15(
|
|
1484
1584
|
"div",
|
|
1485
1585
|
{
|
|
1486
1586
|
"data-slot": "select-split-layout",
|
|
@@ -1496,7 +1596,7 @@ function SelectSplitColumn({
|
|
|
1496
1596
|
className,
|
|
1497
1597
|
...props
|
|
1498
1598
|
}) {
|
|
1499
|
-
return /* @__PURE__ */
|
|
1599
|
+
return /* @__PURE__ */ jsx15(
|
|
1500
1600
|
"div",
|
|
1501
1601
|
{
|
|
1502
1602
|
"data-slot": "select-split-column",
|
|
@@ -1509,7 +1609,7 @@ function SelectSplitColumnLabel({
|
|
|
1509
1609
|
className,
|
|
1510
1610
|
...props
|
|
1511
1611
|
}) {
|
|
1512
|
-
return /* @__PURE__ */
|
|
1612
|
+
return /* @__PURE__ */ jsx15(
|
|
1513
1613
|
"div",
|
|
1514
1614
|
{
|
|
1515
1615
|
"data-slot": "select-split-column-label",
|
|
@@ -1525,7 +1625,7 @@ function SelectSplitColumnItems({
|
|
|
1525
1625
|
className,
|
|
1526
1626
|
...props
|
|
1527
1627
|
}) {
|
|
1528
|
-
return /* @__PURE__ */
|
|
1628
|
+
return /* @__PURE__ */ jsx15(
|
|
1529
1629
|
"div",
|
|
1530
1630
|
{
|
|
1531
1631
|
"data-slot": "select-split-column-items",
|
|
@@ -1541,7 +1641,7 @@ function SelectSplitDivider({
|
|
|
1541
1641
|
className,
|
|
1542
1642
|
...props
|
|
1543
1643
|
}) {
|
|
1544
|
-
return /* @__PURE__ */
|
|
1644
|
+
return /* @__PURE__ */ jsx15(
|
|
1545
1645
|
"div",
|
|
1546
1646
|
{
|
|
1547
1647
|
"aria-hidden": "true",
|
|
@@ -1559,15 +1659,15 @@ function SelectItem({
|
|
|
1559
1659
|
children,
|
|
1560
1660
|
...props
|
|
1561
1661
|
}) {
|
|
1562
|
-
return /* @__PURE__ */
|
|
1662
|
+
return /* @__PURE__ */ jsxs7(
|
|
1563
1663
|
SelectPrimitive.Item,
|
|
1564
1664
|
{
|
|
1565
1665
|
"data-slot": "select-item",
|
|
1566
1666
|
className: cn("w-full", menuItemWithIndicatorClassName, className),
|
|
1567
1667
|
...props,
|
|
1568
1668
|
children: [
|
|
1569
|
-
/* @__PURE__ */
|
|
1570
|
-
/* @__PURE__ */
|
|
1669
|
+
/* @__PURE__ */ jsx15("span", { className: menuItemIndicatorClassName, children: /* @__PURE__ */ jsx15(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx15(CheckIcon, { className: "pointer-events-none" }) }) }),
|
|
1670
|
+
/* @__PURE__ */ jsx15(SelectPrimitive.ItemText, { children })
|
|
1571
1671
|
]
|
|
1572
1672
|
}
|
|
1573
1673
|
);
|
|
@@ -1576,7 +1676,7 @@ function SelectSeparator({
|
|
|
1576
1676
|
className,
|
|
1577
1677
|
...props
|
|
1578
1678
|
}) {
|
|
1579
|
-
return /* @__PURE__ */
|
|
1679
|
+
return /* @__PURE__ */ jsx15(
|
|
1580
1680
|
SelectPrimitive.Separator,
|
|
1581
1681
|
{
|
|
1582
1682
|
"data-slot": "select-separator",
|
|
@@ -1592,7 +1692,7 @@ function SelectScrollUpButton({
|
|
|
1592
1692
|
className,
|
|
1593
1693
|
...props
|
|
1594
1694
|
}) {
|
|
1595
|
-
return /* @__PURE__ */
|
|
1695
|
+
return /* @__PURE__ */ jsx15(
|
|
1596
1696
|
SelectPrimitive.ScrollUpButton,
|
|
1597
1697
|
{
|
|
1598
1698
|
"data-slot": "select-scroll-up-button",
|
|
@@ -1601,7 +1701,7 @@ function SelectScrollUpButton({
|
|
|
1601
1701
|
className
|
|
1602
1702
|
),
|
|
1603
1703
|
...props,
|
|
1604
|
-
children: /* @__PURE__ */
|
|
1704
|
+
children: /* @__PURE__ */ jsx15(ChevronUpIcon, {})
|
|
1605
1705
|
}
|
|
1606
1706
|
);
|
|
1607
1707
|
}
|
|
@@ -1609,7 +1709,7 @@ function SelectScrollDownButton({
|
|
|
1609
1709
|
className,
|
|
1610
1710
|
...props
|
|
1611
1711
|
}) {
|
|
1612
|
-
return /* @__PURE__ */
|
|
1712
|
+
return /* @__PURE__ */ jsx15(
|
|
1613
1713
|
SelectPrimitive.ScrollDownButton,
|
|
1614
1714
|
{
|
|
1615
1715
|
"data-slot": "select-scroll-down-button",
|
|
@@ -1618,21 +1718,21 @@ function SelectScrollDownButton({
|
|
|
1618
1718
|
className
|
|
1619
1719
|
),
|
|
1620
1720
|
...props,
|
|
1621
|
-
children: /* @__PURE__ */
|
|
1721
|
+
children: /* @__PURE__ */ jsx15(ChevronDownIcon, {})
|
|
1622
1722
|
}
|
|
1623
1723
|
);
|
|
1624
1724
|
}
|
|
1625
1725
|
|
|
1626
1726
|
// src/components/separator/separator.tsx
|
|
1627
1727
|
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
1628
|
-
import { jsx as
|
|
1728
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1629
1729
|
function Separator2({
|
|
1630
1730
|
className,
|
|
1631
1731
|
orientation = "horizontal",
|
|
1632
1732
|
decorative = true,
|
|
1633
1733
|
...props
|
|
1634
1734
|
}) {
|
|
1635
|
-
return /* @__PURE__ */
|
|
1735
|
+
return /* @__PURE__ */ jsx16(
|
|
1636
1736
|
SeparatorPrimitive.Root,
|
|
1637
1737
|
{
|
|
1638
1738
|
"data-slot": "separator",
|
|
@@ -1648,7 +1748,7 @@ function Separator2({
|
|
|
1648
1748
|
}
|
|
1649
1749
|
|
|
1650
1750
|
// src/components/spinner/spinner.tsx
|
|
1651
|
-
import { jsx as
|
|
1751
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1652
1752
|
function Spinner({
|
|
1653
1753
|
className,
|
|
1654
1754
|
size = 16,
|
|
@@ -1657,7 +1757,7 @@ function Spinner({
|
|
|
1657
1757
|
testId,
|
|
1658
1758
|
trackColor
|
|
1659
1759
|
}) {
|
|
1660
|
-
return /* @__PURE__ */
|
|
1760
|
+
return /* @__PURE__ */ jsx17(
|
|
1661
1761
|
LoadingIcon,
|
|
1662
1762
|
{
|
|
1663
1763
|
"data-slot": "spinner",
|
|
@@ -1677,7 +1777,7 @@ function Spinner({
|
|
|
1677
1777
|
|
|
1678
1778
|
// src/components/status-dot/status-dot.tsx
|
|
1679
1779
|
import { cva as cva3 } from "class-variance-authority";
|
|
1680
|
-
import { jsx as
|
|
1780
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1681
1781
|
var statusDotVariants = cva3("inline-flex shrink-0 rounded-full", {
|
|
1682
1782
|
variants: {
|
|
1683
1783
|
tone: {
|
|
@@ -1711,7 +1811,7 @@ function StatusDot({
|
|
|
1711
1811
|
title,
|
|
1712
1812
|
className
|
|
1713
1813
|
}) {
|
|
1714
|
-
return /* @__PURE__ */
|
|
1814
|
+
return /* @__PURE__ */ jsx18(
|
|
1715
1815
|
"span",
|
|
1716
1816
|
{
|
|
1717
1817
|
"aria-hidden": ariaLabel ? void 0 : true,
|
|
@@ -1729,27 +1829,27 @@ function StatusDot({
|
|
|
1729
1829
|
|
|
1730
1830
|
// src/components/switch/switch.tsx
|
|
1731
1831
|
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
1732
|
-
import { jsx as
|
|
1832
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1733
1833
|
function Switch({
|
|
1734
1834
|
className,
|
|
1735
1835
|
size = "default",
|
|
1736
1836
|
...props
|
|
1737
1837
|
}) {
|
|
1738
|
-
return /* @__PURE__ */
|
|
1838
|
+
return /* @__PURE__ */ jsx19(
|
|
1739
1839
|
SwitchPrimitive.Root,
|
|
1740
1840
|
{
|
|
1741
1841
|
"data-slot": "switch",
|
|
1742
1842
|
"data-size": size,
|
|
1743
1843
|
className: cn(
|
|
1744
|
-
"peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-[background-color,border-color,box-shadow] outline-none focus-visible:border-border focus-visible:ring-2 focus-visible:ring-
|
|
1844
|
+
"peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-[background-color,border-color,box-shadow] outline-none focus-visible:border-[var(--border-focus)] focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--border-focus)_30%,transparent)] aria-invalid:border-[var(--state-danger)] aria-invalid:ring-2 aria-invalid:ring-[color-mix(in_srgb,var(--state-danger)_20%,transparent)] data-[size=default]:h-[18px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] data-[state=checked]:bg-[var(--accent)] data-[state=unchecked]:bg-[var(--text-disabled)] data-disabled:cursor-not-allowed data-disabled:opacity-100",
|
|
1745
1845
|
className
|
|
1746
1846
|
),
|
|
1747
1847
|
...props,
|
|
1748
|
-
children: /* @__PURE__ */
|
|
1848
|
+
children: /* @__PURE__ */ jsx19(
|
|
1749
1849
|
SwitchPrimitive.Thumb,
|
|
1750
1850
|
{
|
|
1751
1851
|
"data-slot": "switch-thumb",
|
|
1752
|
-
className: "pointer-events-none block rounded-full bg-[var(--white-stationary)] ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-[state=checked]:translate-x-[14px] group-data-[size=sm]/switch:data-[state=checked]:translate-x-[10px] group-data-[size=default]/switch:data-[state=unchecked]:translate-x-
|
|
1852
|
+
className: "pointer-events-none block rounded-full bg-[var(--white-stationary)] ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-[state=checked]:translate-x-[14px] group-data-[size=sm]/switch:data-[state=checked]:translate-x-[10px] group-data-[size=default]/switch:data-[state=unchecked]:translate-x-0 group-data-[size=sm]/switch:data-[state=unchecked]:translate-x-0"
|
|
1753
1853
|
}
|
|
1754
1854
|
)
|
|
1755
1855
|
}
|
|
@@ -1757,9 +1857,9 @@ function Switch({
|
|
|
1757
1857
|
}
|
|
1758
1858
|
|
|
1759
1859
|
// src/components/textarea/textarea.tsx
|
|
1760
|
-
import { jsx as
|
|
1860
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1761
1861
|
function Textarea({ className, ...props }) {
|
|
1762
|
-
return /* @__PURE__ */
|
|
1862
|
+
return /* @__PURE__ */ jsx20(
|
|
1763
1863
|
"textarea",
|
|
1764
1864
|
{
|
|
1765
1865
|
"data-slot": "textarea",
|
|
@@ -1776,7 +1876,7 @@ function Textarea({ className, ...props }) {
|
|
|
1776
1876
|
import * as React4 from "react";
|
|
1777
1877
|
import { Toast as ToastPrimitive } from "radix-ui";
|
|
1778
1878
|
import { cva as cva4 } from "class-variance-authority";
|
|
1779
|
-
import { jsx as
|
|
1879
|
+
import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1780
1880
|
var ToastProvider = ToastPrimitive.Provider;
|
|
1781
1881
|
var ToastVisualContext = React4.createContext(null);
|
|
1782
1882
|
var toastStatusIconByVariant = {
|
|
@@ -1814,7 +1914,7 @@ var toastVariants = cva4(
|
|
|
1814
1914
|
variants: {
|
|
1815
1915
|
variant: {
|
|
1816
1916
|
default: "border border-[var(--toast-neutral-border)] bg-[var(--toast-neutral-bg)] text-[var(--toast-neutral-fg)]",
|
|
1817
|
-
destructive: "border-0 bg-[var(--state-danger)] text-[var(--
|
|
1917
|
+
destructive: "border-0 bg-[var(--state-danger)] text-[var(--white-stationary)]",
|
|
1818
1918
|
success: "border-0 bg-[var(--state-success)] text-[var(--text-inverted)]"
|
|
1819
1919
|
}
|
|
1820
1920
|
},
|
|
@@ -1834,7 +1934,7 @@ function ToastRoot({
|
|
|
1834
1934
|
...props
|
|
1835
1935
|
}) {
|
|
1836
1936
|
const isDestructive = variant === "destructive";
|
|
1837
|
-
return /* @__PURE__ */
|
|
1937
|
+
return /* @__PURE__ */ jsx21(
|
|
1838
1938
|
ToastPrimitive.Root,
|
|
1839
1939
|
{
|
|
1840
1940
|
"aria-busy": busy,
|
|
@@ -1851,7 +1951,7 @@ function ToastRoot({
|
|
|
1851
1951
|
...style
|
|
1852
1952
|
},
|
|
1853
1953
|
...props,
|
|
1854
|
-
children: /* @__PURE__ */
|
|
1954
|
+
children: /* @__PURE__ */ jsx21(ToastVisualContext.Provider, { value: { busy, variant }, children: /* @__PURE__ */ jsx21("span", { className: "flex min-w-0 max-w-full flex-col items-center justify-center whitespace-normal break-words text-center", children }) })
|
|
1855
1955
|
}
|
|
1856
1956
|
);
|
|
1857
1957
|
}
|
|
@@ -1862,7 +1962,7 @@ function ToastTitle({
|
|
|
1862
1962
|
}) {
|
|
1863
1963
|
const toastVisual = React4.useContext(ToastVisualContext);
|
|
1864
1964
|
const StatusIcon = toastVisual?.variant && hasToastStatusIcon(toastVisual.variant) ? toastStatusIconByVariant[toastVisual.variant] : null;
|
|
1865
|
-
return /* @__PURE__ */
|
|
1965
|
+
return /* @__PURE__ */ jsxs8(
|
|
1866
1966
|
ToastPrimitive.Title,
|
|
1867
1967
|
{
|
|
1868
1968
|
"data-slot": "toast-title",
|
|
@@ -1872,7 +1972,7 @@ function ToastTitle({
|
|
|
1872
1972
|
),
|
|
1873
1973
|
...props,
|
|
1874
1974
|
children: [
|
|
1875
|
-
toastVisual?.busy ? /* @__PURE__ */
|
|
1975
|
+
toastVisual?.busy ? /* @__PURE__ */ jsx21(
|
|
1876
1976
|
Spinner,
|
|
1877
1977
|
{
|
|
1878
1978
|
className: "shrink-0 text-current",
|
|
@@ -1880,8 +1980,8 @@ function ToastTitle({
|
|
|
1880
1980
|
strokeWidth: 3,
|
|
1881
1981
|
trackColor: "color-mix(in srgb, currentColor 28%, transparent)"
|
|
1882
1982
|
}
|
|
1883
|
-
) : StatusIcon ? /* @__PURE__ */
|
|
1884
|
-
/* @__PURE__ */
|
|
1983
|
+
) : StatusIcon ? /* @__PURE__ */ jsx21(StatusIcon, { className: "size-4 shrink-0 text-current" }) : null,
|
|
1984
|
+
/* @__PURE__ */ jsx21("span", { className: "min-w-0 break-words", children: formatToastText(children) })
|
|
1885
1985
|
]
|
|
1886
1986
|
}
|
|
1887
1987
|
);
|
|
@@ -1890,7 +1990,7 @@ function ToastDescription({
|
|
|
1890
1990
|
className,
|
|
1891
1991
|
...props
|
|
1892
1992
|
}) {
|
|
1893
|
-
return /* @__PURE__ */
|
|
1993
|
+
return /* @__PURE__ */ jsx21(
|
|
1894
1994
|
ToastPrimitive.Description,
|
|
1895
1995
|
{
|
|
1896
1996
|
"data-slot": "toast-description",
|
|
@@ -1906,7 +2006,7 @@ function ToastClose({
|
|
|
1906
2006
|
className,
|
|
1907
2007
|
...props
|
|
1908
2008
|
}) {
|
|
1909
|
-
return /* @__PURE__ */
|
|
2009
|
+
return /* @__PURE__ */ jsx21(
|
|
1910
2010
|
ToastPrimitive.Close,
|
|
1911
2011
|
{
|
|
1912
2012
|
"data-slot": "toast-close",
|
|
@@ -1915,7 +2015,7 @@ function ToastClose({
|
|
|
1915
2015
|
className
|
|
1916
2016
|
),
|
|
1917
2017
|
...props,
|
|
1918
|
-
children: /* @__PURE__ */
|
|
2018
|
+
children: /* @__PURE__ */ jsx21(CloseIcon, { className: "size-4" })
|
|
1919
2019
|
}
|
|
1920
2020
|
);
|
|
1921
2021
|
}
|
|
@@ -1924,7 +2024,7 @@ function ToastViewport({
|
|
|
1924
2024
|
style,
|
|
1925
2025
|
...props
|
|
1926
2026
|
}) {
|
|
1927
|
-
return /* @__PURE__ */
|
|
2027
|
+
return /* @__PURE__ */ jsx21(
|
|
1928
2028
|
ToastPrimitive.Viewport,
|
|
1929
2029
|
{
|
|
1930
2030
|
"data-slot": "toast-viewport",
|
|
@@ -1940,12 +2040,12 @@ function ToastViewport({
|
|
|
1940
2040
|
|
|
1941
2041
|
// src/components/tooltip/tooltip.tsx
|
|
1942
2042
|
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
1943
|
-
import { jsx as
|
|
2043
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1944
2044
|
function TooltipProvider({
|
|
1945
2045
|
delayDuration = 0,
|
|
1946
2046
|
...props
|
|
1947
2047
|
}) {
|
|
1948
|
-
return /* @__PURE__ */
|
|
2048
|
+
return /* @__PURE__ */ jsx22(
|
|
1949
2049
|
TooltipPrimitive.Provider,
|
|
1950
2050
|
{
|
|
1951
2051
|
"data-slot": "tooltip-provider",
|
|
@@ -1957,25 +2057,25 @@ function TooltipProvider({
|
|
|
1957
2057
|
function Tooltip({
|
|
1958
2058
|
...props
|
|
1959
2059
|
}) {
|
|
1960
|
-
return /* @__PURE__ */
|
|
2060
|
+
return /* @__PURE__ */ jsx22(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props });
|
|
1961
2061
|
}
|
|
1962
2062
|
function TooltipTrigger({
|
|
1963
2063
|
...props
|
|
1964
2064
|
}) {
|
|
1965
|
-
return /* @__PURE__ */
|
|
2065
|
+
return /* @__PURE__ */ jsx22(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
1966
2066
|
}
|
|
1967
2067
|
function TooltipPortal({
|
|
1968
2068
|
...props
|
|
1969
2069
|
}) {
|
|
1970
|
-
return /* @__PURE__ */
|
|
2070
|
+
return /* @__PURE__ */ jsx22(TooltipPrimitive.Portal, { "data-slot": "tooltip-portal", ...props });
|
|
1971
2071
|
}
|
|
1972
2072
|
function TooltipContent({
|
|
1973
2073
|
className,
|
|
1974
|
-
sideOffset =
|
|
2074
|
+
sideOffset = 8,
|
|
1975
2075
|
children,
|
|
1976
2076
|
...props
|
|
1977
2077
|
}) {
|
|
1978
|
-
return /* @__PURE__ */
|
|
2078
|
+
return /* @__PURE__ */ jsx22(TooltipPortal, { children: /* @__PURE__ */ jsx22(
|
|
1979
2079
|
TooltipPrimitive.Content,
|
|
1980
2080
|
{
|
|
1981
2081
|
"data-slot": "tooltip-content",
|
|
@@ -1993,7 +2093,7 @@ function TooltipContent({
|
|
|
1993
2093
|
|
|
1994
2094
|
// src/components/underline-tabs/underline-tabs.tsx
|
|
1995
2095
|
import { useEffect as useEffect3, useLayoutEffect as useLayoutEffect2, useRef as useRef2, useState as useState3 } from "react";
|
|
1996
|
-
import { jsx as
|
|
2096
|
+
import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1997
2097
|
function UnderlineTabs({
|
|
1998
2098
|
tabs,
|
|
1999
2099
|
value,
|
|
@@ -2076,7 +2176,7 @@ function UnderlineTabs({
|
|
|
2076
2176
|
behavior: "smooth"
|
|
2077
2177
|
});
|
|
2078
2178
|
};
|
|
2079
|
-
return /* @__PURE__ */
|
|
2179
|
+
return /* @__PURE__ */ jsxs9(
|
|
2080
2180
|
"div",
|
|
2081
2181
|
{
|
|
2082
2182
|
"aria-label": ariaLabel,
|
|
@@ -2088,7 +2188,7 @@ function UnderlineTabs({
|
|
|
2088
2188
|
"data-testid": testId,
|
|
2089
2189
|
role: "tablist",
|
|
2090
2190
|
children: [
|
|
2091
|
-
/* @__PURE__ */
|
|
2191
|
+
/* @__PURE__ */ jsx23(
|
|
2092
2192
|
"div",
|
|
2093
2193
|
{
|
|
2094
2194
|
ref: viewportRef,
|
|
@@ -2102,7 +2202,7 @@ function UnderlineTabs({
|
|
|
2102
2202
|
"data-can-scroll-right": overflow.canScrollRight ? "true" : "false",
|
|
2103
2203
|
"data-slot": "underline-tabs-viewport",
|
|
2104
2204
|
"data-testid": viewportTestId,
|
|
2105
|
-
children: /* @__PURE__ */
|
|
2205
|
+
children: /* @__PURE__ */ jsxs9(
|
|
2106
2206
|
"div",
|
|
2107
2207
|
{
|
|
2108
2208
|
ref: rowRef,
|
|
@@ -2110,7 +2210,7 @@ function UnderlineTabs({
|
|
|
2110
2210
|
children: [
|
|
2111
2211
|
tabs.map((tab) => {
|
|
2112
2212
|
const isActive = value === tab.value;
|
|
2113
|
-
return /* @__PURE__ */
|
|
2213
|
+
return /* @__PURE__ */ jsxs9(
|
|
2114
2214
|
"button",
|
|
2115
2215
|
{
|
|
2116
2216
|
ref: (element) => {
|
|
@@ -2133,14 +2233,14 @@ function UnderlineTabs({
|
|
|
2133
2233
|
onClick: () => onValueChange(tab.value),
|
|
2134
2234
|
onMouseDown: preventMouseDownDefault ? (event) => event.preventDefault() : void 0,
|
|
2135
2235
|
children: [
|
|
2136
|
-
/* @__PURE__ */
|
|
2137
|
-
tab.count !== void 0 ? /* @__PURE__ */
|
|
2236
|
+
/* @__PURE__ */ jsx23("span", { children: tab.label }),
|
|
2237
|
+
tab.count !== void 0 ? /* @__PURE__ */ jsx23("span", { className: "text-xs font-semibold leading-6 text-[inherit] opacity-[0.58]", children: tab.count }) : null
|
|
2138
2238
|
]
|
|
2139
2239
|
},
|
|
2140
2240
|
tab.value
|
|
2141
2241
|
);
|
|
2142
2242
|
}),
|
|
2143
|
-
/* @__PURE__ */
|
|
2243
|
+
/* @__PURE__ */ jsx23(
|
|
2144
2244
|
"div",
|
|
2145
2245
|
{
|
|
2146
2246
|
"aria-hidden": true,
|
|
@@ -2157,7 +2257,7 @@ function UnderlineTabs({
|
|
|
2157
2257
|
)
|
|
2158
2258
|
}
|
|
2159
2259
|
),
|
|
2160
|
-
/* @__PURE__ */
|
|
2260
|
+
/* @__PURE__ */ jsx23(
|
|
2161
2261
|
"button",
|
|
2162
2262
|
{
|
|
2163
2263
|
"aria-label": scrollLeftLabel,
|
|
@@ -2168,10 +2268,10 @@ function UnderlineTabs({
|
|
|
2168
2268
|
disabled: !overflow.canScrollLeft,
|
|
2169
2269
|
type: "button",
|
|
2170
2270
|
onClick: () => scrollTabs("left"),
|
|
2171
|
-
children: /* @__PURE__ */
|
|
2271
|
+
children: /* @__PURE__ */ jsx23(ArrowLeftIcon, { size: 16 })
|
|
2172
2272
|
}
|
|
2173
2273
|
),
|
|
2174
|
-
/* @__PURE__ */
|
|
2274
|
+
/* @__PURE__ */ jsx23(
|
|
2175
2275
|
"button",
|
|
2176
2276
|
{
|
|
2177
2277
|
"aria-label": scrollRightLabel,
|
|
@@ -2182,7 +2282,7 @@ function UnderlineTabs({
|
|
|
2182
2282
|
disabled: !overflow.canScrollRight,
|
|
2183
2283
|
type: "button",
|
|
2184
2284
|
onClick: () => scrollTabs("right"),
|
|
2185
|
-
children: /* @__PURE__ */
|
|
2285
|
+
children: /* @__PURE__ */ jsx23(ArrowRightIcon, { size: 16 })
|
|
2186
2286
|
}
|
|
2187
2287
|
)
|
|
2188
2288
|
]
|
|
@@ -2193,7 +2293,7 @@ function UnderlineTabs({
|
|
|
2193
2293
|
// src/components/viewport-menu-surface/viewport-menu-surface.tsx
|
|
2194
2294
|
import * as React5 from "react";
|
|
2195
2295
|
import { createPortal as createPortal2 } from "react-dom";
|
|
2196
|
-
import { jsx as
|
|
2296
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2197
2297
|
var VIEWPORT_MENU_PADDING = 12;
|
|
2198
2298
|
var MENU_BOUNDARY_PADDING = 8;
|
|
2199
2299
|
function clampMenuCoordinate(origin, size, viewportExtent, padding) {
|
|
@@ -2440,7 +2540,7 @@ var ViewportMenuSurface = React5.forwardRef(function ViewportMenuSurface2({
|
|
|
2440
2540
|
return null;
|
|
2441
2541
|
}
|
|
2442
2542
|
return createPortal2(
|
|
2443
|
-
/* @__PURE__ */
|
|
2543
|
+
/* @__PURE__ */ jsx24(
|
|
2444
2544
|
MenuSurface,
|
|
2445
2545
|
{
|
|
2446
2546
|
...rest,
|
|
@@ -2519,6 +2619,7 @@ export {
|
|
|
2519
2619
|
DropdownMenuSubTrigger,
|
|
2520
2620
|
DropdownMenuSubContent,
|
|
2521
2621
|
Input,
|
|
2622
|
+
MentionPill,
|
|
2522
2623
|
Popover,
|
|
2523
2624
|
PopoverTrigger,
|
|
2524
2625
|
PopoverPortal,
|
|
@@ -2566,4 +2667,4 @@ export {
|
|
|
2566
2667
|
UnderlineTabs,
|
|
2567
2668
|
ViewportMenuSurface
|
|
2568
2669
|
};
|
|
2569
|
-
//# sourceMappingURL=chunk-
|
|
2670
|
+
//# sourceMappingURL=chunk-D5Y4OBKX.js.map
|