jenosize-ui 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -7
- package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
- package/dist/area-chart.d.ts +53 -0
- package/dist/area-chart.js +8 -0
- package/dist/avatar.d.ts +19 -0
- package/dist/avatar.js +12 -7
- package/dist/badge.js +5 -5
- package/dist/bar-chart.d.ts +31 -0
- package/dist/bar-chart.js +8 -0
- package/dist/breadcrumb.js +3 -3
- package/dist/button.d.ts +11 -1
- package/dist/button.js +9 -8
- package/dist/calendar.js +14 -12
- package/dist/callout.js +10 -9
- package/dist/card.d.ts +52 -2
- package/dist/card.js +6 -2
- package/dist/checkbox.js +6 -5
- package/dist/chunk-34J5AANZ.js +605 -0
- package/dist/{chunk-D6TPWNRK.js → chunk-3GT43XPK.js} +5 -5
- package/dist/{chunk-3Y5X7B5C.js → chunk-3Z3SDKIA.js} +6 -11
- package/dist/{chunk-MQGD2OUF.js → chunk-42FCPC77.js} +3 -3
- package/dist/{chunk-Z3ETJN5G.js → chunk-4BRMM3I5.js} +6 -11
- package/dist/{chunk-WZQFC7ZN.js → chunk-4HKDD3PR.js} +55 -16
- package/dist/chunk-4K6V6NNK.js +169 -0
- package/dist/{chunk-ZZA2LUTL.js → chunk-4R7WDDCW.js} +41 -16
- package/dist/{chunk-BJUZVYQC.js → chunk-4W6AYGLR.js} +12 -12
- package/dist/{chunk-4OLULPQG.js → chunk-54S5CUY6.js} +8 -5
- package/dist/{chunk-GRLSUQQE.js → chunk-5JRM3OES.js} +4 -4
- package/dist/chunk-5ZPUAGOP.js +19 -0
- package/dist/{chunk-W5GGOUUI.js → chunk-6HJA7NPL.js} +3 -3
- package/dist/{chunk-CME4DIML.js → chunk-6IUTVDNI.js} +22 -3
- package/dist/chunk-6UBYHSBX.js +147 -0
- package/dist/{chunk-HMUZE6EK.js → chunk-74HPBSVY.js} +3 -3
- package/dist/chunk-75M43ELV.js +366 -0
- package/dist/chunk-763VS2FY.js +10 -0
- package/dist/chunk-7HV6EIGZ.js +26 -0
- package/dist/chunk-7VLYQR4D.js +44 -0
- package/dist/{chunk-D5BTFSL7.js → chunk-A46ED5JQ.js} +3 -3
- package/dist/{chunk-W46K56XU.js → chunk-A5WQLN4B.js} +8 -24
- package/dist/chunk-AC6ZWKRN.js +23 -0
- package/dist/{chunk-E7ZSWBAK.js → chunk-BD5YKFRA.js} +4 -4
- package/dist/chunk-BLIZ3CL3.js +49 -0
- package/dist/{chunk-DRZCJCBO.js → chunk-BNIWT6CW.js} +4 -4
- package/dist/{chunk-JVJRHBTD.js → chunk-C6OTOTKI.js} +21 -8
- package/dist/chunk-CTENRS34.js +60 -0
- package/dist/{chunk-7IU5TMFL.js → chunk-CWMFEF6R.js} +75 -27
- package/dist/{chunk-JTNFJLIY.js → chunk-DCGTB7P7.js} +13 -13
- package/dist/{chunk-GFOAJVW5.js → chunk-DJYWPJZ3.js} +3 -3
- package/dist/{chunk-MUFHLP4S.js → chunk-DTMYD63D.js} +11 -22
- package/dist/{chunk-KDLPXXD2.js → chunk-EDOUI2BG.js} +4 -4
- package/dist/{chunk-R6RGJF4L.js → chunk-EDT5J5WK.js} +4 -4
- package/dist/{chunk-PWKWNDBS.js → chunk-EX374YWB.js} +6 -6
- package/dist/{chunk-F2K7VJUV.js → chunk-FFTRB2UU.js} +4 -4
- package/dist/chunk-FIGBJGH2.js +1474 -0
- package/dist/chunk-FKVPAEJ6.js +57 -0
- package/dist/{chunk-J7ZQQFPT.js → chunk-FZBZGA3P.js} +17 -17
- package/dist/{chunk-T7FCG7XV.js → chunk-GAFGIT4Q.js} +10 -10
- package/dist/chunk-HSVBTIP2.js +482 -0
- package/dist/{chunk-FHHAPGCR.js → chunk-ILICYNK7.js} +3 -3
- package/dist/{chunk-WFY7DKQD.js → chunk-JAVNGTOE.js} +9 -14
- package/dist/{chunk-7HOIZ3UO.js → chunk-JMWYCT63.js} +6 -6
- package/dist/{chunk-QA74ITR4.js → chunk-JUWDRRD6.js} +45 -17
- package/dist/{chunk-BVJWBYIG.js → chunk-JXHZHUB3.js} +4 -4
- package/dist/{chunk-VWC72TR3.js → chunk-JYBGO6GY.js} +7 -7
- package/dist/{chunk-J36M3KRX.js → chunk-L53Y7KUV.js} +13 -11
- package/dist/chunk-LBYCCLVI.js +33 -0
- package/dist/chunk-LCG34A5T.js +98 -0
- package/dist/chunk-M5TVCASC.js +75 -0
- package/dist/chunk-MCUASLZH.js +10 -0
- package/dist/{chunk-5RAPA22E.js → chunk-MD4AR43X.js} +4 -4
- package/dist/{chunk-JP26LPCY.js → chunk-MYQ3FD4Y.js} +25 -11
- package/dist/chunk-NA35YZRD.js +252 -0
- package/dist/chunk-NKDW6C7K.js +10 -0
- package/dist/{chunk-5NOBSXJN.js → chunk-NMERLWT7.js} +6 -6
- package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
- package/dist/{chunk-LME57Z6J.js → chunk-P7DH62UY.js} +6 -6
- package/dist/chunk-PO2TYK3C.js +17 -0
- package/dist/{chunk-5FATN5YD.js → chunk-PXEJ5RKO.js} +4 -4
- package/dist/{chunk-JYGR44ZC.js → chunk-QBHQOX23.js} +6 -6
- package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
- package/dist/{chunk-J2BCKBHC.js → chunk-QKDEQFOQ.js} +4 -4
- package/dist/{chunk-ZOOX3TUB.js → chunk-RIXEUAPY.js} +5 -5
- package/dist/{chunk-THC2ISYP.js → chunk-RNXRZGXN.js} +4 -4
- package/dist/{chunk-7EWQKTNQ.js → chunk-T2WAD4QP.js} +15 -13
- package/dist/{chunk-KNYKWUYX.js → chunk-TBN644IN.js} +3 -3
- package/dist/{chunk-MKC5HNA7.js → chunk-USL3TDZM.js} +101 -90
- package/dist/{chunk-CYPPEUX5.js → chunk-VEOYCAJP.js} +4 -9
- package/dist/{chunk-WEUJYDCV.js → chunk-VH35QHD4.js} +6 -6
- package/dist/chunk-VWGAMOSE.js +188 -0
- package/dist/{chunk-SV56BSUQ.js → chunk-WKWAUU64.js} +4 -4
- package/dist/chunk-X2X7Q7NW.js +17 -0
- package/dist/{chunk-I7WU4GTY.js → chunk-YLEHYDXC.js} +5 -5
- package/dist/combobox.js +12 -10
- package/dist/control-size-CaxQhkKh.d.ts +3 -0
- package/dist/date-input.js +9 -8
- package/dist/date-picker.js +20 -17
- package/dist/dialog.d.ts +16 -4
- package/dist/dialog.js +8 -6
- package/dist/drawer.d.ts +9 -2
- package/dist/drawer.js +7 -5
- package/dist/dropdown-menu.d.ts +14 -2
- package/dist/dropdown-menu.js +7 -3
- package/dist/dropzone.d.ts +34 -0
- package/dist/dropzone.js +22 -0
- package/dist/form.d.ts +78 -0
- package/dist/form.js +176 -32
- package/dist/header-navigation.d.ts +15 -4
- package/dist/header-navigation.js +19 -14
- package/dist/index.d.ts +26 -4
- package/dist/index.js +76 -56
- package/dist/indicator.js +4 -4
- package/dist/input.js +8 -7
- package/dist/kanban-board.d.ts +549 -0
- package/dist/kanban-board.js +23 -0
- package/dist/line-chart.d.ts +35 -0
- package/dist/line-chart.js +8 -0
- package/dist/{nav-Bla0o_-1.d.ts → nav-DcCyt00p.d.ts} +8 -11
- package/dist/number-input.js +8 -7
- package/dist/pagination.js +12 -9
- package/dist/panel-El4oI68p.d.ts +9 -0
- package/dist/payment-input.js +8 -7
- package/dist/pie-chart.d.ts +60 -0
- package/dist/pie-chart.js +8 -0
- package/dist/popover.d.ts +9 -3
- package/dist/popover.js +7 -5
- package/dist/progress-steps.d.ts +275 -0
- package/dist/progress-steps.js +8 -0
- package/dist/progress.js +2 -2
- package/dist/radar-chart.d.ts +73 -0
- package/dist/radar-chart.js +8 -0
- package/dist/radial-chart.d.ts +69 -0
- package/dist/radial-chart.js +8 -0
- package/dist/radio.js +6 -5
- package/dist/rule-BqzaIwJy.d.ts +80 -0
- package/dist/scroll-area.d.ts +62 -0
- package/dist/scroll-area.js +7 -0
- package/dist/select.d.ts +1 -2
- package/dist/select.js +15 -13
- package/dist/separator.d.ts +114 -0
- package/dist/separator.js +5 -0
- package/dist/sidebar-navigation.d.ts +54 -7
- package/dist/sidebar-navigation.js +15 -8
- package/dist/skeleton.d.ts +61 -0
- package/dist/skeleton.js +5 -0
- package/dist/styles.css +1 -1
- package/dist/surface-DFyDnrTJ.d.ts +34 -0
- package/dist/switch.js +2 -2
- package/dist/table.d.ts +94 -38
- package/dist/table.js +32 -28
- package/dist/tabs.js +2 -2
- package/dist/tag-input.js +11 -10
- package/dist/tag.js +3 -3
- package/dist/textarea.js +6 -5
- package/dist/theme.css +82 -0
- package/dist/theme.js +10 -9
- package/dist/toast.js +10 -9
- package/dist/tooltip-surface-Dmvb8v5K.d.ts +35 -0
- package/dist/tooltip.d.ts +15 -1
- package/dist/tooltip.js +3 -2
- package/dist/tree.js +6 -5
- package/dist/types-6kvYwtRH.d.ts +156 -0
- package/dist/use-uploads-ButS4dGe.d.ts +473 -0
- package/dist/verification-code-input.d.ts +84 -0
- package/dist/verification-code-input.js +13 -0
- package/package.json +59 -9
- package/dist/card-nWicloNi.d.ts +0 -80
- package/dist/chunk-24TO7E32.js +0 -42
- package/dist/chunk-FXIBGTS5.js +0 -14
- package/dist/chunk-ZZT2E5VT.js +0 -24
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { useControllableOpen } from './chunk-
|
|
2
|
-
import { PanelChrome } from './chunk-
|
|
3
|
-
import { CloseButton } from './chunk-
|
|
1
|
+
import { useControllableOpen } from './chunk-VEOYCAJP.js';
|
|
2
|
+
import { PanelChrome } from './chunk-FZBZGA3P.js';
|
|
3
|
+
import { CloseButton } from './chunk-42FCPC77.js';
|
|
4
4
|
import { EXPLICIT_CLOSE } from './chunk-S7NNXWIN.js';
|
|
5
|
-
import { useScrollFade } from './chunk-O2LG3PNI.js';
|
|
6
5
|
import { DRAWER_BACKDROP_MOTION, DRAWER_POPUP_MOTION, DRAWER_SLIDE } from './chunk-O4GRKO3I.js';
|
|
7
6
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
8
7
|
import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
|
|
@@ -49,7 +48,7 @@ function Drawer(props) {
|
|
|
49
48
|
side = "right",
|
|
50
49
|
size = "md",
|
|
51
50
|
showClose = true,
|
|
52
|
-
dividers =
|
|
51
|
+
dividers = "line",
|
|
53
52
|
keepMounted = false,
|
|
54
53
|
dismissible = true,
|
|
55
54
|
container,
|
|
@@ -64,8 +63,6 @@ function Drawer(props) {
|
|
|
64
63
|
const ariaLabel = props["aria-label"];
|
|
65
64
|
const [value, setOpen] = useControllableOpen(open, defaultOpen, onOpenChange);
|
|
66
65
|
const close = React.useCallback(() => setOpen(false), [setOpen]);
|
|
67
|
-
const bodyRef = React.useRef(null);
|
|
68
|
-
const { maskImage } = useScrollFade(bodyRef, { axis: "vertical" });
|
|
69
66
|
const horizontal = isHorizontal(side);
|
|
70
67
|
const contained = container != null;
|
|
71
68
|
const anchor = contained ? "absolute" : "fixed";
|
|
@@ -110,8 +107,6 @@ function Drawer(props) {
|
|
|
110
107
|
titleScale: "lg",
|
|
111
108
|
footerAlign: "end",
|
|
112
109
|
scrollBody: true,
|
|
113
|
-
bodyRef,
|
|
114
|
-
bodyMask: maskImage,
|
|
115
110
|
dividers,
|
|
116
111
|
title,
|
|
117
112
|
description,
|
|
@@ -132,5 +127,5 @@ function Drawer(props) {
|
|
|
132
127
|
Drawer.displayName = "Drawer";
|
|
133
128
|
|
|
134
129
|
export { Drawer };
|
|
135
|
-
//# sourceMappingURL=chunk-
|
|
136
|
-
//# sourceMappingURL=chunk-
|
|
130
|
+
//# sourceMappingURL=chunk-4BRMM3I5.js.map
|
|
131
|
+
//# sourceMappingURL=chunk-4BRMM3I5.js.map
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { Indicator } from './chunk-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Indicator } from './chunk-PXEJ5RKO.js';
|
|
2
|
+
import { Skeleton } from './chunk-7HV6EIGZ.js';
|
|
3
|
+
import { ScrollView } from './chunk-FKVPAEJ6.js';
|
|
4
|
+
import { TooltipExport } from './chunk-4R7WDDCW.js';
|
|
4
5
|
import { POPUP_MOTION } from './chunk-O4GRKO3I.js';
|
|
5
|
-
import {
|
|
6
|
+
import { PlusIcon, UserIcon, CheckIcon } from './chunk-BLIZ3CL3.js';
|
|
7
|
+
import { warnExclusive, devWarn } from './chunk-QDYE5LVT.js';
|
|
6
8
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
7
9
|
import * as React4 from 'react';
|
|
8
10
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -271,17 +273,14 @@ function AvatarGroup(props) {
|
|
|
271
273
|
/* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(Popover.Positioner, { side: "top", sideOffset: 8, className: "z-50 outline-none", children: /* @__PURE__ */ jsx(
|
|
272
274
|
Popover.Popup,
|
|
273
275
|
{
|
|
274
|
-
className: cn(
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
children: /* @__PURE__ */ jsx("ul", { role: "list", "aria-busy": revealing || void 0, className: "flex flex-col gap-0.5", children: revealing ? Array.from({ length: pendingRows }, (_, i) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2 rounded-md px-2 py-1.5", children: [
|
|
279
|
-
/* @__PURE__ */ jsx("span", { className: cn("animate-pulse bg-tertiary", AVATAR_SIZE.sm.box, radius) }),
|
|
280
|
-
/* @__PURE__ */ jsx("span", { className: "h-3 w-24 animate-pulse rounded-full bg-tertiary" })
|
|
276
|
+
className: cn("min-w-36 rounded-lg bg-primary p-1 text-sm text-primary shadow-lg ring-1 ring-secondary_alt ring-inset", POPUP_MOTION),
|
|
277
|
+
children: /* @__PURE__ */ jsx(ScrollView, { viewportClassName: "max-h-72", children: /* @__PURE__ */ jsx("ul", { role: "list", "aria-busy": revealing || void 0, className: "flex flex-col gap-0.5", children: revealing ? Array.from({ length: pendingRows }, (_, i) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2 rounded-md px-2 py-1.5", children: [
|
|
278
|
+
/* @__PURE__ */ jsx(Skeleton, { className: cn(AVATAR_SIZE.sm.box, radius) }),
|
|
279
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-24" })
|
|
281
280
|
] }, i)) : hidden.length > 0 ? hidden.map((child, i) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2 rounded-md px-2 py-1.5", children: [
|
|
282
281
|
React4.cloneElement(child, { size: "sm", shape }),
|
|
283
282
|
/* @__PURE__ */ jsx("span", { className: "truncate text-secondary", children: child.props.name ?? "Unknown" })
|
|
284
|
-
] }, i)) : /* @__PURE__ */ jsx("li", { className: "px-2 py-1.5 text-tertiary", children: "No one to show" }) })
|
|
283
|
+
] }, i)) : /* @__PURE__ */ jsx("li", { className: "px-2 py-1.5 text-tertiary", children: "No one to show" }) }) })
|
|
285
284
|
}
|
|
286
285
|
) }) })
|
|
287
286
|
] }) : /* @__PURE__ */ jsxs("span", { role: "img", "aria-label": `${overflow} more`, className: tile, children: [
|
|
@@ -300,8 +299,27 @@ var LABEL_GAP = {
|
|
|
300
299
|
md: "gap-2",
|
|
301
300
|
lg: "gap-2"
|
|
302
301
|
};
|
|
302
|
+
var LABEL_SKELETON = {
|
|
303
|
+
sm: { title: "h-3.5 w-24", subtitle: "h-3 w-32" },
|
|
304
|
+
md: { title: "h-3.5 w-28", subtitle: "h-3.5 w-36" },
|
|
305
|
+
lg: { title: "h-4 w-32", subtitle: "h-4 w-40" }
|
|
306
|
+
};
|
|
303
307
|
function AvatarLabelGroup(props) {
|
|
304
|
-
const { src, alt, title, subtitle, size = "md", shape = "circle", status, verified, placeholderIcon, imageProps, className } = props;
|
|
308
|
+
const { src, alt, title, subtitle, size = "md", shape = "circle", status, verified, placeholderIcon, imageProps, loading = false, className } = props;
|
|
309
|
+
if (loading) {
|
|
310
|
+
const bars = LABEL_SKELETON[size];
|
|
311
|
+
return (
|
|
312
|
+
// `aria-busy` on the region, never on the bars — they are `aria-hidden`, so this is the one
|
|
313
|
+
// place the "loading" state is announced (see `src/components/skeleton/Skeleton.tsx`).
|
|
314
|
+
/* @__PURE__ */ jsxs("div", { "aria-busy": "true", className: cn("inline-flex items-center", LABEL_GAP[size], className), children: [
|
|
315
|
+
/* @__PURE__ */ jsx(Skeleton, { shape: shape === "circle" ? "circle" : "bar", className: cn(AVATAR_SIZE[size].box, shape === "square" && AVATAR_SHAPE.square) }),
|
|
316
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-1.5", children: [
|
|
317
|
+
/* @__PURE__ */ jsx(Skeleton, { className: bars.title }),
|
|
318
|
+
/* @__PURE__ */ jsx(Skeleton, { className: bars.subtitle })
|
|
319
|
+
] })
|
|
320
|
+
] })
|
|
321
|
+
);
|
|
322
|
+
}
|
|
305
323
|
const text = LABEL_TEXT[size];
|
|
306
324
|
const name = typeof title === "string" ? title : void 0;
|
|
307
325
|
return /* @__PURE__ */ jsxs("div", { className: cn("inline-flex items-center", LABEL_GAP[size], className), children: [
|
|
@@ -378,7 +396,21 @@ var SHAPE = {
|
|
|
378
396
|
square: "rounded-2xl"
|
|
379
397
|
};
|
|
380
398
|
function AvatarProfilePhoto(props) {
|
|
381
|
-
const {
|
|
399
|
+
const {
|
|
400
|
+
src,
|
|
401
|
+
alt,
|
|
402
|
+
name,
|
|
403
|
+
size = "md",
|
|
404
|
+
shape = "circle",
|
|
405
|
+
status,
|
|
406
|
+
verified = false,
|
|
407
|
+
placeholderIcon,
|
|
408
|
+
placeholder,
|
|
409
|
+
badge,
|
|
410
|
+
imageProps,
|
|
411
|
+
loading = false,
|
|
412
|
+
className
|
|
413
|
+
} = props;
|
|
382
414
|
const [imageLoaded, setImageLoaded] = React4.useState(false);
|
|
383
415
|
const showImage = src != null && imageLoaded;
|
|
384
416
|
const hasName = typeof name === "string" && name.trim().length > 0;
|
|
@@ -390,6 +422,13 @@ function AvatarProfilePhoto(props) {
|
|
|
390
422
|
["verified", verified],
|
|
391
423
|
["status", status != null]
|
|
392
424
|
]);
|
|
425
|
+
if (loading) {
|
|
426
|
+
return (
|
|
427
|
+
// `aria-busy` on the region, never on the bar — it is `aria-hidden`, so this is the one place
|
|
428
|
+
// the "loading" state is announced (see `src/components/skeleton/Skeleton.tsx`).
|
|
429
|
+
/* @__PURE__ */ jsx("div", { "aria-busy": "true", className: cn("inline-flex shrink-0", className), children: /* @__PURE__ */ jsx(Skeleton, { shape: shape === "circle" ? "circle" : "bar", className: cn(sizing.box, shape === "square" && SHAPE.square) }) })
|
|
430
|
+
);
|
|
431
|
+
}
|
|
393
432
|
return /* @__PURE__ */ jsxs(
|
|
394
433
|
Avatar$1.Root,
|
|
395
434
|
{
|
|
@@ -444,5 +483,5 @@ function AvatarProfilePhoto(props) {
|
|
|
444
483
|
}
|
|
445
484
|
|
|
446
485
|
export { Avatar, AvatarAddButton, AvatarGroup, AvatarLabelGroup, AvatarProfilePhoto };
|
|
447
|
-
//# sourceMappingURL=chunk-
|
|
448
|
-
//# sourceMappingURL=chunk-
|
|
486
|
+
//# sourceMappingURL=chunk-4HKDD3PR.js.map
|
|
487
|
+
//# sourceMappingURL=chunk-4HKDD3PR.js.map
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { resolveMax } from './chunk-LBYCCLVI.js';
|
|
2
|
+
import { useCartesianColors, POLAR_RADIUS_RINGS_DEFAULT, ChartDataTable, formatNumber, ChartFrame, RadarChart, POLAR_ROOT, MARGIN, PolarGrid, GRID, PolarAngleAxis, PolarRadiusAxis, Tooltip, TOOLTIP_CURSOR, NO_ANIMATION, ChartTooltipContent, Radar, ACTIVE_DOT, ChartLegendContent, POLAR_ANGLE_TICK_LIFT, Text, POLAR_ANGLE_TICK, POLAR_RADIUS_PILL_HEIGHT, POLAR_RADIUS_PILL_PAD_X, POLAR_RADIUS_PILL, POLAR_RADIUS_PILL_BASELINE } from './chunk-75M43ELV.js';
|
|
3
|
+
import { devWarn } from './chunk-QDYE5LVT.js';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function AngleTick({ x = 0, y = 0, textAnchor, verticalAnchor, payload }) {
|
|
8
|
+
const lift = POLAR_ANGLE_TICK_LIFT * Math.sin((payload?.coordinate ?? 0) * Math.PI / 180);
|
|
9
|
+
return /* @__PURE__ */ jsx(Text, { x, y: y - lift, textAnchor, verticalAnchor, fill: "currentColor", className: POLAR_ANGLE_TICK, children: payload?.value });
|
|
10
|
+
}
|
|
11
|
+
var PILL_FALLBACK_WIDTH = 40;
|
|
12
|
+
function RadiusTick({ x = 0, y = 0, textAnchor, payload }) {
|
|
13
|
+
const textRef = React.useRef(null);
|
|
14
|
+
const rectRef = React.useRef(null);
|
|
15
|
+
React.useEffect(() => {
|
|
16
|
+
const text = textRef.current;
|
|
17
|
+
const rect = rectRef.current;
|
|
18
|
+
if (!text || !rect || typeof text.getBBox !== "function") return;
|
|
19
|
+
const box = text.getBBox();
|
|
20
|
+
if (box.width === 0 && box.height === 0) return;
|
|
21
|
+
const width = Math.max(POLAR_RADIUS_PILL_HEIGHT, box.width + POLAR_RADIUS_PILL_PAD_X);
|
|
22
|
+
rect.setAttribute("width", String(width));
|
|
23
|
+
rect.setAttribute("x", String(x - width / 2));
|
|
24
|
+
}, [x, y, payload?.value]);
|
|
25
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
26
|
+
/* @__PURE__ */ jsx(
|
|
27
|
+
"rect",
|
|
28
|
+
{
|
|
29
|
+
ref: rectRef,
|
|
30
|
+
x: x - PILL_FALLBACK_WIDTH / 2,
|
|
31
|
+
y: y - POLAR_RADIUS_PILL_HEIGHT / 2,
|
|
32
|
+
width: PILL_FALLBACK_WIDTH,
|
|
33
|
+
height: POLAR_RADIUS_PILL_HEIGHT,
|
|
34
|
+
rx: POLAR_RADIUS_PILL_HEIGHT / 2,
|
|
35
|
+
className: POLAR_RADIUS_PILL
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ jsx("text", { ref: textRef, x, y: y + POLAR_RADIUS_PILL_BASELINE, textAnchor, className: "recharts-text", children: /* @__PURE__ */ jsx("tspan", { x, dy: "0em", className: POLAR_ANGLE_TICK, children: payload?.value }) })
|
|
39
|
+
] });
|
|
40
|
+
}
|
|
41
|
+
function RadarChart2({
|
|
42
|
+
data,
|
|
43
|
+
angle,
|
|
44
|
+
series,
|
|
45
|
+
palette = "brand",
|
|
46
|
+
max = "auto",
|
|
47
|
+
gridRings = POLAR_RADIUS_RINGS_DEFAULT,
|
|
48
|
+
height = 320,
|
|
49
|
+
legend = "bottom",
|
|
50
|
+
formatValue = formatNumber,
|
|
51
|
+
tooltip = true,
|
|
52
|
+
tooltipTone = "surface",
|
|
53
|
+
emptyMessage = "No data to display",
|
|
54
|
+
className,
|
|
55
|
+
"aria-label": ariaLabel
|
|
56
|
+
}) {
|
|
57
|
+
const colors = useCartesianColors("RadarChart", series, palette);
|
|
58
|
+
if (!Number.isSafeInteger(gridRings) || gridRings < 2) {
|
|
59
|
+
devWarn(`<RadarChart> \`gridRings\` must be an integer of at least 2 \u2014 got ${gridRings}. The engine floors to 2 (the centre and the outer ring).`);
|
|
60
|
+
}
|
|
61
|
+
const { colorMap, labelMap } = React.useMemo(() => {
|
|
62
|
+
const colorMap2 = {};
|
|
63
|
+
const labelMap2 = {};
|
|
64
|
+
for (const [i, s] of series.entries()) {
|
|
65
|
+
colorMap2[s.key] = colors[i] ?? "";
|
|
66
|
+
labelMap2[s.key] = s.label;
|
|
67
|
+
}
|
|
68
|
+
return { colorMap: colorMap2, labelMap: labelMap2 };
|
|
69
|
+
}, [series, colors]);
|
|
70
|
+
const legendItems = React.useMemo(() => series.map((s, i) => ({ label: s.label, colorClass: colors[i] ?? "" })), [series, colors]);
|
|
71
|
+
const domainMax = React.useMemo(() => {
|
|
72
|
+
const values = [];
|
|
73
|
+
for (const row of data) {
|
|
74
|
+
for (const s of series) {
|
|
75
|
+
const v = row[s.key];
|
|
76
|
+
if (typeof v === "number") values.push(v);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return resolveMax(max, values);
|
|
80
|
+
}, [data, series, max]);
|
|
81
|
+
const angleKey = angle;
|
|
82
|
+
const table = /* @__PURE__ */ jsx(
|
|
83
|
+
ChartDataTable,
|
|
84
|
+
{
|
|
85
|
+
caption: ariaLabel,
|
|
86
|
+
rowHeader: angle,
|
|
87
|
+
columns: series.map((s) => s.label),
|
|
88
|
+
rows: data.map((row) => [
|
|
89
|
+
String(row[angle] ?? ""),
|
|
90
|
+
...series.map((s) => {
|
|
91
|
+
const v = row[s.key];
|
|
92
|
+
return typeof v === "number" ? formatValue(v) : String(v ?? "");
|
|
93
|
+
})
|
|
94
|
+
])
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
return /* @__PURE__ */ jsx(
|
|
98
|
+
ChartFrame,
|
|
99
|
+
{
|
|
100
|
+
component: "RadarChart",
|
|
101
|
+
ariaLabel,
|
|
102
|
+
height,
|
|
103
|
+
isEmpty: data.length === 0,
|
|
104
|
+
emptyMessage,
|
|
105
|
+
className,
|
|
106
|
+
table,
|
|
107
|
+
legendPlacement: legend === "none" ? void 0 : legend,
|
|
108
|
+
legend: legend === "none" ? void 0 : /* @__PURE__ */ jsx(ChartLegendContent, { items: legendItems, placement: legend }),
|
|
109
|
+
children: () => /* @__PURE__ */ jsxs(
|
|
110
|
+
RadarChart,
|
|
111
|
+
{
|
|
112
|
+
cx: "50%",
|
|
113
|
+
cy: "50%",
|
|
114
|
+
outerRadius: "100%",
|
|
115
|
+
margin: MARGIN.radar,
|
|
116
|
+
data,
|
|
117
|
+
className: POLAR_ROOT,
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ jsx(PolarGrid, { stroke: "currentColor", className: GRID }),
|
|
120
|
+
/* @__PURE__ */ jsx(PolarAngleAxis, { dataKey: angleKey, stroke: "currentColor", tickLine: false, axisLine: false, tick: /* @__PURE__ */ jsx(AngleTick, {}) }),
|
|
121
|
+
/* @__PURE__ */ jsx(
|
|
122
|
+
PolarRadiusAxis,
|
|
123
|
+
{
|
|
124
|
+
angle: 90,
|
|
125
|
+
axisLine: false,
|
|
126
|
+
domain: [0, domainMax],
|
|
127
|
+
tickCount: gridRings,
|
|
128
|
+
textAnchor: "middle",
|
|
129
|
+
tick: /* @__PURE__ */ jsx(RadiusTick, {})
|
|
130
|
+
}
|
|
131
|
+
),
|
|
132
|
+
tooltip ? /* @__PURE__ */ jsx(
|
|
133
|
+
Tooltip,
|
|
134
|
+
{
|
|
135
|
+
...NO_ANIMATION,
|
|
136
|
+
cursor: TOOLTIP_CURSOR.line,
|
|
137
|
+
content: /* @__PURE__ */ jsx(ChartTooltipContent, { colors: colorMap, labels: labelMap, formatValue, tone: tooltipTone })
|
|
138
|
+
}
|
|
139
|
+
) : null,
|
|
140
|
+
series.map((s, i) => {
|
|
141
|
+
const color = colors[i];
|
|
142
|
+
const key = s.key;
|
|
143
|
+
return /* @__PURE__ */ jsx(
|
|
144
|
+
Radar,
|
|
145
|
+
{
|
|
146
|
+
...NO_ANIMATION,
|
|
147
|
+
className: color,
|
|
148
|
+
dataKey: key,
|
|
149
|
+
name: s.label,
|
|
150
|
+
stroke: "currentColor",
|
|
151
|
+
strokeWidth: 2,
|
|
152
|
+
strokeLinejoin: "round",
|
|
153
|
+
fill: "currentColor",
|
|
154
|
+
fillOpacity: 0.2,
|
|
155
|
+
activeDot: ACTIVE_DOT(color)
|
|
156
|
+
},
|
|
157
|
+
s.key
|
|
158
|
+
);
|
|
159
|
+
})
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export { RadarChart2 as RadarChart };
|
|
168
|
+
//# sourceMappingURL=chunk-4K6V6NNK.js.map
|
|
169
|
+
//# sourceMappingURL=chunk-4K6V6NNK.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { TOOLTIP_TONE } from './chunk-AC6ZWKRN.js';
|
|
1
2
|
import { TOOLTIP_MOTION } from './chunk-O4GRKO3I.js';
|
|
2
|
-
import { devWarn } from './chunk-
|
|
3
|
+
import { devWarn } from './chunk-QDYE5LVT.js';
|
|
3
4
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
4
5
|
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
5
6
|
import * as React from 'react';
|
|
@@ -31,15 +32,16 @@ var TooltipTrigger = React.forwardRef(function TooltipTrigger2(props, ref) {
|
|
|
31
32
|
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, { ref, delay: delay ?? (insideProvider ? void 0 : 300), ...rest });
|
|
32
33
|
});
|
|
33
34
|
TooltipTrigger.displayName = "Tooltip.Trigger";
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
var ARROW_SIDES = "M0,0 L35.858,35.858 Q50,50 64.142,35.858 L100,0";
|
|
36
|
+
function ArrowSvg({ tone }) {
|
|
37
|
+
const { arrowFill, arrowStroke } = TOOLTIP_TONE[tone];
|
|
38
|
+
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 100 100", className: "size-2.5", "aria-hidden": "true", children: [
|
|
39
|
+
/* @__PURE__ */ jsx("path", { d: `${ARROW_SIDES} Z`, fill: arrowFill }),
|
|
40
|
+
arrowStroke ? /* @__PURE__ */ jsx("path", { d: ARROW_SIDES, fill: "none", stroke: arrowStroke, strokeWidth: 10 }) : null
|
|
41
|
+
] });
|
|
36
42
|
}
|
|
37
43
|
var POPUP = cn(
|
|
38
|
-
|
|
39
|
-
// title + optional supporting line stack left-aligned. Padding is NOT here: it is the
|
|
40
|
-
// one thing `size` owns, so it comes from SIZE below.
|
|
41
|
-
"flex max-w-xs flex-col items-start gap-1 rounded-lg bg-primary-solid shadow-lg",
|
|
42
|
-
"",
|
|
44
|
+
"flex max-w-xs flex-col items-start gap-1",
|
|
43
45
|
// Enter/exit: fade + zoom-95 + ~2px slide-in from the `data-side` direction.
|
|
44
46
|
TOOLTIP_MOTION
|
|
45
47
|
);
|
|
@@ -54,7 +56,20 @@ var ARROW = cn(
|
|
|
54
56
|
"data-[side=right]:left-[-9px] data-[side=right]:rotate-90"
|
|
55
57
|
);
|
|
56
58
|
function TooltipContent(props) {
|
|
57
|
-
const {
|
|
59
|
+
const {
|
|
60
|
+
id,
|
|
61
|
+
children,
|
|
62
|
+
description,
|
|
63
|
+
size = "md",
|
|
64
|
+
tone = "surface",
|
|
65
|
+
side = "top",
|
|
66
|
+
align = "center",
|
|
67
|
+
showArrow = false,
|
|
68
|
+
collisionBoundary,
|
|
69
|
+
collisionPadding,
|
|
70
|
+
className
|
|
71
|
+
} = props;
|
|
72
|
+
const toneClasses = TOOLTIP_TONE[tone];
|
|
58
73
|
return /* @__PURE__ */ jsx(Tooltip$1.Portal, { children: /* @__PURE__ */ jsx(
|
|
59
74
|
Tooltip$1.Positioner,
|
|
60
75
|
{
|
|
@@ -65,11 +80,19 @@ function TooltipContent(props) {
|
|
|
65
80
|
collisionBoundary,
|
|
66
81
|
collisionPadding,
|
|
67
82
|
className: "z-50 outline-none",
|
|
68
|
-
children: /* @__PURE__ */ jsxs(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
83
|
+
children: /* @__PURE__ */ jsxs(
|
|
84
|
+
Tooltip$1.Popup,
|
|
85
|
+
{
|
|
86
|
+
id,
|
|
87
|
+
role: "tooltip",
|
|
88
|
+
className: cn(POPUP, toneClasses.surface, description ? SIZE[size].withDescription : SIZE[size].base, className),
|
|
89
|
+
children: [
|
|
90
|
+
showArrow ? /* @__PURE__ */ jsx(Tooltip$1.Arrow, { className: ARROW, children: /* @__PURE__ */ jsx(ArrowSvg, { tone }) }) : null,
|
|
91
|
+
/* @__PURE__ */ jsx("span", { className: toneClasses.title, children }),
|
|
92
|
+
description ? /* @__PURE__ */ jsx("span", { className: toneClasses.supporting, children: description }) : null
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
)
|
|
73
96
|
}
|
|
74
97
|
) });
|
|
75
98
|
}
|
|
@@ -82,6 +105,7 @@ function Tooltip(props) {
|
|
|
82
105
|
// MUST be named here even though it is only forwarded: `...rest` below lands on the
|
|
83
106
|
// TRIGGER, so an un-destructured `size` would ship as a stray DOM attribute.
|
|
84
107
|
size = "md",
|
|
108
|
+
tone = "surface",
|
|
85
109
|
side = "top",
|
|
86
110
|
align = "center",
|
|
87
111
|
showArrow = false,
|
|
@@ -110,6 +134,7 @@ function Tooltip(props) {
|
|
|
110
134
|
{
|
|
111
135
|
id: describedById,
|
|
112
136
|
size,
|
|
137
|
+
tone,
|
|
113
138
|
side,
|
|
114
139
|
align,
|
|
115
140
|
showArrow,
|
|
@@ -126,5 +151,5 @@ Tooltip.displayName = "Tooltip";
|
|
|
126
151
|
var TooltipExport = Object.assign(Tooltip, { Provider: TooltipProvider });
|
|
127
152
|
|
|
128
153
|
export { TooltipExport };
|
|
129
|
-
//# sourceMappingURL=chunk-
|
|
130
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-4R7WDDCW.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-4R7WDDCW.js.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Tabs } from './chunk-
|
|
2
|
-
import { Drawer } from './chunk-
|
|
3
|
-
import { resolveActive, SidebarNavigation, linkMatches } from './chunk-
|
|
4
|
-
import {
|
|
1
|
+
import { Tabs } from './chunk-54S5CUY6.js';
|
|
2
|
+
import { Drawer } from './chunk-4BRMM3I5.js';
|
|
3
|
+
import { resolveActive, SidebarNavigation, linkMatches } from './chunk-CWMFEF6R.js';
|
|
4
|
+
import { ruleEdge } from './chunk-LCG34A5T.js';
|
|
5
|
+
import { ButtonUtility } from './chunk-C6OTOTKI.js';
|
|
5
6
|
import { Slot } from './chunk-52IFGFTL.js';
|
|
6
|
-
import { MenuIcon } from './chunk-
|
|
7
|
+
import { MenuIcon } from './chunk-BLIZ3CL3.js';
|
|
7
8
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
8
9
|
import 'react';
|
|
9
10
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -11,9 +12,8 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
11
12
|
var HEADER_BASE = "w-full bg-primary";
|
|
12
13
|
var TIER = "flex w-full items-center gap-4 px-4 md:px-6";
|
|
13
14
|
var TIER_1 = cn(TIER, "h-16");
|
|
14
|
-
var TIER_2 = cn(TIER, "h-16
|
|
15
|
+
var TIER_2 = cn(TIER, "h-16");
|
|
15
16
|
var TIER_2_TABS = "w-full px-4 md:px-6";
|
|
16
|
-
var DIVIDER = "border-b border-secondary";
|
|
17
17
|
var STICKY = "sticky top-0 z-20";
|
|
18
18
|
var ROW_BASE = "flex cursor-pointer items-center gap-1.5 rounded-lg px-2 py-1.5 text-sm whitespace-nowrap outline-focus-ring transition-colors duration-100 ease-linear select-none focus-visible:z-10 focus-visible:outline-2 focus-visible:outline-offset-2";
|
|
19
19
|
var ROW_IDLE = "font-medium text-secondary hover:bg-ghost-hover hover:text-secondary_hover";
|
|
@@ -73,7 +73,7 @@ function HeaderNavigation(props) {
|
|
|
73
73
|
subItems,
|
|
74
74
|
secondaryActions,
|
|
75
75
|
align = "start",
|
|
76
|
-
|
|
76
|
+
dividers = "line",
|
|
77
77
|
sticky = false,
|
|
78
78
|
mobile = "sheet",
|
|
79
79
|
className
|
|
@@ -98,7 +98,7 @@ function HeaderNavigation(props) {
|
|
|
98
98
|
{
|
|
99
99
|
className: cn(
|
|
100
100
|
HEADER_BASE,
|
|
101
|
-
|
|
101
|
+
ruleEdge(dividers, "bottom"),
|
|
102
102
|
sticky && STICKY,
|
|
103
103
|
// Tier 1's height, handed to a pinned `Tabs` strip so it docks BELOW the bar instead of at
|
|
104
104
|
// the viewport's top edge. Set here because only the header knows its own height — which
|
|
@@ -163,7 +163,7 @@ function HeaderNavigation(props) {
|
|
|
163
163
|
},
|
|
164
164
|
className: "w-full"
|
|
165
165
|
}
|
|
166
|
-
) }) : /* @__PURE__ */ jsxs("div", { className: TIER_2, children: [
|
|
166
|
+
) }) : /* @__PURE__ */ jsxs("div", { className: cn(TIER_2, ruleEdge(dividers, "top")), children: [
|
|
167
167
|
/* @__PURE__ */ jsx(
|
|
168
168
|
NavRowList,
|
|
169
169
|
{
|
|
@@ -184,5 +184,5 @@ function HeaderNavigation(props) {
|
|
|
184
184
|
HeaderNavigation.displayName = "HeaderNavigation";
|
|
185
185
|
|
|
186
186
|
export { HeaderNavigation };
|
|
187
|
-
//# sourceMappingURL=chunk-
|
|
188
|
-
//# sourceMappingURL=chunk-
|
|
187
|
+
//# sourceMappingURL=chunk-4W6AYGLR.js.map
|
|
188
|
+
//# sourceMappingURL=chunk-4W6AYGLR.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Slot } from './chunk-52IFGFTL.js';
|
|
2
2
|
import { useScrollFade } from './chunk-O2LG3PNI.js';
|
|
3
3
|
import { useIsomorphicLayoutEffect } from './chunk-EDSK6FEH.js';
|
|
4
|
-
import { warnStickyNoScrollport, nearestScrollport, warnNeedsName } from './chunk-
|
|
4
|
+
import { warnStickyNoScrollport, nearestScrollport, warnNeedsName } from './chunk-QDYE5LVT.js';
|
|
5
5
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
6
6
|
import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
|
|
7
7
|
import * as React from 'react';
|
|
@@ -35,7 +35,6 @@ var LIST_INNER = {
|
|
|
35
35
|
vertical: "relative flex min-h-0 flex-col gap-1"
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
var NO_SCROLLBAR = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden";
|
|
39
38
|
var STICKY_WRAP = {
|
|
40
39
|
horizontal: "sticky top-[var(--tabs-sticky-top,0px)] z-4 flex flex-col bg-[var(--tabs-sticky-bg,var(--color-bg-primary))]",
|
|
41
40
|
// No fill: a vertical rail sits BESIDE the panel, so nothing ever scrolls under it — and an
|
|
@@ -150,7 +149,11 @@ function Tabs(props) {
|
|
|
150
149
|
// Clip (and thus scroll) ONLY when overflowing — otherwise overflow stays visible so the
|
|
151
150
|
// pill shadow + a tab's outset focus outline aren't sheared by the scroll box. See above.
|
|
152
151
|
scrollable && (horizontal ? "overflow-x-auto" : "overflow-y-auto"),
|
|
153
|
-
|
|
152
|
+
// The shared `scrollbar-none` utility (`theme.css`), not a hand-rolled pair of arbitrary
|
|
153
|
+
// variants: the edge fade is the sole overflow affordance here, which is the documented
|
|
154
|
+
// reason that utility exists. A strip 36-44px tall cannot host a bar without eating its
|
|
155
|
+
// own content, so this is one of the four places deliberately NOT converted to `ScrollView`.
|
|
156
|
+
"scrollbar-none"
|
|
154
157
|
),
|
|
155
158
|
children: [
|
|
156
159
|
items.map((it) => /* @__PURE__ */ jsxs(
|
|
@@ -198,5 +201,5 @@ function Tabs(props) {
|
|
|
198
201
|
Tabs.displayName = "Tabs";
|
|
199
202
|
|
|
200
203
|
export { Tabs };
|
|
201
|
-
//# sourceMappingURL=chunk-
|
|
202
|
-
//# sourceMappingURL=chunk-
|
|
204
|
+
//# sourceMappingURL=chunk-54S5CUY6.js.map
|
|
205
|
+
//# sourceMappingURL=chunk-54S5CUY6.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button } from './chunk-
|
|
2
|
-
import { MoonIcon, SunIcon } from './chunk-
|
|
1
|
+
import { Button } from './chunk-A5WQLN4B.js';
|
|
2
|
+
import { MoonIcon, SunIcon } from './chunk-BLIZ3CL3.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -132,5 +132,5 @@ function ThemeToggle({ size = "sm", className }) {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
export { ThemeProvider, ThemeScript, ThemeToggle, buildThemeScript, useTheme };
|
|
135
|
-
//# sourceMappingURL=chunk-
|
|
136
|
-
//# sourceMappingURL=chunk-
|
|
135
|
+
//# sourceMappingURL=chunk-5JRM3OES.js.map
|
|
136
|
+
//# sourceMappingURL=chunk-5JRM3OES.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/lib/drag-ghost.ts
|
|
2
|
+
var GHOST_OFFSET = 12;
|
|
3
|
+
var DRAG_GHOST = "pointer-events-none fixed z-50 rounded-lg bg-primary_alt shadow-lg ring-1 ring-secondary ring-inset";
|
|
4
|
+
var dragGhostProps = { "aria-hidden": true, "data-drag-ghost": "" };
|
|
5
|
+
function ghostPosition(point, width, height = GHOST_OFFSET * 4) {
|
|
6
|
+
if (globalThis.window === void 0) return { left: point.x + GHOST_OFFSET, top: point.y + GHOST_OFFSET };
|
|
7
|
+
const left = Math.min(point.x + GHOST_OFFSET, globalThis.innerWidth - width - GHOST_OFFSET);
|
|
8
|
+
const top = Math.min(point.y + GHOST_OFFSET, globalThis.innerHeight - height);
|
|
9
|
+
return { left: Math.max(GHOST_OFFSET, left), top: Math.max(GHOST_OFFSET, top) };
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// src/lib/drop-line.ts
|
|
13
|
+
var DROP_LINE = "pointer-events-none rounded-full bg-brand-solid";
|
|
14
|
+
var DROP_LINE_Y = "h-0.5";
|
|
15
|
+
var DROP_LINE_X = "w-0.5";
|
|
16
|
+
|
|
17
|
+
export { DRAG_GHOST, DROP_LINE, DROP_LINE_X, DROP_LINE_Y, dragGhostProps, ghostPosition };
|
|
18
|
+
//# sourceMappingURL=chunk-5ZPUAGOP.js.map
|
|
19
|
+
//# sourceMappingURL=chunk-5ZPUAGOP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useScrollFade } from './chunk-O2LG3PNI.js';
|
|
2
2
|
import { useIsomorphicLayoutEffect } from './chunk-EDSK6FEH.js';
|
|
3
|
-
import { warnPositiveInt } from './chunk-
|
|
3
|
+
import { warnPositiveInt } from './chunk-QDYE5LVT.js';
|
|
4
4
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
|
|
@@ -71,5 +71,5 @@ function useTagRow(opts) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
export { useTagRow };
|
|
74
|
-
//# sourceMappingURL=chunk-
|
|
75
|
-
//# sourceMappingURL=chunk-
|
|
74
|
+
//# sourceMappingURL=chunk-6HJA7NPL.js.map
|
|
75
|
+
//# sourceMappingURL=chunk-6HJA7NPL.js.map
|
|
@@ -19,6 +19,17 @@ var SOLID_HOVER = {
|
|
|
19
19
|
error: "hover:bg-error-solid_hover data-[loading]:bg-error-solid_hover",
|
|
20
20
|
info: "hover:bg-utility-blue-700 data-[loading]:bg-utility-blue-700"
|
|
21
21
|
};
|
|
22
|
+
var SOLID_BOX = "shadow-skeuomorphic ring-1 ring-transparent ring-inset";
|
|
23
|
+
var SOLID_GLOSS = "before:pointer-events-none before:absolute before:inset-px before:rounded-[7px] before:border before:border-white/12 before:[mask-image:linear-gradient(to_bottom,black,transparent)]";
|
|
24
|
+
var BOXED_BOX = "bg-primary shadow-skeuomorphic ring-1 ring-inset";
|
|
25
|
+
var BOX_RING = {
|
|
26
|
+
neutral: "ring-primary",
|
|
27
|
+
brand: "ring-brand",
|
|
28
|
+
success: "ring-success",
|
|
29
|
+
warning: "ring-warning",
|
|
30
|
+
error: "ring-error_subtle",
|
|
31
|
+
info: "ring-utility-blue-200"
|
|
32
|
+
};
|
|
22
33
|
var SUBTLE = {
|
|
23
34
|
neutral: "bg-utility-neutral-50 text-utility-neutral-700 ring-1 ring-inset ring-utility-neutral-200",
|
|
24
35
|
brand: "bg-utility-brand-50 text-utility-brand-700 ring-1 ring-inset ring-utility-brand-200",
|
|
@@ -51,6 +62,14 @@ var ACCENT = {
|
|
|
51
62
|
error: "text-utility-red-500",
|
|
52
63
|
info: "text-utility-blue-500"
|
|
53
64
|
};
|
|
65
|
+
var GLYPH = {
|
|
66
|
+
neutral: "text-fg-quaternary hover:text-fg-quaternary_hover",
|
|
67
|
+
brand: "text-fg-brand-secondary hover:text-fg-brand-secondary_hover",
|
|
68
|
+
success: "text-fg-success-primary hover:text-fg-success-primary_hover",
|
|
69
|
+
warning: "text-fg-warning-primary hover:text-fg-warning-primary_hover",
|
|
70
|
+
error: "text-fg-error-primary hover:text-fg-error-primary_hover",
|
|
71
|
+
info: "text-utility-blue-600 hover:text-utility-blue-700"
|
|
72
|
+
};
|
|
54
73
|
var DISMISS = {
|
|
55
74
|
neutral: "text-utility-neutral-600 hover:text-utility-neutral-700 hover:bg-utility-neutral-100",
|
|
56
75
|
brand: "text-utility-brand-600 hover:text-utility-brand-700 hover:bg-utility-brand-100",
|
|
@@ -60,6 +79,6 @@ var DISMISS = {
|
|
|
60
79
|
info: "text-utility-blue-600 hover:text-utility-blue-700 hover:bg-utility-blue-100"
|
|
61
80
|
};
|
|
62
81
|
|
|
63
|
-
export { ACCENT, DISMISS, FG, OUTLINE, SEMANTIC_COLORS, SOLID, SOLID_HOVER, SUBTLE, isSemanticColor };
|
|
64
|
-
//# sourceMappingURL=chunk-
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
export { ACCENT, BOXED_BOX, BOX_RING, DISMISS, FG, GLYPH, OUTLINE, SEMANTIC_COLORS, SOLID, SOLID_BOX, SOLID_GLOSS, SOLID_HOVER, SUBTLE, isSemanticColor };
|
|
83
|
+
//# sourceMappingURL=chunk-6IUTVDNI.js.map
|
|
84
|
+
//# sourceMappingURL=chunk-6IUTVDNI.js.map
|