@alexgorbatchev/shadcn 0.0.123 → 0.0.125
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-8x9hkznc.js → chunk-8ja1nk62.js} +1 -1
- package/dist/chunk-bvzjbk43.js +48 -0
- package/dist/{chunk-wjs8ks1h.js → chunk-dhtk1cfw.js} +2 -1
- package/dist/{chunk-5eswhdbp.js → chunk-kx91d0g6.js} +223 -146
- package/dist/components/DescriptionList.d.ts +16 -6
- package/dist/components/Heading.d.ts +1 -1
- package/dist/components/PageHeader.d.ts +7 -2
- package/dist/components/PageIntro.d.ts +7 -2
- package/dist/components/Quote.d.ts +16 -0
- package/dist/components/SkipLink.d.ts +14 -0
- package/dist/components/StatusDot.d.ts +18 -0
- package/dist/components/assistant-ui/native/ThreadListSidebar.js +2 -2
- package/dist/components/assistant-ui/native/index.js +2 -2
- package/dist/components/json-render/index.js +3 -2
- package/dist/components/tree/index.js +6 -20
- package/dist/index.d.ts +6 -0
- package/dist/index.js +14 -2
- package/dist/prototype.js +1 -1
- package/dist/typeset.css +4 -1
- package/llms/components/data-display/DescriptionList.md +16 -0
- package/llms/components/data-display/Heading.md +18 -2
- package/llms/components/data-display/Quote.md +90 -0
- package/llms/components/data-display/StatusDot.md +80 -0
- package/llms/components/layout/PageHeader.md +8 -0
- package/llms/components/layout/PageIntro.md +8 -0
- package/llms/components/navigation/SkipLink.md +63 -0
- package/llms/components/overlays/Sheet.md +38 -0
- package/llms.txt +4 -1
- package/package.json +1 -1
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
SidebarMenu2,
|
|
161
161
|
SidebarMenuItem2,
|
|
162
162
|
SidebarMenuButton2
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-dhtk1cfw.js";
|
|
164
164
|
import {
|
|
165
165
|
AnalyticsButton
|
|
166
166
|
} from "./chunk-tcefvfr8.js";
|
|
@@ -1568,28 +1568,40 @@ function ButtonGroupSeparator2({
|
|
|
1568
1568
|
});
|
|
1569
1569
|
}
|
|
1570
1570
|
// src/components/DescriptionList.tsx
|
|
1571
|
+
import { createContext as createContext2, useContext } from "react";
|
|
1571
1572
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1573
|
+
var DescriptionListOrientationContext = createContext2("vertical");
|
|
1574
|
+
function DescriptionList2({
|
|
1575
|
+
density,
|
|
1576
|
+
orientation = "vertical",
|
|
1577
|
+
className,
|
|
1578
|
+
...props
|
|
1579
|
+
}) {
|
|
1580
|
+
return /* @__PURE__ */ jsx20(DescriptionListOrientationContext.Provider, {
|
|
1581
|
+
value: orientation,
|
|
1582
|
+
children: /* @__PURE__ */ jsx20("dl", {
|
|
1583
|
+
"data-density": density,
|
|
1584
|
+
"data-slot": "description-list",
|
|
1585
|
+
"data-orientation": orientation,
|
|
1586
|
+
className: cn2("flex w-full min-w-0 flex-col text-sm", orientation === "horizontal" ? "gap-2" : "gap-panel", className),
|
|
1587
|
+
...props
|
|
1588
|
+
})
|
|
1578
1589
|
});
|
|
1579
1590
|
}
|
|
1580
1591
|
function DescriptionListItem2({ density, className, ...props }) {
|
|
1592
|
+
const orientation = useContext(DescriptionListOrientationContext);
|
|
1581
1593
|
return /* @__PURE__ */ jsx20("div", {
|
|
1582
1594
|
"data-density": density,
|
|
1583
1595
|
"data-slot": "description-list-item",
|
|
1584
|
-
className: cn2("flex min-w-0 flex-col gap-1", className),
|
|
1596
|
+
className: cn2("flex min-w-0", orientation === "horizontal" ? "flex-wrap items-center justify-between gap-x-4 gap-y-1" : "flex-col gap-1", className),
|
|
1585
1597
|
...props
|
|
1586
1598
|
});
|
|
1587
1599
|
}
|
|
1588
|
-
function DescriptionTerm2({ density, className, ...props }) {
|
|
1600
|
+
function DescriptionTerm2({ density, tone = "muted", className, ...props }) {
|
|
1589
1601
|
return /* @__PURE__ */ jsx20("dt", {
|
|
1590
1602
|
"data-density": density,
|
|
1591
1603
|
"data-slot": "description-term",
|
|
1592
|
-
className: cn2("min-w-0 font-medium break-words text-muted-foreground", className),
|
|
1604
|
+
className: cn2("min-w-0 font-medium break-words", tone === "muted" ? "text-muted-foreground" : "text-foreground", className),
|
|
1593
1605
|
...props
|
|
1594
1606
|
});
|
|
1595
1607
|
}
|
|
@@ -2440,12 +2452,12 @@ function BubbleReactions2({
|
|
|
2440
2452
|
});
|
|
2441
2453
|
}
|
|
2442
2454
|
// src/components/Message.tsx
|
|
2443
|
-
import { useContext, useLayoutEffect, useMemo as useMemo2, useRef, useState } from "react";
|
|
2455
|
+
import { useContext as useContext2, useLayoutEffect, useMemo as useMemo2, useRef, useState } from "react";
|
|
2444
2456
|
import { useRender as useRender8 } from "@base-ui/react/use-render";
|
|
2445
2457
|
|
|
2446
2458
|
// src/message/MessageContext.ts
|
|
2447
|
-
import { createContext as
|
|
2448
|
-
var MessageContext =
|
|
2459
|
+
import { createContext as createContext3 } from "react";
|
|
2460
|
+
var MessageContext = createContext3(null);
|
|
2449
2461
|
|
|
2450
2462
|
// src/components/Message.tsx
|
|
2451
2463
|
import { ChevronRightIcon as ChevronRightIcon3 } from "lucide-react";
|
|
@@ -2499,7 +2511,7 @@ function MessageHeader2({ density, className, ...props }) {
|
|
|
2499
2511
|
});
|
|
2500
2512
|
}
|
|
2501
2513
|
function MessageFooter2({ density, className, ...props }) {
|
|
2502
|
-
const context =
|
|
2514
|
+
const context = useContext2(MessageContext);
|
|
2503
2515
|
const footerRef = useRef(null);
|
|
2504
2516
|
useLayoutEffect(() => {
|
|
2505
2517
|
const footer = footerRef.current;
|
|
@@ -3976,7 +3988,9 @@ var SIZE_CLASSES2 = {
|
|
|
3976
3988
|
sm: "text-sm",
|
|
3977
3989
|
base: "text-base",
|
|
3978
3990
|
lg: "text-lg",
|
|
3979
|
-
xl: "text-xl"
|
|
3991
|
+
xl: "text-xl",
|
|
3992
|
+
"2xl": "text-2xl tracking-tight",
|
|
3993
|
+
"3xl": "text-3xl tracking-tight"
|
|
3980
3994
|
};
|
|
3981
3995
|
function Heading2({ level, size, truncate = false, density, className, render, ...props }) {
|
|
3982
3996
|
return useRender14({
|
|
@@ -3988,6 +4002,44 @@ function Heading2({ level, size, truncate = false, density, className, render, .
|
|
|
3988
4002
|
state: { slot: "heading", level, density }
|
|
3989
4003
|
});
|
|
3990
4004
|
}
|
|
4005
|
+
// src/components/Quote.tsx
|
|
4006
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
4007
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
4008
|
+
var quoteVariants2 = cva7("block min-w-0 border-s-2 border-border break-words text-muted-foreground", {
|
|
4009
|
+
variants: {
|
|
4010
|
+
size: {
|
|
4011
|
+
default: "ps-3 text-sm",
|
|
4012
|
+
compact: "ps-2 text-xs"
|
|
4013
|
+
},
|
|
4014
|
+
clamp: {
|
|
4015
|
+
true: "line-clamp-2",
|
|
4016
|
+
false: ""
|
|
4017
|
+
}
|
|
4018
|
+
},
|
|
4019
|
+
defaultVariants: { size: "default", clamp: false }
|
|
4020
|
+
});
|
|
4021
|
+
function Quote2({ size, clamp, density, className, ...props }) {
|
|
4022
|
+
return /* @__PURE__ */ jsx40("blockquote", {
|
|
4023
|
+
"data-density": density,
|
|
4024
|
+
"data-slot": "quote",
|
|
4025
|
+
"data-size": size ?? "default",
|
|
4026
|
+
className: cn2(quoteVariants2({ size, clamp }), className),
|
|
4027
|
+
...props
|
|
4028
|
+
});
|
|
4029
|
+
}
|
|
4030
|
+
// src/components/SkipLink.tsx
|
|
4031
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
4032
|
+
function SkipLink2({ targetId, className, children = "Skip to content", ...props }) {
|
|
4033
|
+
return /* @__PURE__ */ jsx41(ButtonLink2, {
|
|
4034
|
+
"data-slot": "skip-link",
|
|
4035
|
+
variant: "outline",
|
|
4036
|
+
size: "sm",
|
|
4037
|
+
href: `#${targetId}`,
|
|
4038
|
+
className: cn2("fixed start-2 top-2 z-50 not-focus-visible:-translate-y-[calc(100%+1rem)] motion-safe:transition-transform", className),
|
|
4039
|
+
...props,
|
|
4040
|
+
children
|
|
4041
|
+
});
|
|
4042
|
+
}
|
|
3991
4043
|
// src/components/WeatherSummary.tsx
|
|
3992
4044
|
import { mergeProps as mergeProps14 } from "@base-ui/react/merge-props";
|
|
3993
4045
|
import { useRender as useRender15 } from "@base-ui/react/use-render";
|
|
@@ -4002,7 +4054,7 @@ import {
|
|
|
4002
4054
|
DropletIcon,
|
|
4003
4055
|
SunIcon
|
|
4004
4056
|
} from "lucide-react";
|
|
4005
|
-
import { jsx as
|
|
4057
|
+
import { jsx as jsx42, jsxs as jsxs26, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
4006
4058
|
var CONDITION_ICONS = {
|
|
4007
4059
|
clear: SunIcon,
|
|
4008
4060
|
"partly-cloudy": CloudSunIcon,
|
|
@@ -4056,7 +4108,7 @@ function WeatherSummary2({
|
|
|
4056
4108
|
className: cn2("flex min-w-0 text-foreground", isCompact ? "flex-col items-center gap-1 text-center" : "items-center gap-panel-sm", className),
|
|
4057
4109
|
children: /* @__PURE__ */ jsxs26(Fragment6, {
|
|
4058
4110
|
children: [
|
|
4059
|
-
/* @__PURE__ */
|
|
4111
|
+
/* @__PURE__ */ jsx42(ConditionIcon, {
|
|
4060
4112
|
"aria-hidden": "true",
|
|
4061
4113
|
"data-slot": "weather-summary-icon",
|
|
4062
4114
|
className: cn2("shrink-0 text-muted-foreground", isCompact ? "size-6" : "size-8")
|
|
@@ -4064,11 +4116,11 @@ function WeatherSummary2({
|
|
|
4064
4116
|
/* @__PURE__ */ jsxs26("div", {
|
|
4065
4117
|
className: cn2("flex min-w-0 flex-col gap-0.5", isCompact && "items-center"),
|
|
4066
4118
|
children: [
|
|
4067
|
-
/* @__PURE__ */
|
|
4119
|
+
/* @__PURE__ */ jsx42("div", {
|
|
4068
4120
|
className: "text-sm font-medium break-words",
|
|
4069
4121
|
children: label
|
|
4070
4122
|
}),
|
|
4071
|
-
/* @__PURE__ */
|
|
4123
|
+
/* @__PURE__ */ jsx42("div", {
|
|
4072
4124
|
className: cn2("text-sm text-muted-foreground", isCompact && "sr-only"),
|
|
4073
4125
|
children: conditionLabel
|
|
4074
4126
|
}),
|
|
@@ -4077,11 +4129,11 @@ function WeatherSummary2({
|
|
|
4077
4129
|
children: [
|
|
4078
4130
|
/* @__PURE__ */ jsxs26("span", {
|
|
4079
4131
|
children: [
|
|
4080
|
-
/* @__PURE__ */
|
|
4132
|
+
/* @__PURE__ */ jsx42("span", {
|
|
4081
4133
|
className: "sr-only",
|
|
4082
4134
|
children: "High "
|
|
4083
4135
|
}),
|
|
4084
|
-
/* @__PURE__ */
|
|
4136
|
+
/* @__PURE__ */ jsx42("span", {
|
|
4085
4137
|
className: "font-medium",
|
|
4086
4138
|
children: highText
|
|
4087
4139
|
})
|
|
@@ -4090,7 +4142,7 @@ function WeatherSummary2({
|
|
|
4090
4142
|
/* @__PURE__ */ jsxs26("span", {
|
|
4091
4143
|
className: "text-muted-foreground",
|
|
4092
4144
|
children: [
|
|
4093
|
-
/* @__PURE__ */
|
|
4145
|
+
/* @__PURE__ */ jsx42("span", {
|
|
4094
4146
|
className: "sr-only",
|
|
4095
4147
|
children: "Low "
|
|
4096
4148
|
}),
|
|
@@ -4102,14 +4154,14 @@ function WeatherSummary2({
|
|
|
4102
4154
|
probabilityText !== undefined && /* @__PURE__ */ jsxs26("div", {
|
|
4103
4155
|
className: "flex items-center gap-1 text-xs text-muted-foreground tabular-nums",
|
|
4104
4156
|
children: [
|
|
4105
|
-
/* @__PURE__ */
|
|
4157
|
+
/* @__PURE__ */ jsx42(DropletIcon, {
|
|
4106
4158
|
"aria-hidden": "true",
|
|
4107
4159
|
className: "size-3 shrink-0"
|
|
4108
4160
|
}),
|
|
4109
4161
|
/* @__PURE__ */ jsxs26("span", {
|
|
4110
4162
|
children: [
|
|
4111
4163
|
probabilityText,
|
|
4112
|
-
/* @__PURE__ */
|
|
4164
|
+
/* @__PURE__ */ jsx42("span", {
|
|
4113
4165
|
className: "sr-only",
|
|
4114
4166
|
children: " chance of precipitation"
|
|
4115
4167
|
})
|
|
@@ -4127,7 +4179,7 @@ function WeatherSummary2({
|
|
|
4127
4179
|
});
|
|
4128
4180
|
}
|
|
4129
4181
|
// src/components/WeatherForecast.tsx
|
|
4130
|
-
import { jsx as
|
|
4182
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
4131
4183
|
function WeatherForecast2({
|
|
4132
4184
|
days,
|
|
4133
4185
|
label,
|
|
@@ -4138,24 +4190,33 @@ function WeatherForecast2({
|
|
|
4138
4190
|
className,
|
|
4139
4191
|
...props
|
|
4140
4192
|
}) {
|
|
4141
|
-
return /* @__PURE__ */
|
|
4193
|
+
return /* @__PURE__ */ jsx43("ul", {
|
|
4142
4194
|
"aria-label": label,
|
|
4143
4195
|
"data-slot": "weather-forecast",
|
|
4144
4196
|
"data-density": density,
|
|
4145
4197
|
className: cn2("grid min-w-0 gap-panel-sm", variant === "strip" && "grid-cols-[repeat(auto-fill,minmax(6rem,1fr))]", className),
|
|
4146
4198
|
...props,
|
|
4147
|
-
children: days.map(({ id, ...day }) => /* @__PURE__ */
|
|
4199
|
+
children: days.map(({ id, ...day }) => /* @__PURE__ */ jsx43(WeatherSummary2, {
|
|
4148
4200
|
...day,
|
|
4149
4201
|
unit,
|
|
4150
4202
|
locale,
|
|
4151
4203
|
variant: variant === "strip" ? "compact" : "default",
|
|
4152
|
-
render: /* @__PURE__ */
|
|
4204
|
+
render: /* @__PURE__ */ jsx43("li", {})
|
|
4153
4205
|
}, id))
|
|
4154
4206
|
});
|
|
4155
4207
|
}
|
|
4156
4208
|
// src/components/PageHeader.tsx
|
|
4157
|
-
import { jsx as
|
|
4158
|
-
function PageHeader2({
|
|
4209
|
+
import { jsx as jsx44, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4210
|
+
function PageHeader2({
|
|
4211
|
+
title,
|
|
4212
|
+
titleSize = "xl",
|
|
4213
|
+
headingProps,
|
|
4214
|
+
eyebrow,
|
|
4215
|
+
description,
|
|
4216
|
+
breadcrumbs,
|
|
4217
|
+
actions,
|
|
4218
|
+
density
|
|
4219
|
+
}) {
|
|
4159
4220
|
return /* @__PURE__ */ jsxs27("header", {
|
|
4160
4221
|
"data-density": density,
|
|
4161
4222
|
"data-slot": "page-header",
|
|
@@ -4169,21 +4230,24 @@ function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, densit
|
|
|
4169
4230
|
/* @__PURE__ */ jsxs27("div", {
|
|
4170
4231
|
className: "min-w-0",
|
|
4171
4232
|
children: [
|
|
4172
|
-
eyebrow != null && /* @__PURE__ */
|
|
4233
|
+
eyebrow != null && /* @__PURE__ */ jsx44("div", {
|
|
4173
4234
|
className: "mb-2 text-xs font-medium tracking-widest text-muted-foreground",
|
|
4174
4235
|
children: eyebrow
|
|
4175
4236
|
}),
|
|
4176
|
-
/* @__PURE__ */
|
|
4177
|
-
|
|
4237
|
+
/* @__PURE__ */ jsx44(Heading2, {
|
|
4238
|
+
level: 1,
|
|
4239
|
+
size: titleSize,
|
|
4240
|
+
...headingProps,
|
|
4241
|
+
className: cn2("outline-none", headingProps?.className),
|
|
4178
4242
|
children: title
|
|
4179
4243
|
}),
|
|
4180
|
-
description && /* @__PURE__ */
|
|
4244
|
+
description && /* @__PURE__ */ jsx44("div", {
|
|
4181
4245
|
className: "mt-1 text-sm text-muted-foreground",
|
|
4182
4246
|
children: description
|
|
4183
4247
|
})
|
|
4184
4248
|
]
|
|
4185
4249
|
}),
|
|
4186
|
-
actions && /* @__PURE__ */
|
|
4250
|
+
actions && /* @__PURE__ */ jsx44("div", {
|
|
4187
4251
|
className: "flex min-w-0 max-w-full flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
4188
4252
|
children: actions
|
|
4189
4253
|
})
|
|
@@ -4193,7 +4257,7 @@ function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, densit
|
|
|
4193
4257
|
});
|
|
4194
4258
|
}
|
|
4195
4259
|
// src/components/PanelHeader.tsx
|
|
4196
|
-
import { jsx as
|
|
4260
|
+
import { jsx as jsx45, jsxs as jsxs28, Fragment as Fragment7 } from "react/jsx-runtime";
|
|
4197
4261
|
function PanelHeader2({
|
|
4198
4262
|
title,
|
|
4199
4263
|
count,
|
|
@@ -4226,7 +4290,7 @@ function PanelHeader2({
|
|
|
4226
4290
|
count != null && /* @__PURE__ */ jsxs28(Fragment7, {
|
|
4227
4291
|
children: [
|
|
4228
4292
|
" ",
|
|
4229
|
-
/* @__PURE__ */
|
|
4293
|
+
/* @__PURE__ */ jsx45("span", {
|
|
4230
4294
|
"data-slot": "panel-header-count",
|
|
4231
4295
|
className: "ms-1 font-normal text-muted-foreground tabular-nums",
|
|
4232
4296
|
children: count
|
|
@@ -4235,14 +4299,14 @@ function PanelHeader2({
|
|
|
4235
4299
|
})
|
|
4236
4300
|
]
|
|
4237
4301
|
}),
|
|
4238
|
-
actions != null && /* @__PURE__ */
|
|
4302
|
+
actions != null && /* @__PURE__ */ jsx45("div", {
|
|
4239
4303
|
"data-slot": "panel-header-actions",
|
|
4240
4304
|
className: "flex shrink-0 items-center gap-1",
|
|
4241
4305
|
children: actions
|
|
4242
4306
|
})
|
|
4243
4307
|
]
|
|
4244
4308
|
}),
|
|
4245
|
-
toolbar != null && /* @__PURE__ */
|
|
4309
|
+
toolbar != null && /* @__PURE__ */ jsx45("div", {
|
|
4246
4310
|
"data-slot": "panel-header-toolbar",
|
|
4247
4311
|
className: "flex min-w-0 flex-wrap items-center gap-control-gap",
|
|
4248
4312
|
children: toolbar
|
|
@@ -4251,9 +4315,19 @@ function PanelHeader2({
|
|
|
4251
4315
|
});
|
|
4252
4316
|
}
|
|
4253
4317
|
// src/components/PageIntro.tsx
|
|
4254
|
-
import { jsx as
|
|
4255
|
-
function PageIntro2({
|
|
4256
|
-
|
|
4318
|
+
import { jsx as jsx46, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4319
|
+
function PageIntro2({
|
|
4320
|
+
title,
|
|
4321
|
+
titleSize = "2xl",
|
|
4322
|
+
headingProps,
|
|
4323
|
+
description,
|
|
4324
|
+
eyebrow,
|
|
4325
|
+
icon,
|
|
4326
|
+
actions,
|
|
4327
|
+
highlights,
|
|
4328
|
+
density
|
|
4329
|
+
}) {
|
|
4330
|
+
return /* @__PURE__ */ jsx46("header", {
|
|
4257
4331
|
"data-density": density,
|
|
4258
4332
|
"data-slot": "page-intro",
|
|
4259
4333
|
"data-scroll": "none",
|
|
@@ -4262,7 +4336,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4262
4336
|
variant: "hero",
|
|
4263
4337
|
className: "gap-0 py-0",
|
|
4264
4338
|
children: [
|
|
4265
|
-
/* @__PURE__ */
|
|
4339
|
+
/* @__PURE__ */ jsx46("div", {
|
|
4266
4340
|
"aria-hidden": "true",
|
|
4267
4341
|
"data-slot": "page-intro-wash",
|
|
4268
4342
|
className: "pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(ellipse_90%_140%_at_100%_0%,color-mix(in_oklab,var(--primary)_16%,transparent),transparent_65%)]"
|
|
@@ -4273,7 +4347,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4273
4347
|
/* @__PURE__ */ jsxs29("div", {
|
|
4274
4348
|
className: "flex min-w-0 gap-panel",
|
|
4275
4349
|
children: [
|
|
4276
|
-
icon != null && /* @__PURE__ */
|
|
4350
|
+
icon != null && /* @__PURE__ */ jsx46("div", {
|
|
4277
4351
|
"aria-hidden": "true",
|
|
4278
4352
|
"data-slot": "page-intro-icon",
|
|
4279
4353
|
className: "flex size-12 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-6",
|
|
@@ -4282,15 +4356,18 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4282
4356
|
/* @__PURE__ */ jsxs29("div", {
|
|
4283
4357
|
className: "min-w-0",
|
|
4284
4358
|
children: [
|
|
4285
|
-
eyebrow != null && /* @__PURE__ */
|
|
4359
|
+
eyebrow != null && /* @__PURE__ */ jsx46("div", {
|
|
4286
4360
|
className: "mb-1 text-xs font-medium tracking-widest text-muted-foreground",
|
|
4287
4361
|
children: eyebrow
|
|
4288
4362
|
}),
|
|
4289
|
-
/* @__PURE__ */
|
|
4290
|
-
|
|
4363
|
+
/* @__PURE__ */ jsx46(Heading2, {
|
|
4364
|
+
level: 1,
|
|
4365
|
+
size: titleSize,
|
|
4366
|
+
...headingProps,
|
|
4367
|
+
className: cn2("outline-none", headingProps?.className),
|
|
4291
4368
|
children: title
|
|
4292
4369
|
}),
|
|
4293
|
-
/* @__PURE__ */
|
|
4370
|
+
/* @__PURE__ */ jsx46("div", {
|
|
4294
4371
|
className: "mt-2 max-w-prose text-base text-pretty text-muted-foreground",
|
|
4295
4372
|
children: description
|
|
4296
4373
|
})
|
|
@@ -4298,13 +4375,13 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4298
4375
|
})
|
|
4299
4376
|
]
|
|
4300
4377
|
}),
|
|
4301
|
-
actions != null && /* @__PURE__ */
|
|
4378
|
+
actions != null && /* @__PURE__ */ jsx46("div", {
|
|
4302
4379
|
className: "flex min-w-0 max-w-full shrink-0 flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
4303
4380
|
children: actions
|
|
4304
4381
|
})
|
|
4305
4382
|
]
|
|
4306
4383
|
}),
|
|
4307
|
-
highlights != null && highlights.length > 0 && /* @__PURE__ */
|
|
4384
|
+
highlights != null && highlights.length > 0 && /* @__PURE__ */ jsx46("ul", {
|
|
4308
4385
|
"aria-label": `What you can do in ${title}`,
|
|
4309
4386
|
"data-slot": "page-intro-highlights",
|
|
4310
4387
|
className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,13rem),1fr))] gap-panel border-t border-border p-(--card-spacing)",
|
|
@@ -4312,7 +4389,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4312
4389
|
"data-slot": "page-intro-highlight",
|
|
4313
4390
|
className: "flex min-w-0 gap-2",
|
|
4314
4391
|
children: [
|
|
4315
|
-
highlight.icon != null && /* @__PURE__ */
|
|
4392
|
+
highlight.icon != null && /* @__PURE__ */ jsx46("span", {
|
|
4316
4393
|
"aria-hidden": "true",
|
|
4317
4394
|
className: "mt-0.5 shrink-0 text-primary [&_svg]:size-4",
|
|
4318
4395
|
children: highlight.icon
|
|
@@ -4320,11 +4397,11 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4320
4397
|
/* @__PURE__ */ jsxs29("div", {
|
|
4321
4398
|
className: "min-w-0",
|
|
4322
4399
|
children: [
|
|
4323
|
-
/* @__PURE__ */
|
|
4400
|
+
/* @__PURE__ */ jsx46("div", {
|
|
4324
4401
|
className: "text-sm font-medium text-foreground",
|
|
4325
4402
|
children: highlight.title
|
|
4326
4403
|
}),
|
|
4327
|
-
/* @__PURE__ */
|
|
4404
|
+
/* @__PURE__ */ jsx46("div", {
|
|
4328
4405
|
className: "mt-0.5 text-sm text-muted-foreground",
|
|
4329
4406
|
children: highlight.description
|
|
4330
4407
|
})
|
|
@@ -4338,7 +4415,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4338
4415
|
});
|
|
4339
4416
|
}
|
|
4340
4417
|
// src/components/WorkspaceSwitcher.tsx
|
|
4341
|
-
import { jsx as
|
|
4418
|
+
import { jsx as jsx47, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4342
4419
|
function WorkspaceSwitcher2({
|
|
4343
4420
|
workspaces,
|
|
4344
4421
|
value,
|
|
@@ -4358,15 +4435,15 @@ function WorkspaceSwitcher2({
|
|
|
4358
4435
|
},
|
|
4359
4436
|
disabled,
|
|
4360
4437
|
children: [
|
|
4361
|
-
/* @__PURE__ */
|
|
4438
|
+
/* @__PURE__ */ jsx47(SelectTrigger2, {
|
|
4362
4439
|
"aria-label": label,
|
|
4363
4440
|
density,
|
|
4364
|
-
children: /* @__PURE__ */
|
|
4441
|
+
children: /* @__PURE__ */ jsx47(SelectValue2, {})
|
|
4365
4442
|
}),
|
|
4366
|
-
/* @__PURE__ */
|
|
4443
|
+
/* @__PURE__ */ jsx47(SelectContent2, {
|
|
4367
4444
|
density,
|
|
4368
|
-
children: /* @__PURE__ */
|
|
4369
|
-
children: workspaces.map((workspace) => /* @__PURE__ */
|
|
4445
|
+
children: /* @__PURE__ */ jsx47(SelectGroup2, {
|
|
4446
|
+
children: workspaces.map((workspace) => /* @__PURE__ */ jsx47(SelectItem2, {
|
|
4370
4447
|
value: workspace.value,
|
|
4371
4448
|
children: workspace.label
|
|
4372
4449
|
}, workspace.value))
|
|
@@ -4376,12 +4453,12 @@ function WorkspaceSwitcher2({
|
|
|
4376
4453
|
});
|
|
4377
4454
|
}
|
|
4378
4455
|
// src/components/AccountMenu.tsx
|
|
4379
|
-
import { jsx as
|
|
4456
|
+
import { jsx as jsx48, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4380
4457
|
function AccountMenu2({ name, email, image, onAction, density }) {
|
|
4381
4458
|
return /* @__PURE__ */ jsxs31(DropdownMenu2, {
|
|
4382
4459
|
children: [
|
|
4383
4460
|
/* @__PURE__ */ jsxs31(DropdownMenuTrigger2, {
|
|
4384
|
-
render: /* @__PURE__ */
|
|
4461
|
+
render: /* @__PURE__ */ jsx48(Button2, {
|
|
4385
4462
|
variant: "ghost",
|
|
4386
4463
|
density
|
|
4387
4464
|
}),
|
|
@@ -4390,38 +4467,38 @@ function AccountMenu2({ name, email, image, onAction, density }) {
|
|
|
4390
4467
|
/* @__PURE__ */ jsxs31(Avatar2, {
|
|
4391
4468
|
className: "size-control",
|
|
4392
4469
|
children: [
|
|
4393
|
-
/* @__PURE__ */
|
|
4470
|
+
/* @__PURE__ */ jsx48(AvatarImage2, {
|
|
4394
4471
|
src: image,
|
|
4395
4472
|
alt: ""
|
|
4396
4473
|
}),
|
|
4397
|
-
/* @__PURE__ */
|
|
4474
|
+
/* @__PURE__ */ jsx48(AvatarFallback2, {
|
|
4398
4475
|
children: name.slice(0, 2).toUpperCase()
|
|
4399
4476
|
})
|
|
4400
4477
|
]
|
|
4401
4478
|
}),
|
|
4402
|
-
/* @__PURE__ */
|
|
4479
|
+
/* @__PURE__ */ jsx48("span", {
|
|
4403
4480
|
children: name
|
|
4404
4481
|
})
|
|
4405
4482
|
]
|
|
4406
4483
|
}),
|
|
4407
|
-
/* @__PURE__ */
|
|
4484
|
+
/* @__PURE__ */ jsx48(MenuPopup, {
|
|
4408
4485
|
density,
|
|
4409
4486
|
align: "end",
|
|
4410
4487
|
children: /* @__PURE__ */ jsxs31(MenuGroup2, {
|
|
4411
4488
|
children: [
|
|
4412
|
-
/* @__PURE__ */
|
|
4489
|
+
/* @__PURE__ */ jsx48(MenuLabel2, {
|
|
4413
4490
|
children: email ?? name
|
|
4414
4491
|
}),
|
|
4415
|
-
/* @__PURE__ */
|
|
4492
|
+
/* @__PURE__ */ jsx48(MenuItem2, {
|
|
4416
4493
|
onClick: () => onAction("profile"),
|
|
4417
4494
|
children: "Profile"
|
|
4418
4495
|
}),
|
|
4419
|
-
/* @__PURE__ */
|
|
4496
|
+
/* @__PURE__ */ jsx48(MenuItem2, {
|
|
4420
4497
|
onClick: () => onAction("settings"),
|
|
4421
4498
|
children: "Settings"
|
|
4422
4499
|
}),
|
|
4423
|
-
/* @__PURE__ */
|
|
4424
|
-
/* @__PURE__ */
|
|
4500
|
+
/* @__PURE__ */ jsx48(MenuSeparator2, {}),
|
|
4501
|
+
/* @__PURE__ */ jsx48(MenuItem2, {
|
|
4425
4502
|
onClick: () => onAction("sign-out"),
|
|
4426
4503
|
children: "Sign out"
|
|
4427
4504
|
})
|
|
@@ -4432,7 +4509,7 @@ function AccountMenu2({ name, email, image, onAction, density }) {
|
|
|
4432
4509
|
});
|
|
4433
4510
|
}
|
|
4434
4511
|
// src/components/StatCard.tsx
|
|
4435
|
-
import { jsx as
|
|
4512
|
+
import { jsx as jsx49, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4436
4513
|
function StatCard2({
|
|
4437
4514
|
label,
|
|
4438
4515
|
value,
|
|
@@ -4450,33 +4527,33 @@ function StatCard2({
|
|
|
4450
4527
|
children: [
|
|
4451
4528
|
/* @__PURE__ */ jsxs32(CardHeader2, {
|
|
4452
4529
|
children: [
|
|
4453
|
-
/* @__PURE__ */
|
|
4530
|
+
/* @__PURE__ */ jsx49(CardTitle2, {
|
|
4454
4531
|
children: label
|
|
4455
4532
|
}),
|
|
4456
|
-
description && /* @__PURE__ */
|
|
4533
|
+
description && /* @__PURE__ */ jsx49(CardDescription2, {
|
|
4457
4534
|
children: description
|
|
4458
4535
|
})
|
|
4459
4536
|
]
|
|
4460
4537
|
}),
|
|
4461
|
-
/* @__PURE__ */
|
|
4538
|
+
/* @__PURE__ */ jsx49(CardContent2, {
|
|
4462
4539
|
children: /* @__PURE__ */ jsxs32("div", {
|
|
4463
4540
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4464
4541
|
children: [
|
|
4465
|
-
loading ? /* @__PURE__ */
|
|
4542
|
+
loading ? /* @__PURE__ */ jsx49(Skeleton2, {
|
|
4466
4543
|
className: "h-8 w-24",
|
|
4467
4544
|
"aria-label": `Loading ${label}`
|
|
4468
|
-
}) : /* @__PURE__ */
|
|
4545
|
+
}) : /* @__PURE__ */ jsx49("div", {
|
|
4469
4546
|
className: "text-2xl font-semibold tabular-nums",
|
|
4470
4547
|
children: value
|
|
4471
4548
|
}),
|
|
4472
|
-
change && /* @__PURE__ */
|
|
4549
|
+
change && /* @__PURE__ */ jsx49(Badge2, {
|
|
4473
4550
|
variant: changeIntent === "positive" ? "success" : changeIntent === "negative" ? "destructive" : "secondary",
|
|
4474
4551
|
children: change
|
|
4475
4552
|
})
|
|
4476
4553
|
]
|
|
4477
4554
|
})
|
|
4478
4555
|
}),
|
|
4479
|
-
children && /* @__PURE__ */
|
|
4556
|
+
children && /* @__PURE__ */ jsx49(CardFooter2, {
|
|
4480
4557
|
children
|
|
4481
4558
|
})
|
|
4482
4559
|
]
|
|
@@ -4484,7 +4561,7 @@ function StatCard2({
|
|
|
4484
4561
|
}
|
|
4485
4562
|
// src/components/AuthForm.tsx
|
|
4486
4563
|
import { useId as useId8, useState as useState7 } from "react";
|
|
4487
|
-
import { jsx as
|
|
4564
|
+
import { jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4488
4565
|
function AuthForm2({
|
|
4489
4566
|
mode = "sign-in",
|
|
4490
4567
|
onSubmit,
|
|
@@ -4519,16 +4596,16 @@ function AuthForm2({
|
|
|
4519
4596
|
children: [
|
|
4520
4597
|
/* @__PURE__ */ jsxs33(CardHeader2, {
|
|
4521
4598
|
children: [
|
|
4522
|
-
/* @__PURE__ */
|
|
4599
|
+
/* @__PURE__ */ jsx50(CardTitle2, {
|
|
4523
4600
|
children: title
|
|
4524
4601
|
}),
|
|
4525
|
-
/* @__PURE__ */
|
|
4602
|
+
/* @__PURE__ */ jsx50(CardDescription2, {
|
|
4526
4603
|
children: mode === "reset-password" ? "Enter your email to request a password reset." : "Enter your details to continue."
|
|
4527
4604
|
})
|
|
4528
4605
|
]
|
|
4529
4606
|
}),
|
|
4530
|
-
/* @__PURE__ */
|
|
4531
|
-
children: /* @__PURE__ */
|
|
4607
|
+
/* @__PURE__ */ jsx50(CardContent2, {
|
|
4608
|
+
children: /* @__PURE__ */ jsx50("form", {
|
|
4532
4609
|
onSubmit: submit,
|
|
4533
4610
|
"aria-label": title,
|
|
4534
4611
|
"aria-busy": pending,
|
|
@@ -4536,11 +4613,11 @@ function AuthForm2({
|
|
|
4536
4613
|
children: [
|
|
4537
4614
|
mode === "sign-up" && /* @__PURE__ */ jsxs33(Field2, {
|
|
4538
4615
|
children: [
|
|
4539
|
-
/* @__PURE__ */
|
|
4616
|
+
/* @__PURE__ */ jsx50(FieldLabel2, {
|
|
4540
4617
|
htmlFor: id + "-name",
|
|
4541
4618
|
children: "Name"
|
|
4542
4619
|
}),
|
|
4543
|
-
/* @__PURE__ */
|
|
4620
|
+
/* @__PURE__ */ jsx50(Input2, {
|
|
4544
4621
|
id: id + "-name",
|
|
4545
4622
|
name: "name",
|
|
4546
4623
|
autoComplete: "name",
|
|
@@ -4551,11 +4628,11 @@ function AuthForm2({
|
|
|
4551
4628
|
}),
|
|
4552
4629
|
/* @__PURE__ */ jsxs33(Field2, {
|
|
4553
4630
|
children: [
|
|
4554
|
-
/* @__PURE__ */
|
|
4631
|
+
/* @__PURE__ */ jsx50(FieldLabel2, {
|
|
4555
4632
|
htmlFor: id + "-email",
|
|
4556
4633
|
children: "Email"
|
|
4557
4634
|
}),
|
|
4558
|
-
/* @__PURE__ */
|
|
4635
|
+
/* @__PURE__ */ jsx50(Input2, {
|
|
4559
4636
|
id: id + "-email",
|
|
4560
4637
|
name: "email",
|
|
4561
4638
|
type: "email",
|
|
@@ -4567,11 +4644,11 @@ function AuthForm2({
|
|
|
4567
4644
|
}),
|
|
4568
4645
|
mode !== "reset-password" && /* @__PURE__ */ jsxs33(Field2, {
|
|
4569
4646
|
children: [
|
|
4570
|
-
/* @__PURE__ */
|
|
4647
|
+
/* @__PURE__ */ jsx50(FieldLabel2, {
|
|
4571
4648
|
htmlFor: id + "-password",
|
|
4572
4649
|
children: "Password"
|
|
4573
4650
|
}),
|
|
4574
|
-
/* @__PURE__ */
|
|
4651
|
+
/* @__PURE__ */ jsx50(Input2, {
|
|
4575
4652
|
id: id + "-password",
|
|
4576
4653
|
name: "password",
|
|
4577
4654
|
type: "password",
|
|
@@ -4580,7 +4657,7 @@ function AuthForm2({
|
|
|
4580
4657
|
required: true,
|
|
4581
4658
|
disabled: disabled || pending
|
|
4582
4659
|
}),
|
|
4583
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4660
|
+
mode === "sign-up" && /* @__PURE__ */ jsx50(FieldDescription2, {
|
|
4584
4661
|
children: "Use at least eight characters."
|
|
4585
4662
|
})
|
|
4586
4663
|
]
|
|
@@ -4588,10 +4665,10 @@ function AuthForm2({
|
|
|
4588
4665
|
error && /* @__PURE__ */ jsxs33(Alert2, {
|
|
4589
4666
|
variant: "destructive",
|
|
4590
4667
|
children: [
|
|
4591
|
-
/* @__PURE__ */
|
|
4668
|
+
/* @__PURE__ */ jsx50(AlertTitle2, {
|
|
4592
4669
|
children: "Request failed"
|
|
4593
4670
|
}),
|
|
4594
|
-
/* @__PURE__ */
|
|
4671
|
+
/* @__PURE__ */ jsx50(AlertDescription2, {
|
|
4595
4672
|
children: error
|
|
4596
4673
|
})
|
|
4597
4674
|
]
|
|
@@ -4600,7 +4677,7 @@ function AuthForm2({
|
|
|
4600
4677
|
type: "submit",
|
|
4601
4678
|
disabled: disabled || pending,
|
|
4602
4679
|
children: [
|
|
4603
|
-
pending && /* @__PURE__ */
|
|
4680
|
+
pending && /* @__PURE__ */ jsx50(Spinner2, {
|
|
4604
4681
|
"data-icon": "inline-start"
|
|
4605
4682
|
}),
|
|
4606
4683
|
mode === "reset-password" ? "Send reset link" : title
|
|
@@ -4611,14 +4688,14 @@ function AuthForm2({
|
|
|
4611
4688
|
})
|
|
4612
4689
|
})
|
|
4613
4690
|
}),
|
|
4614
|
-
footer && /* @__PURE__ */
|
|
4691
|
+
footer && /* @__PURE__ */ jsx50(CardFooter2, {
|
|
4615
4692
|
children: footer
|
|
4616
4693
|
})
|
|
4617
4694
|
]
|
|
4618
4695
|
});
|
|
4619
4696
|
}
|
|
4620
4697
|
// src/components/SettingsSection.tsx
|
|
4621
|
-
import { jsx as
|
|
4698
|
+
import { jsx as jsx51, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4622
4699
|
function SettingsSection2({
|
|
4623
4700
|
title,
|
|
4624
4701
|
description,
|
|
@@ -4631,7 +4708,7 @@ function SettingsSection2({
|
|
|
4631
4708
|
destructive = false,
|
|
4632
4709
|
density
|
|
4633
4710
|
}) {
|
|
4634
|
-
return /* @__PURE__ */
|
|
4711
|
+
return /* @__PURE__ */ jsx51("form", {
|
|
4635
4712
|
"aria-label": title,
|
|
4636
4713
|
onSubmit,
|
|
4637
4714
|
"aria-busy": pending,
|
|
@@ -4640,24 +4717,24 @@ function SettingsSection2({
|
|
|
4640
4717
|
children: [
|
|
4641
4718
|
/* @__PURE__ */ jsxs34(CardHeader2, {
|
|
4642
4719
|
children: [
|
|
4643
|
-
/* @__PURE__ */
|
|
4720
|
+
/* @__PURE__ */ jsx51(CardTitle2, {
|
|
4644
4721
|
children: title
|
|
4645
4722
|
}),
|
|
4646
|
-
description && /* @__PURE__ */
|
|
4723
|
+
description && /* @__PURE__ */ jsx51(CardDescription2, {
|
|
4647
4724
|
children: description
|
|
4648
4725
|
})
|
|
4649
4726
|
]
|
|
4650
4727
|
}),
|
|
4651
|
-
/* @__PURE__ */
|
|
4728
|
+
/* @__PURE__ */ jsx51(CardContent2, {
|
|
4652
4729
|
children: /* @__PURE__ */ jsxs34("fieldset", {
|
|
4653
4730
|
disabled: disabled || pending,
|
|
4654
4731
|
className: "min-w-0 border-0 p-0",
|
|
4655
4732
|
children: [
|
|
4656
|
-
/* @__PURE__ */
|
|
4733
|
+
/* @__PURE__ */ jsx51("legend", {
|
|
4657
4734
|
className: "sr-only",
|
|
4658
4735
|
children: title
|
|
4659
4736
|
}),
|
|
4660
|
-
/* @__PURE__ */
|
|
4737
|
+
/* @__PURE__ */ jsx51(FieldGroup2, {
|
|
4661
4738
|
children
|
|
4662
4739
|
})
|
|
4663
4740
|
]
|
|
@@ -4672,7 +4749,7 @@ function SettingsSection2({
|
|
|
4672
4749
|
variant: destructive ? "destructive" : "default",
|
|
4673
4750
|
disabled: disabled || pending,
|
|
4674
4751
|
children: [
|
|
4675
|
-
pending && /* @__PURE__ */
|
|
4752
|
+
pending && /* @__PURE__ */ jsx51(Spinner2, {
|
|
4676
4753
|
"data-icon": "inline-start"
|
|
4677
4754
|
}),
|
|
4678
4755
|
saveLabel
|
|
@@ -4685,7 +4762,7 @@ function SettingsSection2({
|
|
|
4685
4762
|
});
|
|
4686
4763
|
}
|
|
4687
4764
|
// src/components/TagInput.tsx
|
|
4688
|
-
import { jsx as
|
|
4765
|
+
import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4689
4766
|
function TagInput2({
|
|
4690
4767
|
label,
|
|
4691
4768
|
options,
|
|
@@ -4711,13 +4788,13 @@ function TagInput2({
|
|
|
4711
4788
|
ref: anchor,
|
|
4712
4789
|
density,
|
|
4713
4790
|
children: [
|
|
4714
|
-
/* @__PURE__ */
|
|
4715
|
-
children: (values) => values.map((item) => /* @__PURE__ */
|
|
4791
|
+
/* @__PURE__ */ jsx52(ComboboxValue2, {
|
|
4792
|
+
children: (values) => values.map((item) => /* @__PURE__ */ jsx52(ComboboxChip2, {
|
|
4716
4793
|
removeLabel: `Remove ${item}`,
|
|
4717
4794
|
children: item
|
|
4718
4795
|
}, item))
|
|
4719
4796
|
}),
|
|
4720
|
-
/* @__PURE__ */
|
|
4797
|
+
/* @__PURE__ */ jsx52(ComboboxChipsInput2, {
|
|
4721
4798
|
"aria-label": label,
|
|
4722
4799
|
placeholder
|
|
4723
4800
|
})
|
|
@@ -4727,13 +4804,13 @@ function TagInput2({
|
|
|
4727
4804
|
anchor,
|
|
4728
4805
|
density,
|
|
4729
4806
|
children: [
|
|
4730
|
-
/* @__PURE__ */
|
|
4807
|
+
/* @__PURE__ */ jsx52(ComboboxEmpty2, {
|
|
4731
4808
|
children: "No matching tags."
|
|
4732
4809
|
}),
|
|
4733
|
-
/* @__PURE__ */
|
|
4734
|
-
children: /* @__PURE__ */
|
|
4735
|
-
children: /* @__PURE__ */
|
|
4736
|
-
children: (item) => /* @__PURE__ */
|
|
4810
|
+
/* @__PURE__ */ jsx52(ComboboxList2, {
|
|
4811
|
+
children: /* @__PURE__ */ jsx52(ComboboxGroup2, {
|
|
4812
|
+
children: /* @__PURE__ */ jsx52(ComboboxCollection2, {
|
|
4813
|
+
children: (item) => /* @__PURE__ */ jsx52(ComboboxItem2, {
|
|
4737
4814
|
value: item,
|
|
4738
4815
|
children: item
|
|
4739
4816
|
}, item)
|
|
@@ -4748,7 +4825,7 @@ function TagInput2({
|
|
|
4748
4825
|
// src/components/FilterChip.tsx
|
|
4749
4826
|
import { useId as useId9 } from "react";
|
|
4750
4827
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
4751
|
-
import { jsx as
|
|
4828
|
+
import { jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4752
4829
|
function FilterChip2({
|
|
4753
4830
|
density,
|
|
4754
4831
|
className,
|
|
@@ -4775,7 +4852,7 @@ function FilterChip2({
|
|
|
4775
4852
|
},
|
|
4776
4853
|
...props,
|
|
4777
4854
|
children: [
|
|
4778
|
-
/* @__PURE__ */
|
|
4855
|
+
/* @__PURE__ */ jsx53("span", {
|
|
4779
4856
|
id: labelId,
|
|
4780
4857
|
"data-slot": "filter-chip-label",
|
|
4781
4858
|
className: "min-w-0 py-1 break-words",
|
|
@@ -4789,7 +4866,7 @@ function FilterChip2({
|
|
|
4789
4866
|
onClick: onClear,
|
|
4790
4867
|
children: [
|
|
4791
4868
|
clearLabel,
|
|
4792
|
-
/* @__PURE__ */
|
|
4869
|
+
/* @__PURE__ */ jsx53(XIcon2, {
|
|
4793
4870
|
"aria-hidden": "true",
|
|
4794
4871
|
"data-icon": "inline-end"
|
|
4795
4872
|
})
|
|
@@ -4799,7 +4876,7 @@ function FilterChip2({
|
|
|
4799
4876
|
});
|
|
4800
4877
|
}
|
|
4801
4878
|
// src/components/FilterBar.tsx
|
|
4802
|
-
import { jsx as
|
|
4879
|
+
import { jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4803
4880
|
function FilterBar2({
|
|
4804
4881
|
label,
|
|
4805
4882
|
search,
|
|
@@ -4816,20 +4893,20 @@ function FilterBar2({
|
|
|
4816
4893
|
"data-density": density,
|
|
4817
4894
|
className: "flex min-w-0 flex-wrap items-center gap-2",
|
|
4818
4895
|
children: [
|
|
4819
|
-
/* @__PURE__ */
|
|
4896
|
+
/* @__PURE__ */ jsx54(Input2, {
|
|
4820
4897
|
"aria-label": `Search ${label}`,
|
|
4821
4898
|
type: "search",
|
|
4822
4899
|
value: search,
|
|
4823
4900
|
onChange: (event) => onSearchChange(event.target.value),
|
|
4824
4901
|
className: "min-w-40 flex-1"
|
|
4825
4902
|
}),
|
|
4826
|
-
filters.map((filter) => /* @__PURE__ */
|
|
4903
|
+
filters.map((filter) => /* @__PURE__ */ jsx54(OptionSelect2, {
|
|
4827
4904
|
"aria-label": filter.label,
|
|
4828
4905
|
value: value[filter.id] ?? "",
|
|
4829
4906
|
onValueChange: (next) => onValueChange({ ...value, [filter.id]: next }),
|
|
4830
4907
|
options: [{ value: "", label: filter.allLabel ?? `All ${filter.label.toLowerCase()}` }, ...filter.options]
|
|
4831
4908
|
}, filter.id)),
|
|
4832
|
-
/* @__PURE__ */
|
|
4909
|
+
/* @__PURE__ */ jsx54(Button2, {
|
|
4833
4910
|
type: "button",
|
|
4834
4911
|
variant: "ghost",
|
|
4835
4912
|
disabled: !search && !Object.values(value).some(Boolean),
|
|
@@ -4843,7 +4920,7 @@ function FilterBar2({
|
|
|
4843
4920
|
});
|
|
4844
4921
|
}
|
|
4845
4922
|
// src/components/BarList.tsx
|
|
4846
|
-
import { jsx as
|
|
4923
|
+
import { jsx as jsx55, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4847
4924
|
function BarList2({
|
|
4848
4925
|
label,
|
|
4849
4926
|
items,
|
|
@@ -4856,9 +4933,9 @@ function BarList2({
|
|
|
4856
4933
|
"aria-label": label,
|
|
4857
4934
|
"data-density": density,
|
|
4858
4935
|
children: [
|
|
4859
|
-
/* @__PURE__ */
|
|
4936
|
+
/* @__PURE__ */ jsx55("ul", {
|
|
4860
4937
|
className: "grid gap-3",
|
|
4861
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4938
|
+
children: items.map((item) => /* @__PURE__ */ jsx55("li", {
|
|
4862
4939
|
children: /* @__PURE__ */ jsxs38(Meter2, {
|
|
4863
4940
|
min: 0,
|
|
4864
4941
|
max,
|
|
@@ -4870,8 +4947,8 @@ function BarList2({
|
|
|
4870
4947
|
/* @__PURE__ */ jsxs38("div", {
|
|
4871
4948
|
className: "flex w-full items-center justify-between gap-3 text-sm",
|
|
4872
4949
|
children: [
|
|
4873
|
-
/* @__PURE__ */
|
|
4874
|
-
children: onItemSelect ? /* @__PURE__ */
|
|
4950
|
+
/* @__PURE__ */ jsx55(MeterLabel2, {
|
|
4951
|
+
children: onItemSelect ? /* @__PURE__ */ jsx55(Button2, {
|
|
4875
4952
|
type: "button",
|
|
4876
4953
|
variant: "link",
|
|
4877
4954
|
className: "h-auto p-0",
|
|
@@ -4879,19 +4956,19 @@ function BarList2({
|
|
|
4879
4956
|
children: item.label
|
|
4880
4957
|
}) : item.label
|
|
4881
4958
|
}),
|
|
4882
|
-
/* @__PURE__ */
|
|
4959
|
+
/* @__PURE__ */ jsx55(MeterValue2, {
|
|
4883
4960
|
children: () => valueFormatter(item.value)
|
|
4884
4961
|
})
|
|
4885
4962
|
]
|
|
4886
4963
|
}),
|
|
4887
|
-
/* @__PURE__ */
|
|
4888
|
-
children: /* @__PURE__ */
|
|
4964
|
+
/* @__PURE__ */ jsx55(MeterTrack2, {
|
|
4965
|
+
children: /* @__PURE__ */ jsx55(MeterIndicator2, {})
|
|
4889
4966
|
})
|
|
4890
4967
|
]
|
|
4891
4968
|
})
|
|
4892
4969
|
}, item.id))
|
|
4893
4970
|
}),
|
|
4894
|
-
!items.length && /* @__PURE__ */
|
|
4971
|
+
!items.length && /* @__PURE__ */ jsx55("p", {
|
|
4895
4972
|
role: "status",
|
|
4896
4973
|
className: "text-sm text-muted-foreground",
|
|
4897
4974
|
children: "No data available."
|
|
@@ -4900,18 +4977,18 @@ function BarList2({
|
|
|
4900
4977
|
});
|
|
4901
4978
|
}
|
|
4902
4979
|
// src/components/StatusTracker.tsx
|
|
4903
|
-
import { jsx as
|
|
4980
|
+
import { jsx as jsx56, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4904
4981
|
var statusClasses = { success: "bg-success", warning: "bg-warning", error: "bg-destructive", unknown: "bg-muted" };
|
|
4905
4982
|
function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
4906
|
-
return /* @__PURE__ */
|
|
4907
|
-
children: /* @__PURE__ */
|
|
4983
|
+
return /* @__PURE__ */ jsx56(TooltipProvider2, {
|
|
4984
|
+
children: /* @__PURE__ */ jsx56("div", {
|
|
4908
4985
|
role: "group",
|
|
4909
4986
|
"aria-label": label,
|
|
4910
4987
|
"data-density": density,
|
|
4911
4988
|
className: "flex min-w-0 gap-1",
|
|
4912
4989
|
children: items.map((item) => /* @__PURE__ */ jsxs39(Tooltip2, {
|
|
4913
4990
|
children: [
|
|
4914
|
-
/* @__PURE__ */
|
|
4991
|
+
/* @__PURE__ */ jsx56(TooltipTrigger2, {
|
|
4915
4992
|
"aria-label": `${item.label}: ${item.status}`,
|
|
4916
4993
|
onClick: () => onItemSelect?.(item),
|
|
4917
4994
|
className: cn2("h-8 min-w-2 flex-1 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", statusClasses[item.status])
|
|
@@ -4929,7 +5006,7 @@ function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
|
4929
5006
|
});
|
|
4930
5007
|
}
|
|
4931
5008
|
// src/components/DashboardLayout.tsx
|
|
4932
|
-
import { jsx as
|
|
5009
|
+
import { jsx as jsx57, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
4933
5010
|
function DashboardLayout2({
|
|
4934
5011
|
title,
|
|
4935
5012
|
description,
|
|
@@ -4945,19 +5022,19 @@ function DashboardLayout2({
|
|
|
4945
5022
|
"data-scroll": "none",
|
|
4946
5023
|
className: "grid min-w-0 gap-6",
|
|
4947
5024
|
children: [
|
|
4948
|
-
/* @__PURE__ */
|
|
5025
|
+
/* @__PURE__ */ jsx57(PageHeader2, {
|
|
4949
5026
|
title,
|
|
4950
5027
|
description,
|
|
4951
5028
|
actions
|
|
4952
5029
|
}),
|
|
4953
5030
|
filters,
|
|
4954
|
-
stats.length > 0 && /* @__PURE__ */
|
|
5031
|
+
stats.length > 0 && /* @__PURE__ */ jsx57("div", {
|
|
4955
5032
|
className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-4",
|
|
4956
|
-
children: stats.map(({ id, ...stat }) => /* @__PURE__ */
|
|
5033
|
+
children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx57(StatCard2, {
|
|
4957
5034
|
...stat
|
|
4958
5035
|
}, id))
|
|
4959
5036
|
}),
|
|
4960
|
-
/* @__PURE__ */
|
|
5037
|
+
/* @__PURE__ */ jsx57("div", {
|
|
4961
5038
|
className: "grid min-w-0 gap-4",
|
|
4962
5039
|
children
|
|
4963
5040
|
}),
|
|
@@ -4966,7 +5043,7 @@ function DashboardLayout2({
|
|
|
4966
5043
|
});
|
|
4967
5044
|
}
|
|
4968
5045
|
// src/components/BillingUsage.tsx
|
|
4969
|
-
import { jsx as
|
|
5046
|
+
import { jsx as jsx58, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
4970
5047
|
function BillingUsage2({ plan, price, period, metrics, onManage, pending, density }) {
|
|
4971
5048
|
return /* @__PURE__ */ jsxs41(Card2, {
|
|
4972
5049
|
density,
|
|
@@ -4974,7 +5051,7 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4974
5051
|
children: [
|
|
4975
5052
|
/* @__PURE__ */ jsxs41(CardHeader2, {
|
|
4976
5053
|
children: [
|
|
4977
|
-
/* @__PURE__ */
|
|
5054
|
+
/* @__PURE__ */ jsx58(CardTitle2, {
|
|
4978
5055
|
children: plan
|
|
4979
5056
|
}),
|
|
4980
5057
|
/* @__PURE__ */ jsxs41(CardDescription2, {
|
|
@@ -4986,7 +5063,7 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4986
5063
|
})
|
|
4987
5064
|
]
|
|
4988
5065
|
}),
|
|
4989
|
-
/* @__PURE__ */
|
|
5066
|
+
/* @__PURE__ */ jsx58(CardContent2, {
|
|
4990
5067
|
className: "grid gap-4",
|
|
4991
5068
|
children: metrics.map((metric) => /* @__PURE__ */ jsxs41(Meter2, {
|
|
4992
5069
|
value: metric.used,
|
|
@@ -4996,22 +5073,22 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4996
5073
|
/* @__PURE__ */ jsxs41("div", {
|
|
4997
5074
|
className: "mb-2 flex items-center justify-between gap-3 text-sm",
|
|
4998
5075
|
children: [
|
|
4999
|
-
/* @__PURE__ */
|
|
5076
|
+
/* @__PURE__ */ jsx58(MeterLabel2, {
|
|
5000
5077
|
children: metric.label
|
|
5001
5078
|
}),
|
|
5002
|
-
/* @__PURE__ */
|
|
5079
|
+
/* @__PURE__ */ jsx58(MeterValue2, {
|
|
5003
5080
|
children: () => `${metric.used.toLocaleString()} / ${metric.limit.toLocaleString()}${metric.unit ? ` ${metric.unit}` : ""}`
|
|
5004
5081
|
})
|
|
5005
5082
|
]
|
|
5006
5083
|
}),
|
|
5007
|
-
/* @__PURE__ */
|
|
5008
|
-
children: /* @__PURE__ */
|
|
5084
|
+
/* @__PURE__ */ jsx58(MeterTrack2, {
|
|
5085
|
+
children: /* @__PURE__ */ jsx58(MeterIndicator2, {})
|
|
5009
5086
|
})
|
|
5010
5087
|
]
|
|
5011
5088
|
}, metric.id))
|
|
5012
5089
|
}),
|
|
5013
|
-
/* @__PURE__ */
|
|
5014
|
-
children: /* @__PURE__ */
|
|
5090
|
+
/* @__PURE__ */ jsx58(CardFooter2, {
|
|
5091
|
+
children: /* @__PURE__ */ jsx58(Button2, {
|
|
5015
5092
|
type: "button",
|
|
5016
5093
|
variant: "outline",
|
|
5017
5094
|
onClick: onManage,
|
|
@@ -5022,4 +5099,4 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
5022
5099
|
]
|
|
5023
5100
|
});
|
|
5024
5101
|
}
|
|
5025
|
-
export { ButtonLink2, ContextMenu2, ContextMenuPortal2, ContextMenuTrigger2, ContextMenuContent2, ActionsMenu2, ActionsMenuTrigger2, ActionsMenuContextTarget2, ActionsMenuContextContent2, FormDialog2, Accordion2, AccordionItem2, AccordionTrigger2, AccordionContent2, OptionCardGroup2, OptionCard2, EmptyState3, PageMessage2, ActionBar2, ActionBarRow2, ErrorSummary2, ErrorSummaryItem2, Outline2, OutlineSection2, OutlineItem2, formatDataLabel2, DataViewer2, JsonViewer2, AlertDialog2, AlertDialogTrigger2, AlertDialogPortal2, AlertDialogOverlay2, AlertDialogContent2, AlertDialogHeader2, AlertDialogFooter2, AlertDialogMedia2, AlertDialogTitle2, AlertDialogDescription2, AlertDialogAction2, AlertDialogCancel2, DensityProvider2, collectLayoutViolations2, LayoutGuard2, ScrollGuard2, ThemeProvider2, AspectRatio2, Breadcrumb2, BreadcrumbList2, BreadcrumbItem2, BreadcrumbLink2, BreadcrumbPage2, BreadcrumbSeparator2, BreadcrumbEllipsis2, buttonGroupVariants2, ButtonGroup2, ButtonGroupText2, ButtonGroupSeparator2, DescriptionList2, DescriptionListItem2, DescriptionTerm2, DescriptionDetails2, ItemGroup2, ItemSeparator2, Item2, ItemMedia2, ItemContent2, ItemTitle2, ItemDescription2, ItemActions2, ItemHeader2, ItemFooter2, Pagination2, PaginationContent2, PaginationItem2, PaginationLink2, PaginationPrevious2, PaginationNext2, PaginationEllipsis2, Menubar2, MenubarMenu2, MenubarGroup2, MenubarPortal2, MenubarTrigger2, MenubarContent2, MenubarItem2, MenubarCheckboxItem2, MenubarRadioGroup2, MenubarRadioItem2, MenubarLabel2, MenubarSeparator2, MenubarShortcut2, MenubarSub2, MenubarSubTrigger2, MenubarSubContent2, NavigationMenu2, NavigationMenuList2, NavigationMenuItem2, navigationMenuTriggerStyle2, NavigationMenuTrigger2, NavigationMenuContent2, NavigationMenuPositioner2, NavigationMenuLink2, NavigationMenuIndicator2, ToastProvider2, ToastPortal2, ToastViewport2, Toast2, ToastContent2, ToastTitle2, ToastDescription2, ToastAction2, ToastClose2, ToastToaster2, createToastManager2, useToastManager2, markerVariants2, Marker2, MarkerIcon2, MarkerContent2, BubbleGroup2, Bubble2, BubbleContent2, BubbleReactions2, MessageGroup2, Message2, MessageAvatar2, MessageContent2, MessageHeader2, MessageFooter2, MessageThread2, MessageThreadSummary2, MessageThreadReplies2, Attachment2, AttachmentMedia2, AttachmentContent2, AttachmentTitle2, AttachmentDescription2, AttachmentActions2, AttachmentAction2, AttachmentTrigger2, AttachmentGroup2, InlineEdit2, StarRating2, ReviewList2, ChoiceTable2, ConfirmationDialog2, ImagePicker2, Meter2, MeterLabel2, MeterValue2, MeterTrack2, MeterIndicator2, ToolbarToggleChip2, Stepper2, StepperList2, StepperTrigger2, StepperIndicator2, StepperContent2, AppShell2, Stack2, Grid2, GridItem2, Container2, Text2, Heading2, WeatherSummary2, WeatherForecast2, PageHeader2, PanelHeader2, PageIntro2, WorkspaceSwitcher2, AccountMenu2, StatCard2, AuthForm2, SettingsSection2, TagInput2, FilterChip2, FilterBar2, BarList2, StatusTracker2, DashboardLayout2, BillingUsage2 };
|
|
5102
|
+
export { ButtonLink2, ContextMenu2, ContextMenuPortal2, ContextMenuTrigger2, ContextMenuContent2, ActionsMenu2, ActionsMenuTrigger2, ActionsMenuContextTarget2, ActionsMenuContextContent2, FormDialog2, Accordion2, AccordionItem2, AccordionTrigger2, AccordionContent2, OptionCardGroup2, OptionCard2, EmptyState3, PageMessage2, ActionBar2, ActionBarRow2, ErrorSummary2, ErrorSummaryItem2, Outline2, OutlineSection2, OutlineItem2, formatDataLabel2, DataViewer2, JsonViewer2, AlertDialog2, AlertDialogTrigger2, AlertDialogPortal2, AlertDialogOverlay2, AlertDialogContent2, AlertDialogHeader2, AlertDialogFooter2, AlertDialogMedia2, AlertDialogTitle2, AlertDialogDescription2, AlertDialogAction2, AlertDialogCancel2, DensityProvider2, collectLayoutViolations2, LayoutGuard2, ScrollGuard2, ThemeProvider2, AspectRatio2, Breadcrumb2, BreadcrumbList2, BreadcrumbItem2, BreadcrumbLink2, BreadcrumbPage2, BreadcrumbSeparator2, BreadcrumbEllipsis2, buttonGroupVariants2, ButtonGroup2, ButtonGroupText2, ButtonGroupSeparator2, DescriptionList2, DescriptionListItem2, DescriptionTerm2, DescriptionDetails2, ItemGroup2, ItemSeparator2, Item2, ItemMedia2, ItemContent2, ItemTitle2, ItemDescription2, ItemActions2, ItemHeader2, ItemFooter2, Pagination2, PaginationContent2, PaginationItem2, PaginationLink2, PaginationPrevious2, PaginationNext2, PaginationEllipsis2, Menubar2, MenubarMenu2, MenubarGroup2, MenubarPortal2, MenubarTrigger2, MenubarContent2, MenubarItem2, MenubarCheckboxItem2, MenubarRadioGroup2, MenubarRadioItem2, MenubarLabel2, MenubarSeparator2, MenubarShortcut2, MenubarSub2, MenubarSubTrigger2, MenubarSubContent2, NavigationMenu2, NavigationMenuList2, NavigationMenuItem2, navigationMenuTriggerStyle2, NavigationMenuTrigger2, NavigationMenuContent2, NavigationMenuPositioner2, NavigationMenuLink2, NavigationMenuIndicator2, ToastProvider2, ToastPortal2, ToastViewport2, Toast2, ToastContent2, ToastTitle2, ToastDescription2, ToastAction2, ToastClose2, ToastToaster2, createToastManager2, useToastManager2, markerVariants2, Marker2, MarkerIcon2, MarkerContent2, BubbleGroup2, Bubble2, BubbleContent2, BubbleReactions2, MessageGroup2, Message2, MessageAvatar2, MessageContent2, MessageHeader2, MessageFooter2, MessageThread2, MessageThreadSummary2, MessageThreadReplies2, Attachment2, AttachmentMedia2, AttachmentContent2, AttachmentTitle2, AttachmentDescription2, AttachmentActions2, AttachmentAction2, AttachmentTrigger2, AttachmentGroup2, InlineEdit2, StarRating2, ReviewList2, ChoiceTable2, ConfirmationDialog2, ImagePicker2, Meter2, MeterLabel2, MeterValue2, MeterTrack2, MeterIndicator2, ToolbarToggleChip2, Stepper2, StepperList2, StepperTrigger2, StepperIndicator2, StepperContent2, AppShell2, Stack2, Grid2, GridItem2, Container2, Text2, Heading2, quoteVariants2, Quote2, SkipLink2, WeatherSummary2, WeatherForecast2, PageHeader2, PanelHeader2, PageIntro2, WorkspaceSwitcher2, AccountMenu2, StatCard2, AuthForm2, SettingsSection2, TagInput2, FilterChip2, FilterBar2, BarList2, StatusTracker2, DashboardLayout2, BillingUsage2 };
|