@umami/react-zen 1.0.3 → 1.0.4
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 +62 -1
- package/dist/index.d.ts +62 -1
- package/dist/index.js +437 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +428 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/styles.css +19 -0
- package/styles.full.css +1 -1
package/dist/index.mjs
CHANGED
|
@@ -36,6 +36,7 @@ import { Toolbar as Toolbar$1 } from '@base-ui/react/toolbar';
|
|
|
36
36
|
import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
|
|
37
37
|
import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
|
|
38
38
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
39
|
+
import * as RechartsPrimitive from 'recharts';
|
|
39
40
|
import { Collapsible as Collapsible$1 } from '@base-ui/react/collapsible';
|
|
40
41
|
import { Combobox as Combobox$1 } from '@base-ui/react';
|
|
41
42
|
import { Command as Command$1 } from 'cmdk';
|
|
@@ -51,7 +52,7 @@ import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
|
|
|
51
52
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
52
53
|
import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
|
|
53
54
|
import { Select as Select$1 } from '@base-ui/react/select';
|
|
54
|
-
import { Tooltip
|
|
55
|
+
import { Tooltip } from '@base-ui/react/tooltip';
|
|
55
56
|
import { Slider as Slider$1 } from '@base-ui/react/slider';
|
|
56
57
|
import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
|
|
57
58
|
import { ToggleGroup as ToggleGroup$1 } from '@base-ui/react/toggle-group';
|
|
@@ -5731,7 +5732,7 @@ function ListSection({ title, className, children, ...props }) {
|
|
|
5731
5732
|
"aria-labelledby": title ? titleId : void 0,
|
|
5732
5733
|
...props,
|
|
5733
5734
|
"data-slot": "list-section",
|
|
5734
|
-
className: cn("flex flex-col", className),
|
|
5735
|
+
className: cn("flex flex-col not-first:mt-4", className),
|
|
5735
5736
|
children: [
|
|
5736
5737
|
title && /* @__PURE__ */ jsx(
|
|
5737
5738
|
"div",
|
|
@@ -7127,6 +7128,244 @@ function CarouselNext({
|
|
|
7127
7128
|
}
|
|
7128
7129
|
);
|
|
7129
7130
|
}
|
|
7131
|
+
var THEMES = { light: "", dark: ".dark" };
|
|
7132
|
+
var INITIAL_DIMENSION = { width: 320, height: 200 };
|
|
7133
|
+
var ChartContext = React4.createContext(null);
|
|
7134
|
+
function useChart() {
|
|
7135
|
+
const context = React4.useContext(ChartContext);
|
|
7136
|
+
if (!context) {
|
|
7137
|
+
throw new Error("useChart must be used within a <ChartContainer />");
|
|
7138
|
+
}
|
|
7139
|
+
return context;
|
|
7140
|
+
}
|
|
7141
|
+
function ChartContainer({
|
|
7142
|
+
id,
|
|
7143
|
+
className,
|
|
7144
|
+
children,
|
|
7145
|
+
config,
|
|
7146
|
+
initialDimension = INITIAL_DIMENSION,
|
|
7147
|
+
...props
|
|
7148
|
+
}) {
|
|
7149
|
+
const uniqueId = React4.useId();
|
|
7150
|
+
const chartId = `chart-${id ?? uniqueId.replace(/:/g, "")}`;
|
|
7151
|
+
return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
|
|
7152
|
+
"div",
|
|
7153
|
+
{
|
|
7154
|
+
"data-slot": "chart",
|
|
7155
|
+
"data-chart": chartId,
|
|
7156
|
+
className: cn(
|
|
7157
|
+
"flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
|
|
7158
|
+
className
|
|
7159
|
+
),
|
|
7160
|
+
...props,
|
|
7161
|
+
children: [
|
|
7162
|
+
/* @__PURE__ */ jsx(ChartStyle, { id: chartId, config }),
|
|
7163
|
+
/* @__PURE__ */ jsx(
|
|
7164
|
+
RechartsPrimitive.ResponsiveContainer,
|
|
7165
|
+
{
|
|
7166
|
+
initialDimension,
|
|
7167
|
+
children
|
|
7168
|
+
}
|
|
7169
|
+
)
|
|
7170
|
+
]
|
|
7171
|
+
}
|
|
7172
|
+
) });
|
|
7173
|
+
}
|
|
7174
|
+
var ChartStyle = ({ id, config }) => {
|
|
7175
|
+
const colorConfig = Object.entries(config).filter(
|
|
7176
|
+
([, config2]) => config2.theme ?? config2.color
|
|
7177
|
+
);
|
|
7178
|
+
if (!colorConfig.length) {
|
|
7179
|
+
return null;
|
|
7180
|
+
}
|
|
7181
|
+
return /* @__PURE__ */ jsx(
|
|
7182
|
+
"style",
|
|
7183
|
+
{
|
|
7184
|
+
dangerouslySetInnerHTML: {
|
|
7185
|
+
__html: Object.entries(THEMES).map(
|
|
7186
|
+
([theme, prefix]) => `
|
|
7187
|
+
${prefix} [data-chart=${id}] {
|
|
7188
|
+
${colorConfig.map(([key, itemConfig]) => {
|
|
7189
|
+
const color = itemConfig.theme?.[theme] ?? itemConfig.color;
|
|
7190
|
+
return color ? ` --color-${key}: ${color};` : null;
|
|
7191
|
+
}).join("\n")}
|
|
7192
|
+
}
|
|
7193
|
+
`
|
|
7194
|
+
).join("\n")
|
|
7195
|
+
}
|
|
7196
|
+
}
|
|
7197
|
+
);
|
|
7198
|
+
};
|
|
7199
|
+
var ChartTooltip = RechartsPrimitive.Tooltip;
|
|
7200
|
+
function ChartTooltipContent({
|
|
7201
|
+
active,
|
|
7202
|
+
payload,
|
|
7203
|
+
className,
|
|
7204
|
+
indicator = "dot",
|
|
7205
|
+
hideLabel = false,
|
|
7206
|
+
hideIndicator = false,
|
|
7207
|
+
label,
|
|
7208
|
+
labelFormatter,
|
|
7209
|
+
labelClassName,
|
|
7210
|
+
formatter,
|
|
7211
|
+
color,
|
|
7212
|
+
nameKey,
|
|
7213
|
+
labelKey
|
|
7214
|
+
}) {
|
|
7215
|
+
const { config } = useChart();
|
|
7216
|
+
const tooltipLabel = React4.useMemo(() => {
|
|
7217
|
+
if (hideLabel || !payload?.length) {
|
|
7218
|
+
return null;
|
|
7219
|
+
}
|
|
7220
|
+
const [item] = payload;
|
|
7221
|
+
const key = `${labelKey ?? item?.dataKey ?? item?.name ?? "value"}`;
|
|
7222
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
7223
|
+
const value = !labelKey && typeof label === "string" ? config[label]?.label ?? label : itemConfig?.label;
|
|
7224
|
+
if (labelFormatter) {
|
|
7225
|
+
return /* @__PURE__ */ jsx("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
7226
|
+
}
|
|
7227
|
+
if (!value) {
|
|
7228
|
+
return null;
|
|
7229
|
+
}
|
|
7230
|
+
return /* @__PURE__ */ jsx("div", { className: cn("font-medium", labelClassName), children: value });
|
|
7231
|
+
}, [
|
|
7232
|
+
label,
|
|
7233
|
+
labelFormatter,
|
|
7234
|
+
payload,
|
|
7235
|
+
hideLabel,
|
|
7236
|
+
labelClassName,
|
|
7237
|
+
config,
|
|
7238
|
+
labelKey
|
|
7239
|
+
]);
|
|
7240
|
+
if (!active || !payload?.length) {
|
|
7241
|
+
return null;
|
|
7242
|
+
}
|
|
7243
|
+
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
7244
|
+
return /* @__PURE__ */ jsxs(
|
|
7245
|
+
"div",
|
|
7246
|
+
{
|
|
7247
|
+
className: cn(
|
|
7248
|
+
"grid min-w-32 items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",
|
|
7249
|
+
className
|
|
7250
|
+
),
|
|
7251
|
+
children: [
|
|
7252
|
+
!nestLabel ? tooltipLabel : null,
|
|
7253
|
+
/* @__PURE__ */ jsx("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
7254
|
+
const key = `${nameKey ?? item.name ?? item.dataKey ?? "value"}`;
|
|
7255
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
7256
|
+
const indicatorColor = color ?? item.payload?.fill ?? item.color;
|
|
7257
|
+
return /* @__PURE__ */ jsx(
|
|
7258
|
+
"div",
|
|
7259
|
+
{
|
|
7260
|
+
className: cn(
|
|
7261
|
+
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
7262
|
+
indicator === "dot" && "items-center"
|
|
7263
|
+
),
|
|
7264
|
+
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7265
|
+
itemConfig?.icon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx(
|
|
7266
|
+
"div",
|
|
7267
|
+
{
|
|
7268
|
+
className: cn(
|
|
7269
|
+
"shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
|
|
7270
|
+
{
|
|
7271
|
+
"h-2.5 w-2.5": indicator === "dot",
|
|
7272
|
+
"w-1": indicator === "line",
|
|
7273
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
7274
|
+
"my-0.5": nestLabel && indicator === "dashed"
|
|
7275
|
+
}
|
|
7276
|
+
),
|
|
7277
|
+
style: {
|
|
7278
|
+
"--color-bg": indicatorColor,
|
|
7279
|
+
"--color-border": indicatorColor
|
|
7280
|
+
}
|
|
7281
|
+
}
|
|
7282
|
+
),
|
|
7283
|
+
/* @__PURE__ */ jsxs(
|
|
7284
|
+
"div",
|
|
7285
|
+
{
|
|
7286
|
+
className: cn(
|
|
7287
|
+
"flex flex-1 justify-between leading-none",
|
|
7288
|
+
nestLabel ? "items-end" : "items-center"
|
|
7289
|
+
),
|
|
7290
|
+
children: [
|
|
7291
|
+
/* @__PURE__ */ jsxs("div", { className: "grid gap-1.5", children: [
|
|
7292
|
+
nestLabel ? tooltipLabel : null,
|
|
7293
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: itemConfig?.label ?? item.name })
|
|
7294
|
+
] }),
|
|
7295
|
+
item.value != null && /* @__PURE__ */ jsx("span", { className: "font-mono font-medium text-foreground tabular-nums", children: typeof item.value === "number" ? item.value.toLocaleString() : String(item.value) })
|
|
7296
|
+
]
|
|
7297
|
+
}
|
|
7298
|
+
)
|
|
7299
|
+
] })
|
|
7300
|
+
},
|
|
7301
|
+
index
|
|
7302
|
+
);
|
|
7303
|
+
}) })
|
|
7304
|
+
]
|
|
7305
|
+
}
|
|
7306
|
+
);
|
|
7307
|
+
}
|
|
7308
|
+
var ChartLegend = RechartsPrimitive.Legend;
|
|
7309
|
+
function ChartLegendContent({
|
|
7310
|
+
className,
|
|
7311
|
+
hideIcon = false,
|
|
7312
|
+
payload,
|
|
7313
|
+
verticalAlign = "bottom",
|
|
7314
|
+
nameKey
|
|
7315
|
+
}) {
|
|
7316
|
+
const { config } = useChart();
|
|
7317
|
+
if (!payload?.length) {
|
|
7318
|
+
return null;
|
|
7319
|
+
}
|
|
7320
|
+
return /* @__PURE__ */ jsx(
|
|
7321
|
+
"div",
|
|
7322
|
+
{
|
|
7323
|
+
className: cn(
|
|
7324
|
+
"flex items-center justify-center gap-4",
|
|
7325
|
+
verticalAlign === "top" ? "pb-3" : "pt-3",
|
|
7326
|
+
className
|
|
7327
|
+
),
|
|
7328
|
+
children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
7329
|
+
const key = `${nameKey ?? item.dataKey ?? "value"}`;
|
|
7330
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
7331
|
+
return /* @__PURE__ */ jsxs(
|
|
7332
|
+
"div",
|
|
7333
|
+
{
|
|
7334
|
+
className: cn(
|
|
7335
|
+
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
|
|
7336
|
+
),
|
|
7337
|
+
children: [
|
|
7338
|
+
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : /* @__PURE__ */ jsx(
|
|
7339
|
+
"div",
|
|
7340
|
+
{
|
|
7341
|
+
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
7342
|
+
style: {
|
|
7343
|
+
backgroundColor: item.color
|
|
7344
|
+
}
|
|
7345
|
+
}
|
|
7346
|
+
),
|
|
7347
|
+
itemConfig?.label
|
|
7348
|
+
]
|
|
7349
|
+
},
|
|
7350
|
+
index
|
|
7351
|
+
);
|
|
7352
|
+
})
|
|
7353
|
+
}
|
|
7354
|
+
);
|
|
7355
|
+
}
|
|
7356
|
+
function getPayloadConfigFromPayload(config, payload, key) {
|
|
7357
|
+
if (typeof payload !== "object" || payload === null) {
|
|
7358
|
+
return void 0;
|
|
7359
|
+
}
|
|
7360
|
+
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
7361
|
+
let configLabelKey = key;
|
|
7362
|
+
if (key in payload && typeof payload[key] === "string") {
|
|
7363
|
+
configLabelKey = payload[key];
|
|
7364
|
+
} else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
|
|
7365
|
+
configLabelKey = payloadPayload[key];
|
|
7366
|
+
}
|
|
7367
|
+
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
7368
|
+
}
|
|
7130
7369
|
var codeBlockVariants = cva(
|
|
7131
7370
|
"group/code-block relative flex w-full min-w-0 flex-col overflow-hidden rounded-lg text-sm has-[>[data-slot=code-block-content]:focus-visible]:ring-3 has-[>[data-slot=code-block-content]:focus-visible]:ring-ring/50 data-[size=sm]:text-xs",
|
|
7132
7371
|
{
|
|
@@ -8707,6 +8946,183 @@ function InputOTPSeparator({ ...props }) {
|
|
|
8707
8946
|
}
|
|
8708
8947
|
);
|
|
8709
8948
|
}
|
|
8949
|
+
function ItemGroup({ className, ...props }) {
|
|
8950
|
+
return /* @__PURE__ */ jsx(
|
|
8951
|
+
"div",
|
|
8952
|
+
{
|
|
8953
|
+
role: "list",
|
|
8954
|
+
"data-slot": "item-group",
|
|
8955
|
+
className: cn(
|
|
8956
|
+
"group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",
|
|
8957
|
+
className
|
|
8958
|
+
),
|
|
8959
|
+
...props
|
|
8960
|
+
}
|
|
8961
|
+
);
|
|
8962
|
+
}
|
|
8963
|
+
function ItemSeparator({
|
|
8964
|
+
className,
|
|
8965
|
+
...props
|
|
8966
|
+
}) {
|
|
8967
|
+
return /* @__PURE__ */ jsx(
|
|
8968
|
+
Separator,
|
|
8969
|
+
{
|
|
8970
|
+
"data-slot": "item-separator",
|
|
8971
|
+
orientation: "horizontal",
|
|
8972
|
+
className: cn("my-2", className),
|
|
8973
|
+
...props
|
|
8974
|
+
}
|
|
8975
|
+
);
|
|
8976
|
+
}
|
|
8977
|
+
var itemVariants = cva(
|
|
8978
|
+
"group/item flex w-full flex-wrap items-center rounded-md border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted",
|
|
8979
|
+
{
|
|
8980
|
+
variants: {
|
|
8981
|
+
variant: {
|
|
8982
|
+
default: "border-transparent",
|
|
8983
|
+
outline: "border-border",
|
|
8984
|
+
muted: "border-transparent bg-muted/50"
|
|
8985
|
+
},
|
|
8986
|
+
size: {
|
|
8987
|
+
default: "gap-3.5 px-4 py-3.5",
|
|
8988
|
+
sm: "gap-2.5 px-3 py-2.5",
|
|
8989
|
+
xs: "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"
|
|
8990
|
+
}
|
|
8991
|
+
},
|
|
8992
|
+
defaultVariants: {
|
|
8993
|
+
variant: "default",
|
|
8994
|
+
size: "default"
|
|
8995
|
+
}
|
|
8996
|
+
}
|
|
8997
|
+
);
|
|
8998
|
+
function Item({
|
|
8999
|
+
className,
|
|
9000
|
+
variant = "default",
|
|
9001
|
+
size = "default",
|
|
9002
|
+
render,
|
|
9003
|
+
...props
|
|
9004
|
+
}) {
|
|
9005
|
+
return useRender({
|
|
9006
|
+
defaultTagName: "div",
|
|
9007
|
+
props: mergeProps(
|
|
9008
|
+
{
|
|
9009
|
+
className: cn(itemVariants({ variant, size, className }))
|
|
9010
|
+
},
|
|
9011
|
+
props
|
|
9012
|
+
),
|
|
9013
|
+
render,
|
|
9014
|
+
state: {
|
|
9015
|
+
slot: "item",
|
|
9016
|
+
variant,
|
|
9017
|
+
size
|
|
9018
|
+
}
|
|
9019
|
+
});
|
|
9020
|
+
}
|
|
9021
|
+
var itemMediaVariants = cva(
|
|
9022
|
+
"flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none",
|
|
9023
|
+
{
|
|
9024
|
+
variants: {
|
|
9025
|
+
variant: {
|
|
9026
|
+
default: "bg-transparent",
|
|
9027
|
+
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
9028
|
+
image: "size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"
|
|
9029
|
+
}
|
|
9030
|
+
},
|
|
9031
|
+
defaultVariants: {
|
|
9032
|
+
variant: "default"
|
|
9033
|
+
}
|
|
9034
|
+
}
|
|
9035
|
+
);
|
|
9036
|
+
function ItemMedia({
|
|
9037
|
+
className,
|
|
9038
|
+
variant = "default",
|
|
9039
|
+
...props
|
|
9040
|
+
}) {
|
|
9041
|
+
return /* @__PURE__ */ jsx(
|
|
9042
|
+
"div",
|
|
9043
|
+
{
|
|
9044
|
+
"data-slot": "item-media",
|
|
9045
|
+
"data-variant": variant,
|
|
9046
|
+
className: cn(itemMediaVariants({ variant, className })),
|
|
9047
|
+
...props
|
|
9048
|
+
}
|
|
9049
|
+
);
|
|
9050
|
+
}
|
|
9051
|
+
function ItemContent({ className, ...props }) {
|
|
9052
|
+
return /* @__PURE__ */ jsx(
|
|
9053
|
+
"div",
|
|
9054
|
+
{
|
|
9055
|
+
"data-slot": "item-content",
|
|
9056
|
+
className: cn(
|
|
9057
|
+
"flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",
|
|
9058
|
+
className
|
|
9059
|
+
),
|
|
9060
|
+
...props
|
|
9061
|
+
}
|
|
9062
|
+
);
|
|
9063
|
+
}
|
|
9064
|
+
function ItemTitle({ className, ...props }) {
|
|
9065
|
+
return /* @__PURE__ */ jsx(
|
|
9066
|
+
"div",
|
|
9067
|
+
{
|
|
9068
|
+
"data-slot": "item-title",
|
|
9069
|
+
className: cn(
|
|
9070
|
+
"line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",
|
|
9071
|
+
className
|
|
9072
|
+
),
|
|
9073
|
+
...props
|
|
9074
|
+
}
|
|
9075
|
+
);
|
|
9076
|
+
}
|
|
9077
|
+
function ItemDescription({ className, ...props }) {
|
|
9078
|
+
return /* @__PURE__ */ jsx(
|
|
9079
|
+
"p",
|
|
9080
|
+
{
|
|
9081
|
+
"data-slot": "item-description",
|
|
9082
|
+
className: cn(
|
|
9083
|
+
"line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
9084
|
+
className
|
|
9085
|
+
),
|
|
9086
|
+
...props
|
|
9087
|
+
}
|
|
9088
|
+
);
|
|
9089
|
+
}
|
|
9090
|
+
function ItemActions({ className, ...props }) {
|
|
9091
|
+
return /* @__PURE__ */ jsx(
|
|
9092
|
+
"div",
|
|
9093
|
+
{
|
|
9094
|
+
"data-slot": "item-actions",
|
|
9095
|
+
className: cn("flex items-center gap-2", className),
|
|
9096
|
+
...props
|
|
9097
|
+
}
|
|
9098
|
+
);
|
|
9099
|
+
}
|
|
9100
|
+
function ItemHeader({ className, ...props }) {
|
|
9101
|
+
return /* @__PURE__ */ jsx(
|
|
9102
|
+
"div",
|
|
9103
|
+
{
|
|
9104
|
+
"data-slot": "item-header",
|
|
9105
|
+
className: cn(
|
|
9106
|
+
"flex basis-full items-center justify-between gap-2",
|
|
9107
|
+
className
|
|
9108
|
+
),
|
|
9109
|
+
...props
|
|
9110
|
+
}
|
|
9111
|
+
);
|
|
9112
|
+
}
|
|
9113
|
+
function ItemFooter({ className, ...props }) {
|
|
9114
|
+
return /* @__PURE__ */ jsx(
|
|
9115
|
+
"div",
|
|
9116
|
+
{
|
|
9117
|
+
"data-slot": "item-footer",
|
|
9118
|
+
className: cn(
|
|
9119
|
+
"flex basis-full items-center justify-between gap-2",
|
|
9120
|
+
className
|
|
9121
|
+
),
|
|
9122
|
+
...props
|
|
9123
|
+
}
|
|
9124
|
+
);
|
|
9125
|
+
}
|
|
8710
9126
|
function Kbd({ className, ...props }) {
|
|
8711
9127
|
return /* @__PURE__ */ jsx(
|
|
8712
9128
|
"kbd",
|
|
@@ -9565,7 +9981,7 @@ function TooltipProvider({
|
|
|
9565
9981
|
...props
|
|
9566
9982
|
}) {
|
|
9567
9983
|
return /* @__PURE__ */ jsx(
|
|
9568
|
-
Tooltip
|
|
9984
|
+
Tooltip.Provider,
|
|
9569
9985
|
{
|
|
9570
9986
|
"data-slot": "tooltip-provider",
|
|
9571
9987
|
delay,
|
|
@@ -9573,11 +9989,11 @@ function TooltipProvider({
|
|
|
9573
9989
|
}
|
|
9574
9990
|
);
|
|
9575
9991
|
}
|
|
9576
|
-
function
|
|
9577
|
-
return /* @__PURE__ */ jsx(Tooltip
|
|
9992
|
+
function Tooltip2({ ...props }) {
|
|
9993
|
+
return /* @__PURE__ */ jsx(Tooltip.Root, { "data-slot": "tooltip", ...props });
|
|
9578
9994
|
}
|
|
9579
9995
|
function TooltipTrigger({ ...props }) {
|
|
9580
|
-
return /* @__PURE__ */ jsx(Tooltip
|
|
9996
|
+
return /* @__PURE__ */ jsx(Tooltip.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
9581
9997
|
}
|
|
9582
9998
|
function TooltipContent({
|
|
9583
9999
|
className,
|
|
@@ -9588,8 +10004,8 @@ function TooltipContent({
|
|
|
9588
10004
|
children,
|
|
9589
10005
|
...props
|
|
9590
10006
|
}) {
|
|
9591
|
-
return /* @__PURE__ */ jsx(Tooltip
|
|
9592
|
-
Tooltip
|
|
10007
|
+
return /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(
|
|
10008
|
+
Tooltip.Positioner,
|
|
9593
10009
|
{
|
|
9594
10010
|
align,
|
|
9595
10011
|
alignOffset,
|
|
@@ -9597,7 +10013,7 @@ function TooltipContent({
|
|
|
9597
10013
|
sideOffset,
|
|
9598
10014
|
className: "isolate z-50",
|
|
9599
10015
|
children: /* @__PURE__ */ jsxs(
|
|
9600
|
-
Tooltip
|
|
10016
|
+
Tooltip.Popup,
|
|
9601
10017
|
{
|
|
9602
10018
|
"data-slot": "tooltip-content",
|
|
9603
10019
|
className: cn(
|
|
@@ -9607,7 +10023,7 @@ function TooltipContent({
|
|
|
9607
10023
|
...props,
|
|
9608
10024
|
children: [
|
|
9609
10025
|
children,
|
|
9610
|
-
/* @__PURE__ */ jsx(Tooltip
|
|
10026
|
+
/* @__PURE__ */ jsx(Tooltip.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })
|
|
9611
10027
|
]
|
|
9612
10028
|
}
|
|
9613
10029
|
)
|
|
@@ -10067,7 +10483,7 @@ function SidebarMenuButton({
|
|
|
10067
10483
|
children: tooltip
|
|
10068
10484
|
};
|
|
10069
10485
|
}
|
|
10070
|
-
return /* @__PURE__ */ jsxs(
|
|
10486
|
+
return /* @__PURE__ */ jsxs(Tooltip2, { children: [
|
|
10071
10487
|
comp,
|
|
10072
10488
|
/* @__PURE__ */ jsx(
|
|
10073
10489
|
TooltipContent,
|
|
@@ -10416,6 +10832,6 @@ function ZenProvider({
|
|
|
10416
10832
|
return /* @__PURE__ */ jsx(TooltipProvider, { ...tooltip, children: /* @__PURE__ */ jsx(ToastProvider, { ...defaultToastConfig, ...toast, children }) });
|
|
10417
10833
|
}
|
|
10418
10834
|
|
|
10419
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Autocomplete, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Blockquote, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, CheckboxGroup, Code, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationDialog, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, DataCard, DataColumn, DataTable, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dots, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Flexbox, FloatingTooltip, Form, FormButtons, FormController, FormField, FormFieldArray, FormResetButton, FormSubmitButton, Grid, Heading, HoverCard, HoverCardContent, HoverCardTrigger, Icon, Image, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, KbdGroup, Label, List, ListItem, ListSection, ListSeparator, Loading, LoadingButton, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Meter, Navbar, NavbarItem, NavbarLink, NumberField, PALETTES, PageHeader, PageHeaderActions, PageHeaderTitle, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordField, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressCircle, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, Row, ScrollArea, ScrollBar, SearchField, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, StatusLight, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TagGroup, Text, TextField, Textarea, ThemeButton, ThemeSwitcher, Toast, ToastContext, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarButton, ToolbarGroup, ToolbarLink, ToolbarSeparator, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, ZenProvider, badgeVariants, buttonGroupVariants, buttonVariants, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDecorationColor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapSpace, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, tabsListVariants, toggleVariants, useBreakpoint, useCarousel, useComboboxAnchor, useDebounce, useHighlightedCode, useInitTheme, useIsMobile, useSidebar, useTheme, useToast };
|
|
10835
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Autocomplete, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Blockquote, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxGroup, Code, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationDialog, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyButton, DataCard, DataColumn, DataTable, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dots, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Flexbox, FloatingTooltip, Form, FormButtons, FormController, FormField, FormFieldArray, FormResetButton, FormSubmitButton, Grid, Heading, HoverCard, HoverCardContent, HoverCardTrigger, Icon, Image, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, List, ListItem, ListSection, ListSeparator, Loading, LoadingButton, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Meter, Navbar, NavbarItem, NavbarLink, NumberField, PALETTES, PageHeader, PageHeaderActions, PageHeaderTitle, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordField, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressCircle, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, Row, ScrollArea, ScrollBar, SearchField, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, StatusLight, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TagGroup, Text, TextField, Textarea, ThemeButton, ThemeSwitcher, Toast, ToastContext, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarButton, ToolbarGroup, ToolbarLink, ToolbarSeparator, Tooltip2 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, ZenProvider, badgeVariants, buttonGroupVariants, buttonVariants, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDecorationColor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapSpace, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, tabsListVariants, toggleVariants, useBreakpoint, useCarousel, useComboboxAnchor, useDebounce, useHighlightedCode, useInitTheme, useIsMobile, useSidebar, useTheme, useToast };
|
|
10420
10836
|
//# sourceMappingURL=index.mjs.map
|
|
10421
10837
|
//# sourceMappingURL=index.mjs.map
|