@alexgorbatchev/shadcn 0.0.132 → 0.0.134

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.
Files changed (100) hide show
  1. package/README.md +12 -9
  2. package/dist/{chunk-as9e6s20.js → chunk-047a4xdr.js} +1 -1
  3. package/dist/{chunk-mkcbjk8x.js → chunk-0ma1y626.js} +1 -1
  4. package/dist/{chunk-mekggknb.js → chunk-11d7vwef.js} +1 -1
  5. package/dist/{chunk-kpww7hx6.js → chunk-1m0afwnr.js} +1 -1
  6. package/dist/{chunk-q12wrtc9.js → chunk-2020fa8p.js} +1 -1
  7. package/dist/{chunk-tyz32b7n.js → chunk-46fpdn58.js} +1 -1
  8. package/dist/{chunk-p9x0214d.js → chunk-4cv28c46.js} +1 -1
  9. package/dist/{chunk-t7yx9k5r.js → chunk-4yz3qr3m.js} +1 -1
  10. package/dist/{chunk-xg4pg0p4.js → chunk-5e9c6m71.js} +1 -1
  11. package/dist/{chunk-2rsejpzm.js → chunk-9xv585b3.js} +1 -1
  12. package/dist/{chunk-zrmtxp7r.js → chunk-9y4pg1xb.js} +4 -4
  13. package/dist/{chunk-n8d69v8v.js → chunk-bnetwxg0.js} +1 -1
  14. package/dist/{chunk-remfbhfg.js → chunk-bpxdyng2.js} +1 -1
  15. package/dist/{chunk-aasp54x3.js → chunk-br5ff2c5.js} +1 -1
  16. package/dist/{chunk-zkex6fdh.js → chunk-cbyqgfv4.js} +1 -1
  17. package/dist/{chunk-c98jcchv.js → chunk-ctp5jhpj.js} +1 -1
  18. package/dist/{chunk-dnatgtxk.js → chunk-da9pg6qn.js} +1 -1
  19. package/dist/{chunk-mv9vj0bq.js → chunk-dd0400gw.js} +3 -3
  20. package/dist/{chunk-636bahx2.js → chunk-f33kmzs5.js} +2 -2
  21. package/dist/{chunk-kyx2fezr.js → chunk-fa66gvk0.js} +1 -1
  22. package/dist/{chunk-jke6mva4.js → chunk-fvcm177x.js} +1 -1
  23. package/dist/{chunk-0wzgpx58.js → chunk-gtdmrz5d.js} +1 -1
  24. package/dist/{chunk-yw9j9sj6.js → chunk-h45mqwpq.js} +1 -1
  25. package/dist/{chunk-bkq2d9vz.js → chunk-h8zf5e4s.js} +1 -1
  26. package/dist/{chunk-hm8rs6a2.js → chunk-k872qrgx.js} +1 -1
  27. package/dist/{chunk-dg41ph2f.js → chunk-kezh2zee.js} +1 -1
  28. package/dist/{chunk-wnt0jjf8.js → chunk-mfxrsywh.js} +1 -1
  29. package/dist/{chunk-bb7mfwhf.js → chunk-mj44p2x3.js} +1 -1
  30. package/dist/{chunk-n5q99ynh.js → chunk-mjbs77d7.js} +1 -1
  31. package/dist/chunk-p51p95er.js +30 -0
  32. package/dist/{chunk-cq5nzpnv.js → chunk-q9vp0ctw.js} +1 -1
  33. package/dist/{chunk-gx1k1rfz.js → chunk-qwp99a0k.js} +8 -8
  34. package/dist/{chunk-rrayv1gm.js → chunk-r894vt45.js} +1 -1
  35. package/dist/{chunk-08zcnz6g.js → chunk-r8aqd5cv.js} +1 -1
  36. package/dist/{chunk-nmaebt2a.js → chunk-s68rsdgw.js} +1 -1
  37. package/dist/{chunk-ayyhmdbq.js → chunk-sh33xyc2.js} +4 -4
  38. package/dist/{chunk-j7g2yyrx.js → chunk-thgswpk1.js} +1 -1
  39. package/dist/{chunk-dq28112z.js → chunk-wv0ycjxk.js} +1 -1
  40. package/dist/{chunk-6jmwbzed.js → chunk-x4syjs8v.js} +1 -1
  41. package/dist/{chunk-ytfn5vnk.js → chunk-xb79xnjp.js} +1 -1
  42. package/dist/{chunk-9vndmsce.js → chunk-yg6nxfwr.js} +21 -17
  43. package/dist/{chunk-x4d0p81m.js → chunk-yjfcvn9h.js} +1 -1
  44. package/dist/{chunk-kmvfmhpt.js → chunk-ywhbkd15.js} +1 -1
  45. package/dist/{chunk-355w39d9.js → chunk-z7ss04dy.js} +1 -1
  46. package/dist/components/DensityProvider.d.ts +2 -1
  47. package/dist/components/Textarea.d.ts +6 -1
  48. package/dist/components/assistant-ui/elements/ChatPanel.js +3 -3
  49. package/dist/components/assistant-ui/elements/CommandPalette.js +4 -4
  50. package/dist/components/assistant-ui/elements/ComposerAttachments.js +3 -3
  51. package/dist/components/assistant-ui/elements/ComposerBar.js +3 -3
  52. package/dist/components/assistant-ui/elements/ComposerInput.js +3 -3
  53. package/dist/components/assistant-ui/elements/ComposerToolbar.js +3 -3
  54. package/dist/components/assistant-ui/elements/ConversationSearch.js +3 -3
  55. package/dist/components/assistant-ui/elements/EditMessage.js +2 -2
  56. package/dist/components/assistant-ui/elements/EmptyStateComposer.js +3 -3
  57. package/dist/components/assistant-ui/elements/EveAskQuestion.js +3 -3
  58. package/dist/components/assistant-ui/elements/FeedbackDialog.js +2 -2
  59. package/dist/components/assistant-ui/elements/MobileComposer.js +3 -3
  60. package/dist/components/assistant-ui/elements/ModelSelector.js +10 -10
  61. package/dist/components/assistant-ui/elements/ModelSelectorContent.js +9 -9
  62. package/dist/components/assistant-ui/elements/ModelSelectorEmpty.js +4 -4
  63. package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.js +4 -4
  64. package/dist/components/assistant-ui/elements/ModelSelectorGroup.js +4 -4
  65. package/dist/components/assistant-ui/elements/ModelSelectorItem.js +4 -4
  66. package/dist/components/assistant-ui/elements/ModelSelectorList.js +6 -6
  67. package/dist/components/assistant-ui/elements/ModelSelectorSearch.js +4 -4
  68. package/dist/components/assistant-ui/elements/ModelSelectorSeparator.js +4 -4
  69. package/dist/components/assistant-ui/elements/PromptLibrary.js +3 -3
  70. package/dist/components/assistant-ui/elements/RegenerateMenu.js +2 -2
  71. package/dist/components/assistant-ui/elements/SettingsPanel.js +2 -2
  72. package/dist/components/assistant-ui/elements/ThreadSearch.js +3 -3
  73. package/dist/components/assistant-ui/eveAskQuestionToolkit.js +4 -4
  74. package/dist/components/assistant-ui/index.js +31 -31
  75. package/dist/components/assistant-ui/native/AssistantModal.js +4 -4
  76. package/dist/components/assistant-ui/native/AssistantSidebar.js +4 -4
  77. package/dist/components/assistant-ui/native/McpConfigDialog.js +2 -2
  78. package/dist/components/assistant-ui/native/ModelSelector.js +12 -12
  79. package/dist/components/assistant-ui/native/TaskCard.js +3 -3
  80. package/dist/components/assistant-ui/native/TaskGroup.js +4 -4
  81. package/dist/components/assistant-ui/native/Thread.js +3 -3
  82. package/dist/components/assistant-ui/native/ToolFallbackRoot.js +2 -2
  83. package/dist/components/assistant-ui/native/index.js +20 -20
  84. package/dist/components/calendar/index.js +2 -2
  85. package/dist/components/command/index.js +3 -3
  86. package/dist/components/data-grid/index.js +5 -5
  87. package/dist/components/gantt/index.js +2 -2
  88. package/dist/components/json-render/index.js +8 -8
  89. package/dist/components/persian-calendar/index.js +2 -2
  90. package/dist/components/virtual-data-grid/index.js +2 -2
  91. package/dist/density/types.d.ts +1 -1
  92. package/dist/index.js +7 -7
  93. package/dist/prototype.js +2 -2
  94. package/dist/theme.css +22 -0
  95. package/llms/components/forms/Textarea.md +12 -1
  96. package/llms/components/providers/DensityProvider.md +8 -0
  97. package/llms/setup.md +12 -9
  98. package/llms.txt +1 -1
  99. package/package.json +2 -2
  100. package/dist/chunk-9k5b62qf.js +0 -21
package/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  # What It Does
13
13
 
14
14
  - **Consistent controls**: Provides buttons, forms, selections, navigation, overlays, and loading states.
15
- - **Two densities**: Offers compact 20px controls and comfortable 28px controls, with provider and component overrides.
15
+ - **Three densities**: Offers compact 20px, comfortable 28px, and touch 44px standard controls, with provider and component overrides.
16
16
  - **Theme choices**: Supports light, dark, and system preference, with customizable accent colors and fonts.
17
17
  - **Interactive reference**: Shows component variants and states in Storybook with editable controls and source examples.
18
18
 
@@ -194,14 +194,17 @@ An independent production Vite consumer installed from the archive verifies RTL
194
194
 
195
195
  # Configuration
196
196
 
197
- | Option | Type | Default | Description |
198
- | :--------------------------- | :------------------------------ | :------------------------------ | :--------------------------------------------------------------------- |
199
- | `ThemeProvider.defaultTheme` | `"light" \| "dark" \| "system"` | `"system"` | Initial preference when storage has no saved value. |
200
- | `ThemeProvider.storageKey` | `string` | `"shadcn-alexgorbatchev-theme"` | Local storage key for the preference. |
201
- | `ThemeProvider.forcedTheme` | `"light" \| "dark"` | unset | Overrides the displayed palette without changing the saved preference. |
202
- | `ThemeProvider.preset` | `"devhost" \| "shadcn"` | `"devhost"` | Document-wide design preset, independent of color mode and density. |
203
- | `DensityProvider.density` | `"compact" \| "comfortable"` | `"comfortable"` | Density for descendants and their portals. |
204
- | Component `density` | `"compact" \| "comfortable"` | inherited | Local override on styled components that expose the prop. |
197
+ | Option | Type | Default | Description |
198
+ | :------------------------------ | :-------------------------------------- | :------------------------------ | :----------------------------------------------------------------------- |
199
+ | `ThemeProvider.defaultTheme` | `"light" \| "dark" \| "system"` | `"system"` | Initial preference when storage has no saved value. |
200
+ | `ThemeProvider.storageKey` | `string` | `"shadcn-alexgorbatchev-theme"` | Local storage key for the preference. |
201
+ | `ThemeProvider.forcedTheme` | `"light" \| "dark"` | unset | Overrides the displayed palette without changing the saved preference. |
202
+ | `ThemeProvider.preset` | `"devhost" \| "shadcn"` | `"devhost"` | Document-wide design preset, independent of color mode and density. |
203
+ | `DensityProvider.density` | `"compact" \| "comfortable" \| "touch"` | `"comfortable"` | Density for descendants and their portals. |
204
+ | `DensityProvider.touchOnMobile` | `boolean` | `false` | Selects touch density below 48rem or when the primary pointer is coarse. |
205
+ | Component `density` | `"compact" \| "comfortable" \| "touch"` | inherited | Local override on styled components that expose the prop. |
206
+
207
+ Use `<DensityProvider touchOnMobile>` to select touch density on phones while using comfortable density on wider screens with a fine pointer. Touch uses 16px input text and a 44px minimum height for menu and select rows.
205
208
 
206
209
  `useTheme()` returns `theme`, `resolvedTheme`, `setTheme`, and `preset`. Call `setTheme("light")`, `setTheme("dark")`, or `setTheme("system")` from a component inside the provider.
207
210
 
@@ -8,7 +8,7 @@ import {
8
8
  InputGroup2,
9
9
  InputGroupAddon2,
10
10
  InputGroupInput2
11
- } from "./chunk-remfbhfg.js";
11
+ } from "./chunk-bpxdyng2.js";
12
12
  import {
13
13
  paper,
14
14
  mono
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommandItem2
3
- } from "./chunk-bkq2d9vz.js";
3
+ } from "./chunk-h8zf5e4s.js";
4
4
  import {
5
5
  useModelSelectorContext
6
6
  } from "./chunk-ydfx8r6d.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-en44w1pn.js";
4
4
  import {
5
5
  InputGroupAddon2
6
- } from "./chunk-remfbhfg.js";
6
+ } from "./chunk-bpxdyng2.js";
7
7
 
8
8
  // src/components/assistant-ui/elements/ComposerToolbar.tsx
9
9
  import { jsx } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ToolFallbackResult2,
3
3
  ToolFallbackApproval2
4
- } from "./chunk-c98jcchv.js";
4
+ } from "./chunk-ctp5jhpj.js";
5
5
 
6
6
  // src/components/assistant-ui/utils/askQuestion.ts
7
7
  var readOutcome = (result, isError) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommandInput2
3
- } from "./chunk-bkq2d9vz.js";
3
+ } from "./chunk-h8zf5e4s.js";
4
4
 
5
5
  // src/components/assistant-ui/elements/ModelSelectorSearch.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommandSeparator2
3
- } from "./chunk-bkq2d9vz.js";
3
+ } from "./chunk-h8zf5e4s.js";
4
4
 
5
5
  // src/components/assistant-ui/elements/ModelSelectorSeparator.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-2sx8m8b2.js";
10
10
  import {
11
11
  Textarea2
12
- } from "./chunk-9k5b62qf.js";
12
+ } from "./chunk-p51p95er.js";
13
13
  import {
14
14
  Slider2
15
15
  } from "./chunk-7cq1s2ey.js";
@@ -6,7 +6,7 @@ import {
6
6
  InputGroupAddon2,
7
7
  InputGroupButton2,
8
8
  InputGroupInput2
9
- } from "./chunk-remfbhfg.js";
9
+ } from "./chunk-bpxdyng2.js";
10
10
  import {
11
11
  paper
12
12
  } from "./chunk-fgmcbtyt.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EveAskQuestion2
3
- } from "./chunk-kpww7hx6.js";
3
+ } from "./chunk-1m0afwnr.js";
4
4
 
5
5
  // src/components/assistant-ui/eveAskQuestionToolkit.ts
6
6
  import { defineToolkit } from "@assistant-ui/react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommandGroup2
3
- } from "./chunk-bkq2d9vz.js";
3
+ } from "./chunk-h8zf5e4s.js";
4
4
 
5
5
  // src/components/assistant-ui/elements/ModelSelectorGroup.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -79,7 +79,7 @@ import { Menu as MenuPrimitive2 } from "@base-ui/react/menu";
79
79
  import { ChevronRightIcon, CheckIcon } from "lucide-react";
80
80
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
81
81
  "use client";
82
- var menuItemClassName = "group/menu-item relative flex cursor-default items-center data-has-description:flex-wrap data-has-reason:flex-wrap data-has-reason:data-disabled:pointer-events-auto data-has-reason:data-disabled:opacity-100 data-has-reason:data-disabled:text-muted-foreground gap-control-gap rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive";
82
+ var menuItemClassName = "group/menu-item relative flex min-h-(--ag-item-min-h) cursor-default items-center data-has-description:flex-wrap data-has-reason:flex-wrap data-has-reason:data-disabled:pointer-events-auto data-has-reason:data-disabled:opacity-100 data-has-reason:data-disabled:text-muted-foreground gap-control-gap rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive";
83
83
  function MenuGroup2({ ...props }) {
84
84
  return /* @__PURE__ */ jsx2(MenuPrimitive2.Group, {
85
85
  "data-slot": "menu-group",
@@ -185,7 +185,7 @@ function MenuSubTrigger2({ density, className, inset, children, ...props }) {
185
185
  "data-density": density,
186
186
  "data-slot": "menu-sub-trigger",
187
187
  "data-inset": inset,
188
- className: (state) => cn2("flex cursor-default items-center gap-control-gap rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-7 data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
188
+ className: (state) => cn2("flex min-h-(--ag-item-min-h) cursor-default items-center gap-control-gap rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-7 data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
189
189
  ...props,
190
190
  children: [
191
191
  children,
@@ -257,7 +257,7 @@ function MenuCheckboxItem2({
257
257
  "data-density": density,
258
258
  "data-slot": "menu-checkbox-item",
259
259
  "data-inset": inset,
260
- className: (state) => cn2("relative flex cursor-default items-center gap-control-gap rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
260
+ className: (state) => cn2("relative flex min-h-(--ag-item-min-h) cursor-default items-center gap-control-gap rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
261
261
  checked,
262
262
  ...props,
263
263
  onCheckedChange: trackedOnCheckedChange,
@@ -286,7 +286,7 @@ function MenuRadioItem2({ density, className, children, inset, ...props }) {
286
286
  "data-density": density,
287
287
  "data-slot": "menu-radio-item",
288
288
  "data-inset": inset,
289
- className: (state) => cn2("relative flex cursor-default items-center gap-control-gap rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
289
+ className: (state) => cn2("relative flex min-h-(--ag-item-min-h) cursor-default items-center gap-control-gap rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
290
290
  ...props,
291
291
  children: [
292
292
  /* @__PURE__ */ jsx2("span", {
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-gb16cwpw.js";
7
7
  import {
8
8
  ModelSelectorContent2
9
- } from "./chunk-ayyhmdbq.js";
9
+ } from "./chunk-sh33xyc2.js";
10
10
 
11
11
  // src/components/assistant-ui/elements/ModelSelector.tsx
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-7vg045gd.js";
10
10
  import {
11
11
  Textarea2
12
- } from "./chunk-9k5b62qf.js";
12
+ } from "./chunk-p51p95er.js";
13
13
 
14
14
  // src/components/InputGroup.tsx
15
15
  import { cva } from "class-variance-authority";
@@ -9,7 +9,7 @@ import {
9
9
  MenuItem2,
10
10
  DropdownMenu2,
11
11
  DropdownMenuTrigger2
12
- } from "./chunk-zrmtxp7r.js";
12
+ } from "./chunk-9y4pg1xb.js";
13
13
  import {
14
14
  mono
15
15
  } from "./chunk-fgmcbtyt.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-en44w1pn.js";
10
10
  import {
11
11
  OptionSelect2
12
- } from "./chunk-yw9j9sj6.js";
12
+ } from "./chunk-h45mqwpq.js";
13
13
  import {
14
14
  Badge2
15
15
  } from "./chunk-dbe9ppwf.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-2sx8m8b2.js";
15
15
  import {
16
16
  Textarea2
17
- } from "./chunk-9k5b62qf.js";
17
+ } from "./chunk-p51p95er.js";
18
18
 
19
19
  // src/components/assistant-ui/native/ToolFallbackRoot.tsx
20
20
  import { forwardRef, memo, useCallback, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-en44w1pn.js";
4
4
  import {
5
5
  InputGroupAddon2
6
- } from "./chunk-remfbhfg.js";
6
+ } from "./chunk-bpxdyng2.js";
7
7
 
8
8
  // src/components/assistant-ui/elements/ComposerAttachments.tsx
9
9
  import { jsx } from "react/jsx-runtime";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  CommandList2,
3
3
  CommandGroup2
4
- } from "./chunk-bkq2d9vz.js";
4
+ } from "./chunk-h8zf5e4s.js";
5
5
  import {
6
6
  useModelSelectorContext
7
7
  } from "./chunk-ydfx8r6d.js";
8
8
  import {
9
9
  ModelSelectorEmpty2
10
- } from "./chunk-08zcnz6g.js";
10
+ } from "./chunk-r8aqd5cv.js";
11
11
  import {
12
12
  ModelSelectorItem2
13
- } from "./chunk-mkcbjk8x.js";
13
+ } from "./chunk-0ma1y626.js";
14
14
 
15
15
  // src/components/assistant-ui/elements/ModelSelectorList.tsx
16
16
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
@@ -17,7 +17,7 @@ import {
17
17
  InputGroupAddon2,
18
18
  InputGroupButton2,
19
19
  InputGroupInput2
20
- } from "./chunk-remfbhfg.js";
20
+ } from "./chunk-bpxdyng2.js";
21
21
  import {
22
22
  useAnalyticsCallback
23
23
  } from "./chunk-5mydsjp3.js";
@@ -168,7 +168,7 @@ function ComboboxItem2({ density, className, children, ...props }) {
168
168
  return /* @__PURE__ */ jsxs(ComboboxPrimitive.Item, {
169
169
  "data-density": density,
170
170
  "data-slot": "combobox-item",
171
- className: (state) => cn2("relative flex w-full cursor-default items-center gap-2 rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
171
+ className: (state) => cn2("relative flex min-h-(--ag-item-min-h) w-full cursor-default items-center gap-2 rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
172
172
  ...props,
173
173
  children: [
174
174
  children,
@@ -10,7 +10,7 @@ import {
10
10
  offersInterruptAction2,
11
11
  ToolFallbackApproval2,
12
12
  ToolFallback2
13
- } from "./chunk-c98jcchv.js";
13
+ } from "./chunk-ctp5jhpj.js";
14
14
  import {
15
15
  TaskCard3
16
16
  } from "./chunk-3kgdb3vb.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-bfv4qesg.js";
13
13
  import {
14
14
  Textarea2
15
- } from "./chunk-9k5b62qf.js";
15
+ } from "./chunk-p51p95er.js";
16
16
  import {
17
17
  useReceiptFocus
18
18
  } from "./chunk-vxvaaptq.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-2sx8m8b2.js";
7
7
  import {
8
8
  OptionSelect2
9
- } from "./chunk-yw9j9sj6.js";
9
+ } from "./chunk-h45mqwpq.js";
10
10
  import {
11
11
  useAnalyticsCallback
12
12
  } from "./chunk-5mydsjp3.js";
@@ -122,7 +122,7 @@ function SelectItem2({ density, className, children, ...props }) {
122
122
  return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
123
123
  "data-density": density,
124
124
  "data-slot": "select-item",
125
- className: (state) => cn2("relative flex w-full cursor-default items-center gap-control-gap rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", typeof className === "function" ? className(state) : className),
125
+ className: (state) => cn2("relative flex min-h-(--ag-item-min-h) w-full cursor-default items-center gap-control-gap rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", typeof className === "function" ? className(state) : className),
126
126
  ...props,
127
127
  children: [
128
128
  /* @__PURE__ */ jsx(SelectPrimitive.ItemText, {
@@ -12,7 +12,7 @@ import {
12
12
  InputGroup2,
13
13
  InputGroupAddon2,
14
14
  InputGroupInput2
15
- } from "./chunk-remfbhfg.js";
15
+ } from "./chunk-bpxdyng2.js";
16
16
  import {
17
17
  useAnalyticsCallback
18
18
  } from "./chunk-5mydsjp3.js";
@@ -5,7 +5,7 @@ import {
5
5
  InputGroup2,
6
6
  InputGroupAddon2,
7
7
  InputGroupInput2
8
- } from "./chunk-remfbhfg.js";
8
+ } from "./chunk-bpxdyng2.js";
9
9
 
10
10
  // src/components/assistant-ui/elements/MobileComposer.tsx
11
11
  import { ArrowUpIcon, MicIcon, PlusIcon, SquareIcon } from "lucide-react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InputGroupInput2
3
- } from "./chunk-remfbhfg.js";
3
+ } from "./chunk-bpxdyng2.js";
4
4
 
5
5
  // src/components/assistant-ui/elements/ComposerInput.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-1s7af44v.js";
11
11
  import {
12
12
  TaskCard2
13
- } from "./chunk-kyx2fezr.js";
13
+ } from "./chunk-fa66gvk0.js";
14
14
 
15
15
  // src/components/assistant-ui/native/TaskGroup.tsx
16
16
  import { useAui, useAuiState } from "@assistant-ui/react";
@@ -8,7 +8,7 @@ import {
8
8
  InputGroup2,
9
9
  InputGroupAddon2,
10
10
  InputGroupInput2
11
- } from "./chunk-remfbhfg.js";
11
+ } from "./chunk-bpxdyng2.js";
12
12
  import {
13
13
  paper,
14
14
  field,
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-bfv4qesg.js";
16
16
  import {
17
17
  Textarea2
18
- } from "./chunk-9k5b62qf.js";
18
+ } from "./chunk-p51p95er.js";
19
19
  import {
20
20
  ToggleGroup2,
21
21
  ToggleGroupItem2
@@ -0,0 +1,30 @@
1
+ import {
2
+ useAnalyticsInput
3
+ } from "./chunk-7jpsybag.js";
4
+ import {
5
+ cn2
6
+ } from "./chunk-en44w1pn.js";
7
+
8
+ // src/components/Textarea.tsx
9
+ import { jsx } from "react/jsx-runtime";
10
+ function Textarea2({
11
+ analytics,
12
+ density,
13
+ bounded = false,
14
+ startHeight = "default",
15
+ className,
16
+ ...props
17
+ }) {
18
+ const analyticsInput = useAnalyticsInput("Textarea", analytics, props);
19
+ return /* @__PURE__ */ jsx("textarea", {
20
+ "data-density": density,
21
+ "data-slot": "textarea",
22
+ "data-start-height": startHeight,
23
+ rows: startHeight === "line" ? 1 : undefined,
24
+ className: cn2("flex field-sizing-content w-full rounded-sm border border-input bg-secondary px-control-x text-base transition-colors outline-none placeholder:text-faint-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive", startHeight === "line" ? "min-h-control resize-none py-1 leading-[calc(var(--ag-control-h)-10px)]" : "min-h-16 py-2", bounded && "max-h-72 overflow-y-auto", className),
25
+ ...props,
26
+ ...analyticsInput
27
+ });
28
+ }
29
+
30
+ export { Textarea2 };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-en44w1pn.js";
4
4
  import {
5
5
  InputGroup2
6
- } from "./chunk-remfbhfg.js";
6
+ } from "./chunk-bpxdyng2.js";
7
7
 
8
8
  // src/components/assistant-ui/elements/ComposerBar.tsx
9
9
  import { jsx } from "react/jsx-runtime";
@@ -12,31 +12,31 @@ import {
12
12
  } from "./chunk-gb16cwpw.js";
13
13
  import {
14
14
  ModelSelectorFocusAnchor2
15
- } from "./chunk-355w39d9.js";
15
+ } from "./chunk-z7ss04dy.js";
16
16
  import {
17
17
  ModelSelectorSearch2
18
- } from "./chunk-q12wrtc9.js";
18
+ } from "./chunk-2020fa8p.js";
19
19
  import {
20
20
  ModelSelectorEmpty2
21
- } from "./chunk-08zcnz6g.js";
21
+ } from "./chunk-r8aqd5cv.js";
22
22
  import {
23
23
  ModelSelectorItem2
24
- } from "./chunk-mkcbjk8x.js";
24
+ } from "./chunk-0ma1y626.js";
25
25
  import {
26
26
  ModelSelectorList2
27
- } from "./chunk-mv9vj0bq.js";
27
+ } from "./chunk-dd0400gw.js";
28
28
  import {
29
29
  ModelSelectorEffort2
30
30
  } from "./chunk-pzr1f2tz.js";
31
31
  import {
32
32
  ModelSelectorContent2
33
- } from "./chunk-ayyhmdbq.js";
33
+ } from "./chunk-sh33xyc2.js";
34
34
  import {
35
35
  ModelSelectorGroup2
36
- } from "./chunk-2rsejpzm.js";
36
+ } from "./chunk-9xv585b3.js";
37
37
  import {
38
38
  ModelSelectorSeparator2
39
- } from "./chunk-tyz32b7n.js";
39
+ } from "./chunk-46fpdn58.js";
40
40
 
41
41
  // src/components/assistant-ui/native/ModelSelector.tsx
42
42
  import { memo, useEffect } from "react";
@@ -6,7 +6,7 @@ import {
6
6
  CommandGroup2,
7
7
  CommandItem2,
8
8
  CommandShortcut2
9
- } from "./chunk-bkq2d9vz.js";
9
+ } from "./chunk-h8zf5e4s.js";
10
10
  import {
11
11
  Kbd2
12
12
  } from "./chunk-7vnpp3ya.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommandEmpty2
3
- } from "./chunk-bkq2d9vz.js";
3
+ } from "./chunk-h8zf5e4s.js";
4
4
 
5
5
  // src/components/assistant-ui/elements/ModelSelectorEmpty.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-e6hk39ev.js";
10
10
  import {
11
11
  Thread2
12
- } from "./chunk-dq28112z.js";
12
+ } from "./chunk-wv0ycjxk.js";
13
13
  import {
14
14
  TooltipIconButton2
15
15
  } from "./chunk-ssq1sa8y.js";
@@ -4,19 +4,19 @@ import {
4
4
  } from "./chunk-bf8kbj33.js";
5
5
  import {
6
6
  Command2
7
- } from "./chunk-bkq2d9vz.js";
7
+ } from "./chunk-h8zf5e4s.js";
8
8
  import {
9
9
  useModelSelectorContext
10
10
  } from "./chunk-ydfx8r6d.js";
11
11
  import {
12
12
  ModelSelectorFocusAnchor2
13
- } from "./chunk-355w39d9.js";
13
+ } from "./chunk-z7ss04dy.js";
14
14
  import {
15
15
  ModelSelectorSearch2
16
- } from "./chunk-q12wrtc9.js";
16
+ } from "./chunk-2020fa8p.js";
17
17
  import {
18
18
  ModelSelectorList2
19
- } from "./chunk-mv9vj0bq.js";
19
+ } from "./chunk-dd0400gw.js";
20
20
  import {
21
21
  ModelSelectorEffort2
22
22
  } from "./chunk-pzr1f2tz.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-5jgfh8t9.js";
6
6
  import {
7
7
  Thread2
8
- } from "./chunk-dq28112z.js";
8
+ } from "./chunk-wv0ycjxk.js";
9
9
 
10
10
  // src/components/assistant-ui/native/AssistantSidebar.tsx
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -52,7 +52,7 @@ import {
52
52
  } from "./chunk-yx0j5fer.js";
53
53
  import {
54
54
  ToolFallback2
55
- } from "./chunk-c98jcchv.js";
55
+ } from "./chunk-ctp5jhpj.js";
56
56
  import {
57
57
  ToolGroupRoot2,
58
58
  ToolGroupTrigger2,
@@ -8,7 +8,7 @@ import {
8
8
  InputGroup2,
9
9
  InputGroupAddon2,
10
10
  InputGroupInput2
11
- } from "./chunk-remfbhfg.js";
11
+ } from "./chunk-bpxdyng2.js";
12
12
  import {
13
13
  field,
14
14
  mono
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-2sx8m8b2.js";
13
13
  import {
14
14
  OptionSelect2
15
- } from "./chunk-yw9j9sj6.js";
15
+ } from "./chunk-h45mqwpq.js";
16
16
  import {
17
17
  useAnalyticsCallback
18
18
  } from "./chunk-5mydsjp3.js";