@ai-matrx/design-system 0.13.0 → 0.14.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/dist/index.js CHANGED
@@ -35,6 +35,16 @@ function ChevronLeftIcon(props) {
35
35
  function ChevronRightIcon(props) {
36
36
  return /* @__PURE__ */ jsx("svg", { ...lucideProps(props), children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" }) });
37
37
  }
38
+ function ChevronDownIcon(props) {
39
+ return /* @__PURE__ */ jsx("svg", { ...lucideProps(props), children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" }) });
40
+ }
41
+ function ArchiveIcon(props) {
42
+ return /* @__PURE__ */ jsxs("svg", { ...lucideProps(props), children: [
43
+ /* @__PURE__ */ jsx("rect", { width: "20", height: "5", x: "2", y: "3", rx: "1" }),
44
+ /* @__PURE__ */ jsx("path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8" }),
45
+ /* @__PURE__ */ jsx("path", { d: "M10 12h4" })
46
+ ] });
47
+ }
38
48
  function MoreHorizontalIcon(props) {
39
49
  return /* @__PURE__ */ jsxs("svg", { ...lucideProps(props), children: [
40
50
  /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "1" }),
@@ -2915,11 +2925,15 @@ import * as React24 from "react";
2915
2925
  import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
2916
2926
  var ARCHIVE_FILTER_VALUES = ["active", "archived", "all"];
2917
2927
  var DEFAULT_ARCHIVE_FILTER = "active";
2928
+ var ARCHIVE_LABEL = "Archived";
2918
2929
  var ARCHIVE_FILTER_LABELS = {
2919
2930
  active: "Active only",
2920
- archived: "Archived only",
2931
+ archived: `${ARCHIVE_LABEL} only`,
2921
2932
  all: "Active + archived"
2922
2933
  };
2934
+ function archiveFilterFromDisclosure(open) {
2935
+ return open ? "all" : DEFAULT_ARCHIVE_FILTER;
2936
+ }
2923
2937
  function toArchiveFilter(value, fallback = DEFAULT_ARCHIVE_FILTER) {
2924
2938
  return ARCHIVE_FILTER_VALUES.includes(value) ? value : fallback;
2925
2939
  }
@@ -2959,11 +2973,45 @@ function ArchiveFilter({
2959
2973
  ) });
2960
2974
  }
2961
2975
 
2976
+ // src/archived-disclosure.tsx
2977
+ import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
2978
+ function ArchivedDisclosure({
2979
+ count,
2980
+ open,
2981
+ onOpenChange,
2982
+ children,
2983
+ label = ARCHIVE_LABEL,
2984
+ countLabel,
2985
+ keepWhileOpen = false,
2986
+ className,
2987
+ contentClassName
2988
+ }) {
2989
+ if (count <= 0 && !(open && keepWhileOpen)) return null;
2990
+ const parenthetical = countLabel === void 0 ? String(count) : countLabel;
2991
+ return /* @__PURE__ */ jsxs18("div", { className: cn("min-w-0", className), children: [
2992
+ /* @__PURE__ */ jsxs18(
2993
+ "button",
2994
+ {
2995
+ type: "button",
2996
+ onClick: () => onOpenChange(!open),
2997
+ "aria-expanded": open,
2998
+ className: "flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-muted-foreground hover:bg-accent active:bg-accent",
2999
+ children: [
3000
+ open ? /* @__PURE__ */ jsx32(ChevronDownIcon, { className: "h-4 w-4 shrink-0" }) : /* @__PURE__ */ jsx32(ChevronRightIcon, { className: "h-4 w-4 shrink-0" }),
3001
+ /* @__PURE__ */ jsx32(ArchiveIcon, { className: "h-4 w-4 shrink-0" }),
3002
+ /* @__PURE__ */ jsx32("span", { className: "truncate", children: parenthetical === null ? label : `${label} (${parenthetical})` })
3003
+ ]
3004
+ }
3005
+ ),
3006
+ open && children ? /* @__PURE__ */ jsx32("div", { className: cn("mt-1", contentClassName), children }) : null
3007
+ ] });
3008
+ }
3009
+
2962
3010
  // src/select.tsx
2963
3011
  import * as SelectPrimitive from "@radix-ui/react-select";
2964
3012
  import { cva as cva4 } from "class-variance-authority";
2965
3013
  import * as React25 from "react";
2966
- import { jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
3014
+ import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
2967
3015
  var Select = SelectPrimitive.Root;
2968
3016
  var SelectGroup = SelectPrimitive.Group;
2969
3017
  var SelectValue = SelectPrimitive.Value;
@@ -2982,7 +3030,7 @@ var selectTriggerVariants = cva4(
2982
3030
  }
2983
3031
  }
2984
3032
  );
2985
- var SelectTrigger = React25.forwardRef(({ className, children, hideArrow = false, size, ...props }, ref) => /* @__PURE__ */ jsxs18(
3033
+ var SelectTrigger = React25.forwardRef(({ className, children, hideArrow = false, size, ...props }, ref) => /* @__PURE__ */ jsxs19(
2986
3034
  SelectPrimitive.Trigger,
2987
3035
  {
2988
3036
  ref,
@@ -2990,12 +3038,12 @@ var SelectTrigger = React25.forwardRef(({ className, children, hideArrow = false
2990
3038
  ...props,
2991
3039
  children: [
2992
3040
  children,
2993
- !hideArrow && /* @__PURE__ */ jsx32(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx32(RadixChevronDownIcon, { className: "h-4 w-4 opacity-50" }) })
3041
+ !hideArrow && /* @__PURE__ */ jsx33(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx33(RadixChevronDownIcon, { className: "h-4 w-4 opacity-50" }) })
2994
3042
  ]
2995
3043
  }
2996
3044
  ));
2997
3045
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
2998
- var SelectScrollUpButton = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
3046
+ var SelectScrollUpButton = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
2999
3047
  SelectPrimitive.ScrollUpButton,
3000
3048
  {
3001
3049
  ref,
@@ -3004,11 +3052,11 @@ var SelectScrollUpButton = React25.forwardRef(({ className, ...props }, ref) =>
3004
3052
  className
3005
3053
  ),
3006
3054
  ...props,
3007
- children: /* @__PURE__ */ jsx32(RadixChevronUpIcon, {})
3055
+ children: /* @__PURE__ */ jsx33(RadixChevronUpIcon, {})
3008
3056
  }
3009
3057
  ));
3010
3058
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
3011
- var SelectScrollDownButton = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
3059
+ var SelectScrollDownButton = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
3012
3060
  SelectPrimitive.ScrollDownButton,
3013
3061
  {
3014
3062
  ref,
@@ -3017,7 +3065,7 @@ var SelectScrollDownButton = React25.forwardRef(({ className, ...props }, ref) =
3017
3065
  className
3018
3066
  ),
3019
3067
  ...props,
3020
- children: /* @__PURE__ */ jsx32(RadixChevronDownIcon, {})
3068
+ children: /* @__PURE__ */ jsx33(RadixChevronDownIcon, {})
3021
3069
  }
3022
3070
  ));
3023
3071
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
@@ -3031,7 +3079,7 @@ var SelectContent = React25.forwardRef(
3031
3079
  ...props
3032
3080
  }, ref) => {
3033
3081
  const portalContainer = usePortalContainer(container);
3034
- return /* @__PURE__ */ jsx32(SelectPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ jsxs18(
3082
+ return /* @__PURE__ */ jsx33(SelectPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ jsxs19(
3035
3083
  SelectPrimitive.Content,
3036
3084
  {
3037
3085
  ref,
@@ -3049,8 +3097,8 @@ var SelectContent = React25.forwardRef(
3049
3097
  position,
3050
3098
  ...props,
3051
3099
  children: [
3052
- /* @__PURE__ */ jsx32(SelectScrollUpButton, {}),
3053
- /* @__PURE__ */ jsx32(
3100
+ /* @__PURE__ */ jsx33(SelectScrollUpButton, {}),
3101
+ /* @__PURE__ */ jsx33(
3054
3102
  SelectPrimitive.Viewport,
3055
3103
  {
3056
3104
  className: cn(
@@ -3060,14 +3108,14 @@ var SelectContent = React25.forwardRef(
3060
3108
  children
3061
3109
  }
3062
3110
  ),
3063
- /* @__PURE__ */ jsx32(SelectScrollDownButton, {})
3111
+ /* @__PURE__ */ jsx33(SelectScrollDownButton, {})
3064
3112
  ]
3065
3113
  }
3066
3114
  ) });
3067
3115
  }
3068
3116
  );
3069
3117
  SelectContent.displayName = SelectPrimitive.Content.displayName;
3070
- var SelectLabel = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
3118
+ var SelectLabel = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
3071
3119
  SelectPrimitive.Label,
3072
3120
  {
3073
3121
  ref,
@@ -3076,7 +3124,7 @@ var SelectLabel = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
3076
3124
  }
3077
3125
  ));
3078
3126
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
3079
- var SelectItem = React25.forwardRef(({ className, children, description, ...props }, ref) => /* @__PURE__ */ jsxs18(
3127
+ var SelectItem = React25.forwardRef(({ className, children, description, ...props }, ref) => /* @__PURE__ */ jsxs19(
3080
3128
  SelectPrimitive.Item,
3081
3129
  {
3082
3130
  ref,
@@ -3087,14 +3135,14 @@ var SelectItem = React25.forwardRef(({ className, children, description, ...prop
3087
3135
  ),
3088
3136
  ...props,
3089
3137
  children: [
3090
- /* @__PURE__ */ jsx32("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx32(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx32(CheckIcon, { className: "h-4 w-4" }) }) }),
3091
- /* @__PURE__ */ jsx32(SelectPrimitive.ItemText, { children }),
3092
- description ? /* @__PURE__ */ jsx32("span", { className: "block text-xs leading-snug text-muted-foreground", children: description }) : null
3138
+ /* @__PURE__ */ jsx33("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx33(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx33(CheckIcon, { className: "h-4 w-4" }) }) }),
3139
+ /* @__PURE__ */ jsx33(SelectPrimitive.ItemText, { children }),
3140
+ description ? /* @__PURE__ */ jsx33("span", { className: "block text-xs leading-snug text-muted-foreground", children: description }) : null
3093
3141
  ]
3094
3142
  }
3095
3143
  ));
3096
3144
  SelectItem.displayName = SelectPrimitive.Item.displayName;
3097
- var SelectSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
3145
+ var SelectSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
3098
3146
  SelectPrimitive.Separator,
3099
3147
  {
3100
3148
  ref,
@@ -3107,8 +3155,8 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
3107
3155
  // src/separator.tsx
3108
3156
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
3109
3157
  import * as React26 from "react";
3110
- import { jsx as jsx33 } from "react/jsx-runtime";
3111
- var Separator4 = React26.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx33(
3158
+ import { jsx as jsx34 } from "react/jsx-runtime";
3159
+ var Separator4 = React26.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx34(
3112
3160
  SeparatorPrimitive.Root,
3113
3161
  {
3114
3162
  ref,
@@ -3129,10 +3177,10 @@ import * as SheetPrimitive from "@radix-ui/react-dialog";
3129
3177
  import { treeContainsComponent as treeContainsComponent4 } from "@ai-matrx/kit/react-tree";
3130
3178
  import { cva as cva5 } from "class-variance-authority";
3131
3179
  import * as React27 from "react";
3132
- import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
3180
+ import { jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
3133
3181
  var SheetContentBase = React27.forwardRef(({ ...props }, ref) => {
3134
3182
  const isModal = useRadixDialogModal();
3135
- return /* @__PURE__ */ jsx34(
3183
+ return /* @__PURE__ */ jsx35(
3136
3184
  SheetPrimitive.Content,
3137
3185
  {
3138
3186
  ...props,
@@ -3144,13 +3192,13 @@ var SheetContentBase = React27.forwardRef(({ ...props }, ref) => {
3144
3192
  SheetContentBase.displayName = "SheetContentBase";
3145
3193
  var Sheet = React27.forwardRef(({ children, ...props }, _ref) => {
3146
3194
  const modal = props.modal ?? true;
3147
- return /* @__PURE__ */ jsx34(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ jsx34(SheetPrimitive.Root, { ...props, modal, children }) });
3195
+ return /* @__PURE__ */ jsx35(RadixDialogModalProvider, { modal, children: /* @__PURE__ */ jsx35(SheetPrimitive.Root, { ...props, modal, children }) });
3148
3196
  });
3149
3197
  Sheet.displayName = "Sheet";
3150
3198
  var SheetTrigger = SheetPrimitive.Trigger;
3151
3199
  var SheetClose = SheetPrimitive.Close;
3152
3200
  var SheetPortal = SheetPrimitive.Portal;
3153
- var SheetOverlay = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
3201
+ var SheetOverlay = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
3154
3202
  SheetPrimitive.Overlay,
3155
3203
  {
3156
3204
  className: cn(
@@ -3187,7 +3235,7 @@ var sheetVariants = cva5(
3187
3235
  }
3188
3236
  }
3189
3237
  );
3190
- var SheetDescription = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
3238
+ var SheetDescription = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
3191
3239
  SheetPrimitive.Description,
3192
3240
  {
3193
3241
  ref,
@@ -3208,9 +3256,9 @@ var SheetContent = React27.forwardRef(
3208
3256
  ...props
3209
3257
  }, ref) => {
3210
3258
  const hasDescription = treeContainsComponent4(children, SheetDescription) || treeContainsComponent4(children, SheetPrimitive.Description);
3211
- return /* @__PURE__ */ jsxs19(SheetPortal, { children: [
3212
- !hideOverlay && /* @__PURE__ */ jsx34(SheetOverlay, { className: overlayClassName }),
3213
- /* @__PURE__ */ jsxs19(
3259
+ return /* @__PURE__ */ jsxs20(SheetPortal, { children: [
3260
+ !hideOverlay && /* @__PURE__ */ jsx35(SheetOverlay, { className: overlayClassName }),
3261
+ /* @__PURE__ */ jsxs20(
3214
3262
  SheetContentBase,
3215
3263
  {
3216
3264
  ref,
@@ -3222,9 +3270,9 @@ var SheetContent = React27.forwardRef(
3222
3270
  ...hasDescription ? {} : { "aria-describedby": void 0 },
3223
3271
  ...props,
3224
3272
  children: [
3225
- !hideCloseButton && /* @__PURE__ */ jsxs19(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
3226
- /* @__PURE__ */ jsx34(Cross2Icon, { className: "h-4 w-4" }),
3227
- /* @__PURE__ */ jsx34("span", { className: "sr-only", children: "Close" })
3273
+ !hideCloseButton && /* @__PURE__ */ jsxs20(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
3274
+ /* @__PURE__ */ jsx35(Cross2Icon, { className: "h-4 w-4" }),
3275
+ /* @__PURE__ */ jsx35("span", { className: "sr-only", children: "Close" })
3228
3276
  ] }),
3229
3277
  children
3230
3278
  ]
@@ -3237,7 +3285,7 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
3237
3285
  var SheetHeader = ({
3238
3286
  className,
3239
3287
  ...props
3240
- }) => /* @__PURE__ */ jsx34(
3288
+ }) => /* @__PURE__ */ jsx35(
3241
3289
  "div",
3242
3290
  {
3243
3291
  className: cn(
@@ -3251,7 +3299,7 @@ SheetHeader.displayName = "SheetHeader";
3251
3299
  var SheetFooter = ({
3252
3300
  className,
3253
3301
  ...props
3254
- }) => /* @__PURE__ */ jsx34(
3302
+ }) => /* @__PURE__ */ jsx35(
3255
3303
  "div",
3256
3304
  {
3257
3305
  "data-slot": "sheet-footer",
@@ -3263,7 +3311,7 @@ var SheetFooter = ({
3263
3311
  }
3264
3312
  );
3265
3313
  SheetFooter.displayName = "SheetFooter";
3266
- var SheetTitle = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
3314
+ var SheetTitle = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
3267
3315
  SheetPrimitive.Title,
3268
3316
  {
3269
3317
  ref,
@@ -3274,9 +3322,9 @@ var SheetTitle = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE
3274
3322
  SheetTitle.displayName = SheetPrimitive.Title.displayName;
3275
3323
 
3276
3324
  // src/skeleton.tsx
3277
- import { jsx as jsx35 } from "react/jsx-runtime";
3325
+ import { jsx as jsx36 } from "react/jsx-runtime";
3278
3326
  function Skeleton({ className, animated = true, ...props }) {
3279
- return /* @__PURE__ */ jsx35(
3327
+ return /* @__PURE__ */ jsx36(
3280
3328
  "div",
3281
3329
  {
3282
3330
  "data-slot": "skeleton",
@@ -3293,7 +3341,7 @@ function Skeleton({ className, animated = true, ...props }) {
3293
3341
  // src/switch.tsx
3294
3342
  import * as SwitchPrimitives from "@radix-ui/react-switch";
3295
3343
  import * as React28 from "react";
3296
- import { jsx as jsx36 } from "react/jsx-runtime";
3344
+ import { jsx as jsx37 } from "react/jsx-runtime";
3297
3345
  var SWITCH_SIZES = {
3298
3346
  sm: {
3299
3347
  root: "h-4 w-9 border-border data-[state=unchecked]:bg-input",
@@ -3304,7 +3352,7 @@ var SWITCH_SIZES = {
3304
3352
  thumb: "h-4 w-4 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
3305
3353
  }
3306
3354
  };
3307
- var Switch = React28.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ jsx36(
3355
+ var Switch = React28.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ jsx37(
3308
3356
  SwitchPrimitives.Root,
3309
3357
  {
3310
3358
  ref,
@@ -3315,7 +3363,7 @@ var Switch = React28.forwardRef(({ className, size = "md", ...props }, ref) => /
3315
3363
  className
3316
3364
  ),
3317
3365
  ...props,
3318
- children: /* @__PURE__ */ jsx36(
3366
+ children: /* @__PURE__ */ jsx37(
3319
3367
  SwitchPrimitives.Thumb,
3320
3368
  {
3321
3369
  "data-slot": "switch-thumb",
@@ -3330,14 +3378,14 @@ var Switch = React28.forwardRef(({ className, size = "md", ...props }, ref) => /
3330
3378
  Switch.displayName = SwitchPrimitives.Root.displayName;
3331
3379
 
3332
3380
  // src/organization-picker.tsx
3333
- import { Fragment as Fragment2, jsx as jsx37, jsxs as jsxs20 } from "react/jsx-runtime";
3381
+ import { Fragment as Fragment2, jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
3334
3382
  function OrganizationAbbreviation({
3335
3383
  abbreviation,
3336
3384
  name,
3337
3385
  className
3338
3386
  }) {
3339
3387
  const mark = abbreviation && abbreviation.trim() || name.trim().slice(0, 1) || "?";
3340
- return /* @__PURE__ */ jsx37(
3388
+ return /* @__PURE__ */ jsx38(
3341
3389
  "span",
3342
3390
  {
3343
3391
  className: cn(
@@ -3364,20 +3412,20 @@ function OrganizationPicker({
3364
3412
  }) {
3365
3413
  const active = organizations.find((o) => o.id === activeOrganizationId) ?? null;
3366
3414
  const isDefault = (id) => !!defaultOrganizationId && id === defaultOrganizationId;
3367
- return /* @__PURE__ */ jsxs20("div", { className: cn("flex flex-col", className), "data-slot": "organization-picker", children: [
3368
- !hideHeading && /* @__PURE__ */ jsx37("p", { className: "px-2 py-1.5 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: "Organization" }),
3369
- loading ? /* @__PURE__ */ jsxs20("div", { className: "space-y-1 px-1 py-1", "aria-busy": "true", "aria-label": "Loading organizations", children: [
3370
- /* @__PURE__ */ jsx37(Skeleton, { className: "h-7 rounded-md" }),
3371
- /* @__PURE__ */ jsx37(Skeleton, { className: "h-7 rounded-md" })
3372
- ] }) : loadFailed ? /* @__PURE__ */ jsx37("p", { className: "px-2 py-2 text-xs text-destructive", role: "alert", children: "Could not load organizations." }) : organizations.length === 0 ? /* @__PURE__ */ jsx37("p", { className: "px-2 py-2 text-xs text-muted-foreground", children: "Your account is not a member of any organization. Ask an administrator to add you to one." }) : /* @__PURE__ */ jsxs20(Fragment2, { children: [
3373
- active ? /* @__PURE__ */ jsxs20("p", { className: "px-2 pb-1 text-[11px] text-muted-foreground", "data-slot": "organization-picker-status", children: [
3415
+ return /* @__PURE__ */ jsxs21("div", { className: cn("flex flex-col", className), "data-slot": "organization-picker", children: [
3416
+ !hideHeading && /* @__PURE__ */ jsx38("p", { className: "px-2 py-1.5 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: "Organization" }),
3417
+ loading ? /* @__PURE__ */ jsxs21("div", { className: "space-y-1 px-1 py-1", "aria-busy": "true", "aria-label": "Loading organizations", children: [
3418
+ /* @__PURE__ */ jsx38(Skeleton, { className: "h-7 rounded-md" }),
3419
+ /* @__PURE__ */ jsx38(Skeleton, { className: "h-7 rounded-md" })
3420
+ ] }) : loadFailed ? /* @__PURE__ */ jsx38("p", { className: "px-2 py-2 text-xs text-destructive", role: "alert", children: "Could not load organizations." }) : organizations.length === 0 ? /* @__PURE__ */ jsx38("p", { className: "px-2 py-2 text-xs text-muted-foreground", children: "Your account is not a member of any organization. Ask an administrator to add you to one." }) : /* @__PURE__ */ jsxs21(Fragment2, { children: [
3421
+ active ? /* @__PURE__ */ jsxs21("p", { className: "px-2 pb-1 text-[11px] text-muted-foreground", "data-slot": "organization-picker-status", children: [
3374
3422
  "Working in",
3375
3423
  " ",
3376
- /* @__PURE__ */ jsx37("span", { className: "font-medium text-foreground", children: active.name })
3377
- ] }) : /* @__PURE__ */ jsx37("p", { className: "px-2 pb-1 text-[11px] text-destructive", "data-slot": "organization-picker-status", children: "No organization selected \u2014 pick one below." }),
3378
- /* @__PURE__ */ jsx37("ul", { className: "max-h-72 overflow-y-auto", role: "listbox", "aria-label": "Organizations", children: organizations.map((org) => {
3424
+ /* @__PURE__ */ jsx38("span", { className: "font-medium text-foreground", children: active.name })
3425
+ ] }) : /* @__PURE__ */ jsx38("p", { className: "px-2 pb-1 text-[11px] text-destructive", "data-slot": "organization-picker-status", children: "No organization selected \u2014 pick one below." }),
3426
+ /* @__PURE__ */ jsx38("ul", { className: "max-h-72 overflow-y-auto", role: "listbox", "aria-label": "Organizations", children: organizations.map((org) => {
3379
3427
  const isActive = org.id === activeOrganizationId;
3380
- return /* @__PURE__ */ jsx37("li", { role: "none", children: /* @__PURE__ */ jsxs20(
3428
+ return /* @__PURE__ */ jsx38("li", { role: "none", children: /* @__PURE__ */ jsxs21(
3381
3429
  "button",
3382
3430
  {
3383
3431
  type: "button",
@@ -3394,7 +3442,7 @@ function OrganizationPicker({
3394
3442
  itemClassName
3395
3443
  ),
3396
3444
  children: [
3397
- /* @__PURE__ */ jsx37(
3445
+ /* @__PURE__ */ jsx38(
3398
3446
  OrganizationAbbreviation,
3399
3447
  {
3400
3448
  abbreviation: org.abbreviation,
@@ -3405,9 +3453,9 @@ function OrganizationPicker({
3405
3453
  )
3406
3454
  }
3407
3455
  ),
3408
- /* @__PURE__ */ jsx37("span", { className: "min-w-0 flex-1 truncate", children: org.name }),
3409
- org.isPersonal && /* @__PURE__ */ jsx37("span", { className: "shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground", children: "Personal" }),
3410
- isDefault(org.id) && /* @__PURE__ */ jsx37(
3456
+ /* @__PURE__ */ jsx38("span", { className: "min-w-0 flex-1 truncate", children: org.name }),
3457
+ org.isPersonal && /* @__PURE__ */ jsx38("span", { className: "shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground", children: "Personal" }),
3458
+ isDefault(org.id) && /* @__PURE__ */ jsx38(
3411
3459
  StarIcon,
3412
3460
  {
3413
3461
  className: "h-[13px] w-[13px] shrink-0 fill-warning text-warning",
@@ -3416,14 +3464,14 @@ function OrganizationPicker({
3416
3464
  role: "img"
3417
3465
  }
3418
3466
  ),
3419
- isActive && /* @__PURE__ */ jsx37(LucideCheckIcon, { className: "h-[15px] w-[15px] shrink-0 text-primary" })
3467
+ isActive && /* @__PURE__ */ jsx38(LucideCheckIcon, { className: "h-[15px] w-[15px] shrink-0 text-primary" })
3420
3468
  ]
3421
3469
  }
3422
3470
  ) }, org.id);
3423
3471
  }) }),
3424
- onSetDefault && /* @__PURE__ */ jsxs20(Fragment2, { children: [
3425
- /* @__PURE__ */ jsx37("div", { className: "my-1 border-t border-border" }),
3426
- /* @__PURE__ */ jsx37(
3472
+ onSetDefault && /* @__PURE__ */ jsxs21(Fragment2, { children: [
3473
+ /* @__PURE__ */ jsx38("div", { className: "my-1 border-t border-border" }),
3474
+ /* @__PURE__ */ jsx38(
3427
3475
  DefaultOrganizationSwitch,
3428
3476
  {
3429
3477
  active,
@@ -3441,17 +3489,17 @@ function DefaultOrganizationSwitch({
3441
3489
  onChange
3442
3490
  }) {
3443
3491
  const disabled = !active;
3444
- return /* @__PURE__ */ jsxs20(
3492
+ return /* @__PURE__ */ jsxs21(
3445
3493
  "div",
3446
3494
  {
3447
3495
  className: "flex items-center justify-between gap-3 rounded-md px-2 py-1.5",
3448
3496
  "data-slot": "organization-picker-default",
3449
3497
  children: [
3450
- /* @__PURE__ */ jsxs20("div", { className: "min-w-0", children: [
3451
- /* @__PURE__ */ jsx37("p", { className: "text-xs font-medium text-foreground", children: "Set as my default" }),
3452
- /* @__PURE__ */ jsx37("p", { className: "truncate text-[11px] text-muted-foreground", children: disabled ? "Select an organization first" : checked ? `Next startup opens ${active.name}` : "Auto-select this at startup" })
3498
+ /* @__PURE__ */ jsxs21("div", { className: "min-w-0", children: [
3499
+ /* @__PURE__ */ jsx38("p", { className: "text-xs font-medium text-foreground", children: "Set as my default" }),
3500
+ /* @__PURE__ */ jsx38("p", { className: "truncate text-[11px] text-muted-foreground", children: disabled ? "Select an organization first" : checked ? `Next startup opens ${active.name}` : "Auto-select this at startup" })
3453
3501
  ] }),
3454
- /* @__PURE__ */ jsx37(
3502
+ /* @__PURE__ */ jsx38(
3455
3503
  Switch,
3456
3504
  {
3457
3505
  checked,
@@ -3467,7 +3515,7 @@ function DefaultOrganizationSwitch({
3467
3515
 
3468
3516
  // src/tabbed-bottom-sheet.tsx
3469
3517
  import { useState as useState7 } from "react";
3470
- import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
3518
+ import { jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
3471
3519
  function TabbedBottomSheet({
3472
3520
  open,
3473
3521
  onOpenChange,
@@ -3481,15 +3529,15 @@ function TabbedBottomSheet({
3481
3529
  if (open) setSelectedTabId(null);
3482
3530
  }
3483
3531
  const selectedTab = selectedTabId ? tabs.find((tab) => tab.id === selectedTabId) : null;
3484
- return /* @__PURE__ */ jsx38(
3532
+ return /* @__PURE__ */ jsx39(
3485
3533
  BottomSheet,
3486
3534
  {
3487
3535
  open,
3488
3536
  onOpenChange,
3489
3537
  title,
3490
3538
  size: "full",
3491
- children: /* @__PURE__ */ jsxs21("div", { className: "matrx-mobile-sheet flex min-h-0 flex-1 flex-col", children: [
3492
- /* @__PURE__ */ jsx38(
3539
+ children: /* @__PURE__ */ jsxs22("div", { className: "matrx-mobile-sheet flex min-h-0 flex-1 flex-col", children: [
3540
+ /* @__PURE__ */ jsx39(
3493
3541
  BottomSheetHeader,
3494
3542
  {
3495
3543
  title: selectedTab ? selectedTab.label : title,
@@ -3497,19 +3545,19 @@ function TabbedBottomSheet({
3497
3545
  onBack: () => setSelectedTabId(null)
3498
3546
  }
3499
3547
  ),
3500
- selectedTab ? /* @__PURE__ */ jsx38("div", { className: "flex min-h-0 flex-1 flex-col overflow-hidden pb-safe", children: selectedTab.content }) : /* @__PURE__ */ jsx38(BottomSheetBody, { children: /* @__PURE__ */ jsx38("ul", { className: "divide-y divide-border", children: tabs.map((tab) => {
3548
+ selectedTab ? /* @__PURE__ */ jsx39("div", { className: "flex min-h-0 flex-1 flex-col overflow-hidden pb-safe", children: selectedTab.content }) : /* @__PURE__ */ jsx39(BottomSheetBody, { children: /* @__PURE__ */ jsx39("ul", { className: "divide-y divide-border", children: tabs.map((tab) => {
3501
3549
  const Icon2 = tab.icon;
3502
- return /* @__PURE__ */ jsx38("li", { children: /* @__PURE__ */ jsxs21(
3550
+ return /* @__PURE__ */ jsx39("li", { children: /* @__PURE__ */ jsxs22(
3503
3551
  "button",
3504
3552
  {
3505
3553
  type: "button",
3506
3554
  onClick: () => setSelectedTabId(tab.id),
3507
3555
  className: "flex w-full items-center gap-3 px-4 py-3.5 text-left transition-colors hover:bg-muted/60 active:bg-muted",
3508
3556
  children: [
3509
- Icon2 ? /* @__PURE__ */ jsx38(Icon2, { className: "h-5 w-5 shrink-0 text-muted-foreground" }) : null,
3510
- /* @__PURE__ */ jsx38("span", { className: "min-w-0 flex-1 text-base text-foreground", children: tab.label }),
3557
+ Icon2 ? /* @__PURE__ */ jsx39(Icon2, { className: "h-5 w-5 shrink-0 text-muted-foreground" }) : null,
3558
+ /* @__PURE__ */ jsx39("span", { className: "min-w-0 flex-1 text-base text-foreground", children: tab.label }),
3511
3559
  tab.trailing,
3512
- /* @__PURE__ */ jsx38(ChevronRightIcon, { className: "h-5 w-5 shrink-0 text-muted-foreground" })
3560
+ /* @__PURE__ */ jsx39(ChevronRightIcon, { className: "h-5 w-5 shrink-0 text-muted-foreground" })
3513
3561
  ]
3514
3562
  }
3515
3563
  ) }, tab.id);
@@ -3521,7 +3569,7 @@ function TabbedBottomSheet({
3521
3569
 
3522
3570
  // src/table.tsx
3523
3571
  import * as React29 from "react";
3524
- import { jsx as jsx39 } from "react/jsx-runtime";
3572
+ import { jsx as jsx40 } from "react/jsx-runtime";
3525
3573
  var TABLE_SIZES = {
3526
3574
  sm: { head: "px-2", cell: "p-2" },
3527
3575
  md: { head: "px-3", cell: "p-3" }
@@ -3532,7 +3580,7 @@ function useTableSize() {
3532
3580
  }
3533
3581
  var Table = React29.forwardRef(
3534
3582
  ({ className, size = "md", wrap = true, wrapperClassName, ...props }, ref) => {
3535
- const table = /* @__PURE__ */ jsx39(
3583
+ const table = /* @__PURE__ */ jsx40(
3536
3584
  "table",
3537
3585
  {
3538
3586
  ref,
@@ -3542,7 +3590,7 @@ var Table = React29.forwardRef(
3542
3590
  ...props
3543
3591
  }
3544
3592
  );
3545
- return /* @__PURE__ */ jsx39(TableSizeContext.Provider, { value: size, children: wrap ? /* @__PURE__ */ jsx39(
3593
+ return /* @__PURE__ */ jsx40(TableSizeContext.Provider, { value: size, children: wrap ? /* @__PURE__ */ jsx40(
3546
3594
  "div",
3547
3595
  {
3548
3596
  "data-slot": "table-wrapper",
@@ -3553,7 +3601,7 @@ var Table = React29.forwardRef(
3553
3601
  }
3554
3602
  );
3555
3603
  Table.displayName = "Table";
3556
- var TableHeader = React29.forwardRef(({ className, sticky = false, ...props }, ref) => /* @__PURE__ */ jsx39(
3604
+ var TableHeader = React29.forwardRef(({ className, sticky = false, ...props }, ref) => /* @__PURE__ */ jsx40(
3557
3605
  "thead",
3558
3606
  {
3559
3607
  ref,
@@ -3567,7 +3615,7 @@ var TableHeader = React29.forwardRef(({ className, sticky = false, ...props }, r
3567
3615
  }
3568
3616
  ));
3569
3617
  TableHeader.displayName = "TableHeader";
3570
- var TableBody = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
3618
+ var TableBody = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3571
3619
  "tbody",
3572
3620
  {
3573
3621
  ref,
@@ -3577,7 +3625,7 @@ var TableBody = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE_
3577
3625
  }
3578
3626
  ));
3579
3627
  TableBody.displayName = "TableBody";
3580
- var TableFooter = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
3628
+ var TableFooter = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3581
3629
  "tfoot",
3582
3630
  {
3583
3631
  ref,
@@ -3590,7 +3638,7 @@ var TableFooter = React29.forwardRef(({ className, ...props }, ref) => /* @__PUR
3590
3638
  }
3591
3639
  ));
3592
3640
  TableFooter.displayName = "TableFooter";
3593
- var TableRow = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
3641
+ var TableRow = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3594
3642
  "tr",
3595
3643
  {
3596
3644
  ref,
@@ -3605,7 +3653,7 @@ var TableRow = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3605
3653
  TableRow.displayName = "TableRow";
3606
3654
  var TableHead = React29.forwardRef(({ className, ...props }, ref) => {
3607
3655
  const size = useTableSize();
3608
- return /* @__PURE__ */ jsx39(
3656
+ return /* @__PURE__ */ jsx40(
3609
3657
  "th",
3610
3658
  {
3611
3659
  ref,
@@ -3622,7 +3670,7 @@ var TableHead = React29.forwardRef(({ className, ...props }, ref) => {
3622
3670
  TableHead.displayName = "TableHead";
3623
3671
  var TableCell = React29.forwardRef(({ className, ...props }, ref) => {
3624
3672
  const size = useTableSize();
3625
- return /* @__PURE__ */ jsx39(
3673
+ return /* @__PURE__ */ jsx40(
3626
3674
  "td",
3627
3675
  {
3628
3676
  ref,
@@ -3637,7 +3685,7 @@ var TableCell = React29.forwardRef(({ className, ...props }, ref) => {
3637
3685
  );
3638
3686
  });
3639
3687
  TableCell.displayName = "TableCell";
3640
- var TableCaption = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
3688
+ var TableCaption = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3641
3689
  "caption",
3642
3690
  {
3643
3691
  ref,
@@ -3651,10 +3699,10 @@ TableCaption.displayName = "TableCaption";
3651
3699
  // src/tabs.tsx
3652
3700
  import * as TabsPrimitive from "@radix-ui/react-tabs";
3653
3701
  import * as React30 from "react";
3654
- import { jsx as jsx40 } from "react/jsx-runtime";
3702
+ import { jsx as jsx41 } from "react/jsx-runtime";
3655
3703
  var Tabs = TabsPrimitive.Root;
3656
3704
  var TABS_TRIGGER_BASE = "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm";
3657
- var TabsList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3705
+ var TabsList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
3658
3706
  TabsPrimitive.List,
3659
3707
  {
3660
3708
  ref,
@@ -3667,7 +3715,7 @@ var TabsList = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3667
3715
  }
3668
3716
  ));
3669
3717
  TabsList.displayName = TabsPrimitive.List.displayName;
3670
- var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3718
+ var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
3671
3719
  TabsPrimitive.Trigger,
3672
3720
  {
3673
3721
  ref,
@@ -3681,7 +3729,7 @@ var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PUR
3681
3729
  }
3682
3730
  ));
3683
3731
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
3684
- var TabsTriggerCore = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3732
+ var TabsTriggerCore = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
3685
3733
  TabsPrimitive.Trigger,
3686
3734
  {
3687
3735
  ref,
@@ -3691,7 +3739,7 @@ var TabsTriggerCore = React30.forwardRef(({ className, ...props }, ref) => /* @_
3691
3739
  }
3692
3740
  ));
3693
3741
  TabsTriggerCore.displayName = TabsPrimitive.Trigger.displayName;
3694
- var TabsContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3742
+ var TabsContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
3695
3743
  TabsPrimitive.Content,
3696
3744
  {
3697
3745
  ref,
@@ -3708,7 +3756,7 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
3708
3756
 
3709
3757
  // src/textarea.tsx
3710
3758
  import * as React31 from "react";
3711
- import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
3759
+ import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
3712
3760
  var FILL_HEIGHT_REGEX = /(?:^|\s)(h-full|h-dvh|flex-1|grow)(?:\s|$)/;
3713
3761
  var FILL_WIDTH_REGEX = /(?:^|\s)(w-full|w-screen)(?:\s|$)/;
3714
3762
  function getStretchClasses(className) {
@@ -3761,7 +3809,7 @@ var Textarea = React31.forwardRef(
3761
3809
  const stretchClasses = getStretchClasses(className);
3762
3810
  const needsWrapper = Boolean(wrapperClassName || stretchClasses);
3763
3811
  useAutoGrow(ref, props.value, autoGrow, minHeight, maxHeight);
3764
- const textarea = /* @__PURE__ */ jsx41(
3812
+ const textarea = /* @__PURE__ */ jsx42(
3765
3813
  "textarea",
3766
3814
  {
3767
3815
  ref: callback,
@@ -3777,7 +3825,7 @@ var Textarea = React31.forwardRef(
3777
3825
  }
3778
3826
  );
3779
3827
  if (!needsWrapper) return textarea;
3780
- return /* @__PURE__ */ jsx41("div", { className: cn(stretchClasses, wrapperClassName), children: textarea });
3828
+ return /* @__PURE__ */ jsx42("div", { className: cn(stretchClasses, wrapperClassName), children: textarea });
3781
3829
  }
3782
3830
  );
3783
3831
  Textarea.displayName = "Textarea";
@@ -3785,7 +3833,7 @@ var BasicTextarea = React31.forwardRef(
3785
3833
  ({ className, autoGrow, minHeight, maxHeight, ...props }, forwarded) => {
3786
3834
  const { ref, callback } = useMergedTextareaRef(forwarded);
3787
3835
  useAutoGrow(ref, props.value, autoGrow, minHeight, maxHeight);
3788
- return /* @__PURE__ */ jsx41(
3836
+ return /* @__PURE__ */ jsx42(
3789
3837
  "textarea",
3790
3838
  {
3791
3839
  ref: callback,
@@ -3815,13 +3863,13 @@ var TextareaWithPrefix = React31.forwardRef(
3815
3863
  }, forwarded) => {
3816
3864
  const { ref, callback } = useMergedTextareaRef(forwarded);
3817
3865
  useAutoGrow(ref, props.value, autoGrow, minHeight, maxHeight);
3818
- return /* @__PURE__ */ jsxs22(
3866
+ return /* @__PURE__ */ jsxs23(
3819
3867
  "div",
3820
3868
  {
3821
3869
  className: cn("relative", getStretchClasses(className), wrapperClassName),
3822
3870
  children: [
3823
- prefix ? /* @__PURE__ */ jsx41("div", { className: "pointer-events-none absolute left-3 top-3 z-10 text-muted-foreground", children: prefix }) : null,
3824
- /* @__PURE__ */ jsx41(
3871
+ prefix ? /* @__PURE__ */ jsx42("div", { className: "pointer-events-none absolute left-3 top-3 z-10 text-muted-foreground", children: prefix }) : null,
3872
+ /* @__PURE__ */ jsx42(
3825
3873
  "textarea",
3826
3874
  {
3827
3875
  ref: callback,
@@ -3901,13 +3949,13 @@ function useScrollFade() {
3901
3949
  // src/hover-card.tsx
3902
3950
  import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
3903
3951
  import * as React32 from "react";
3904
- import { jsx as jsx42 } from "react/jsx-runtime";
3952
+ import { jsx as jsx43 } from "react/jsx-runtime";
3905
3953
  var HoverCard = HoverCardPrimitive.Root;
3906
3954
  var HoverCardTrigger = HoverCardPrimitive.Trigger;
3907
3955
  var HoverCardContent = React32.forwardRef(
3908
3956
  ({ className, align = "center", sideOffset = 4, container, animated = true, ...props }, ref) => {
3909
3957
  const resolved = usePortalContainer(container);
3910
- return /* @__PURE__ */ jsx42(HoverCardPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ jsx42(
3958
+ return /* @__PURE__ */ jsx43(HoverCardPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ jsx43(
3911
3959
  HoverCardPrimitive.Content,
3912
3960
  {
3913
3961
  ref,
@@ -3929,7 +3977,7 @@ HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
3929
3977
  // src/radio-group.tsx
3930
3978
  import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3931
3979
  import * as React33 from "react";
3932
- import { jsx as jsx43 } from "react/jsx-runtime";
3980
+ import { jsx as jsx44 } from "react/jsx-runtime";
3933
3981
  var RadioGroupSizeContext = React33.createContext("md");
3934
3982
  var CONTROL_CLASSES = {
3935
3983
  sm: "h-3.5 w-3.5",
@@ -3941,7 +3989,7 @@ var DOT_CLASSES = {
3941
3989
  md: "h-1.5 w-1.5",
3942
3990
  lg: "h-2 w-2"
3943
3991
  };
3944
- var RadioGroup3 = React33.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ jsx43(RadioGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsx43(
3992
+ var RadioGroup3 = React33.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ jsx44(RadioGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsx44(
3945
3993
  RadioGroupPrimitive.Root,
3946
3994
  {
3947
3995
  ref,
@@ -3954,7 +4002,7 @@ RadioGroup3.displayName = RadioGroupPrimitive.Root.displayName;
3954
4002
  var RadioGroupItem = React33.forwardRef(({ className, size, ...props }, ref) => {
3955
4003
  const groupSize = React33.useContext(RadioGroupSizeContext);
3956
4004
  const resolved = size ?? groupSize;
3957
- return /* @__PURE__ */ jsx43(
4005
+ return /* @__PURE__ */ jsx44(
3958
4006
  RadioGroupPrimitive.Item,
3959
4007
  {
3960
4008
  ref,
@@ -3971,7 +4019,7 @@ var RadioGroupItem = React33.forwardRef(({ className, size, ...props }, ref) =>
3971
4019
  className
3972
4020
  ),
3973
4021
  ...props,
3974
- children: /* @__PURE__ */ jsx43(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx43(
4022
+ children: /* @__PURE__ */ jsx44(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx44(
3975
4023
  "div",
3976
4024
  {
3977
4025
  className: cn("rounded-full bg-primary-foreground", DOT_CLASSES[resolved])
@@ -3984,7 +4032,7 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
3984
4032
 
3985
4033
  // src/resizable.tsx
3986
4034
  import { Group as Group4, Panel, Separator as Separator5 } from "react-resizable-panels";
3987
- import { jsx as jsx44 } from "react/jsx-runtime";
4035
+ import { jsx as jsx45 } from "react/jsx-runtime";
3988
4036
  var HANDLE_SIZES = {
3989
4037
  xs: "w-0.5 [&[aria-orientation=horizontal]]:h-0.5 [&[aria-orientation=horizontal]]:w-full",
3990
4038
  sm: "w-1 [&[aria-orientation=horizontal]]:h-1 [&[aria-orientation=horizontal]]:w-full",
@@ -3998,7 +4046,7 @@ var HANDLE_SIZES = {
3998
4046
  var ResizablePanelGroup = ({
3999
4047
  className,
4000
4048
  ...props
4001
- }) => /* @__PURE__ */ jsx44(
4049
+ }) => /* @__PURE__ */ jsx45(
4002
4050
  Group4,
4003
4051
  {
4004
4052
  "data-slot": "resizable-group",
@@ -4013,7 +4061,7 @@ var ResizableHandle = ({
4013
4061
  size = "xs",
4014
4062
  className,
4015
4063
  ...props
4016
- }) => /* @__PURE__ */ jsx44(
4064
+ }) => /* @__PURE__ */ jsx45(
4017
4065
  Separator5,
4018
4066
  {
4019
4067
  "data-slot": "resizable-handle",
@@ -4033,7 +4081,7 @@ var ResizableHandle = ({
4033
4081
  className
4034
4082
  ),
4035
4083
  ...props,
4036
- children: withHandle ? /* @__PURE__ */ jsx44("div", { className: "z-10 flex h-8 w-4 items-center justify-center rounded-sm border bg-border group-aria-[orientation=horizontal]/handle:h-4 group-aria-[orientation=horizontal]/handle:w-8", children: /* @__PURE__ */ jsx44(DragHandleDots2Icon, { className: "h-2.5 w-2.5 group-aria-[orientation=horizontal]/handle:rotate-90" }) }) : null
4084
+ children: withHandle ? /* @__PURE__ */ jsx45("div", { className: "z-10 flex h-8 w-4 items-center justify-center rounded-sm border bg-border group-aria-[orientation=horizontal]/handle:h-4 group-aria-[orientation=horizontal]/handle:w-8", children: /* @__PURE__ */ jsx45(DragHandleDots2Icon, { className: "h-2.5 w-2.5 group-aria-[orientation=horizontal]/handle:rotate-90" }) }) : null
4037
4085
  }
4038
4086
  );
4039
4087
  ResizableHandle.displayName = "ResizableHandle";
@@ -4041,7 +4089,7 @@ ResizableHandle.displayName = "ResizableHandle";
4041
4089
  // src/slider.tsx
4042
4090
  import * as SliderPrimitive from "@radix-ui/react-slider";
4043
4091
  import * as React34 from "react";
4044
- import { jsx as jsx45, jsxs as jsxs23 } from "react/jsx-runtime";
4092
+ import { jsx as jsx46, jsxs as jsxs24 } from "react/jsx-runtime";
4045
4093
  var TRACK_CLASSES = {
4046
4094
  sm: "h-1",
4047
4095
  md: "h-1.5",
@@ -4057,7 +4105,7 @@ var Slider = React34.forwardRef(({ className, size = "md", ...props }, ref) => {
4057
4105
  1,
4058
4106
  (props.value ?? props.defaultValue ?? [0]).length
4059
4107
  );
4060
- return /* @__PURE__ */ jsxs23(
4108
+ return /* @__PURE__ */ jsxs24(
4061
4109
  SliderPrimitive.Root,
4062
4110
  {
4063
4111
  ref,
@@ -4069,7 +4117,7 @@ var Slider = React34.forwardRef(({ className, size = "md", ...props }, ref) => {
4069
4117
  ),
4070
4118
  ...props,
4071
4119
  children: [
4072
- /* @__PURE__ */ jsx45(
4120
+ /* @__PURE__ */ jsx46(
4073
4121
  SliderPrimitive.Track,
4074
4122
  {
4075
4123
  "data-slot": "slider-track",
@@ -4078,7 +4126,7 @@ var Slider = React34.forwardRef(({ className, size = "md", ...props }, ref) => {
4078
4126
  TRACK_CLASSES[size],
4079
4127
  "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
4080
4128
  ),
4081
- children: /* @__PURE__ */ jsx45(
4129
+ children: /* @__PURE__ */ jsx46(
4082
4130
  SliderPrimitive.Range,
4083
4131
  {
4084
4132
  "data-slot": "slider-range",
@@ -4087,7 +4135,7 @@ var Slider = React34.forwardRef(({ className, size = "md", ...props }, ref) => {
4087
4135
  )
4088
4136
  }
4089
4137
  ),
4090
- Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ jsx45(
4138
+ Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ jsx46(
4091
4139
  SliderPrimitive.Thumb,
4092
4140
  {
4093
4141
  "data-slot": "slider-thumb",
@@ -4115,7 +4163,7 @@ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
4115
4163
  import * as TogglePrimitive from "@radix-ui/react-toggle";
4116
4164
  import { cva as cva6 } from "class-variance-authority";
4117
4165
  import * as React35 from "react";
4118
- import { jsx as jsx46 } from "react/jsx-runtime";
4166
+ import { jsx as jsx47 } from "react/jsx-runtime";
4119
4167
  var toggleVariants = cva6(
4120
4168
  "inline-flex cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
4121
4169
  {
@@ -4136,7 +4184,7 @@ var toggleVariants = cva6(
4136
4184
  }
4137
4185
  }
4138
4186
  );
4139
- var Toggle = React35.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx46(
4187
+ var Toggle = React35.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx47(
4140
4188
  TogglePrimitive.Root,
4141
4189
  {
4142
4190
  ref,
@@ -4147,20 +4195,20 @@ var Toggle = React35.forwardRef(({ className, variant, size, ...props }, ref) =>
4147
4195
  ));
4148
4196
  Toggle.displayName = TogglePrimitive.Root.displayName;
4149
4197
  var ToggleGroupContext = React35.createContext({ size: "default", variant: "default" });
4150
- var ToggleGroup = React35.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx46(
4198
+ var ToggleGroup = React35.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx47(
4151
4199
  ToggleGroupPrimitive.Root,
4152
4200
  {
4153
4201
  ref,
4154
4202
  "data-slot": "toggle-group",
4155
4203
  className: cn("flex items-center justify-center gap-1", className),
4156
4204
  ...props,
4157
- children: /* @__PURE__ */ jsx46(ToggleGroupContext.Provider, { value: { variant, size }, children })
4205
+ children: /* @__PURE__ */ jsx47(ToggleGroupContext.Provider, { value: { variant, size }, children })
4158
4206
  }
4159
4207
  ));
4160
4208
  ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
4161
4209
  var ToggleGroupItem = React35.forwardRef(({ className, children, variant, size, ...props }, ref) => {
4162
4210
  const context = React35.useContext(ToggleGroupContext);
4163
- return /* @__PURE__ */ jsx46(
4211
+ return /* @__PURE__ */ jsx47(
4164
4212
  ToggleGroupPrimitive.Item,
4165
4213
  {
4166
4214
  ref,
@@ -4182,13 +4230,13 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
4182
4230
  // src/tooltip.tsx
4183
4231
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
4184
4232
  import * as React36 from "react";
4185
- import { jsx as jsx47 } from "react/jsx-runtime";
4233
+ import { jsx as jsx48 } from "react/jsx-runtime";
4186
4234
  var TooltipProvider = TooltipPrimitive.Provider;
4187
4235
  var Tooltip = TooltipPrimitive.Root;
4188
4236
  var TooltipTrigger = TooltipPrimitive.Trigger;
4189
4237
  var TooltipContent = React36.forwardRef(({ className, sideOffset = 4, container, animated = true, ...props }, ref) => {
4190
4238
  const resolved = usePortalContainer(container);
4191
- return /* @__PURE__ */ jsx47(TooltipPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ jsx47(
4239
+ return /* @__PURE__ */ jsx48(TooltipPrimitive.Portal, { container: resolved ?? null, children: /* @__PURE__ */ jsx48(
4192
4240
  TooltipPrimitive.Content,
4193
4241
  {
4194
4242
  ref,
@@ -4208,6 +4256,7 @@ export {
4208
4256
  ALL_MOTION_CLASSES,
4209
4257
  ARCHIVE_FILTER_LABELS,
4210
4258
  ARCHIVE_FILTER_VALUES,
4259
+ ARCHIVE_LABEL,
4211
4260
  Accordion,
4212
4261
  AccordionContent,
4213
4262
  AccordionItem,
@@ -4228,6 +4277,7 @@ export {
4228
4277
  AlertDialogTrigger,
4229
4278
  AlertTitle,
4230
4279
  ArchiveFilter,
4280
+ ArchivedDisclosure,
4231
4281
  Avatar,
4232
4282
  AvatarFallback,
4233
4283
  AvatarImage,
@@ -4403,6 +4453,7 @@ export {
4403
4453
  TooltipProvider,
4404
4454
  TooltipTrigger,
4405
4455
  alertVariants,
4456
+ archiveFilterFromDisclosure,
4406
4457
  badgeVariants,
4407
4458
  buttonVariants,
4408
4459
  cn,