@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.
- package/README.md +12 -9
- package/dist/{chunk-as9e6s20.js → chunk-047a4xdr.js} +1 -1
- package/dist/{chunk-mkcbjk8x.js → chunk-0ma1y626.js} +1 -1
- package/dist/{chunk-mekggknb.js → chunk-11d7vwef.js} +1 -1
- package/dist/{chunk-kpww7hx6.js → chunk-1m0afwnr.js} +1 -1
- package/dist/{chunk-q12wrtc9.js → chunk-2020fa8p.js} +1 -1
- package/dist/{chunk-tyz32b7n.js → chunk-46fpdn58.js} +1 -1
- package/dist/{chunk-p9x0214d.js → chunk-4cv28c46.js} +1 -1
- package/dist/{chunk-t7yx9k5r.js → chunk-4yz3qr3m.js} +1 -1
- package/dist/{chunk-xg4pg0p4.js → chunk-5e9c6m71.js} +1 -1
- package/dist/{chunk-2rsejpzm.js → chunk-9xv585b3.js} +1 -1
- package/dist/{chunk-zrmtxp7r.js → chunk-9y4pg1xb.js} +4 -4
- package/dist/{chunk-n8d69v8v.js → chunk-bnetwxg0.js} +1 -1
- package/dist/{chunk-remfbhfg.js → chunk-bpxdyng2.js} +1 -1
- package/dist/{chunk-aasp54x3.js → chunk-br5ff2c5.js} +1 -1
- package/dist/{chunk-zkex6fdh.js → chunk-cbyqgfv4.js} +1 -1
- package/dist/{chunk-c98jcchv.js → chunk-ctp5jhpj.js} +1 -1
- package/dist/{chunk-dnatgtxk.js → chunk-da9pg6qn.js} +1 -1
- package/dist/{chunk-mv9vj0bq.js → chunk-dd0400gw.js} +3 -3
- package/dist/{chunk-636bahx2.js → chunk-f33kmzs5.js} +2 -2
- package/dist/{chunk-kyx2fezr.js → chunk-fa66gvk0.js} +1 -1
- package/dist/{chunk-jke6mva4.js → chunk-fvcm177x.js} +1 -1
- package/dist/{chunk-0wzgpx58.js → chunk-gtdmrz5d.js} +1 -1
- package/dist/{chunk-yw9j9sj6.js → chunk-h45mqwpq.js} +1 -1
- package/dist/{chunk-bkq2d9vz.js → chunk-h8zf5e4s.js} +1 -1
- package/dist/{chunk-hm8rs6a2.js → chunk-k872qrgx.js} +1 -1
- package/dist/{chunk-dg41ph2f.js → chunk-kezh2zee.js} +1 -1
- package/dist/{chunk-wnt0jjf8.js → chunk-mfxrsywh.js} +1 -1
- package/dist/{chunk-bb7mfwhf.js → chunk-mj44p2x3.js} +1 -1
- package/dist/{chunk-n5q99ynh.js → chunk-mjbs77d7.js} +1 -1
- package/dist/chunk-p51p95er.js +30 -0
- package/dist/{chunk-cq5nzpnv.js → chunk-q9vp0ctw.js} +1 -1
- package/dist/{chunk-gx1k1rfz.js → chunk-qwp99a0k.js} +8 -8
- package/dist/{chunk-rrayv1gm.js → chunk-r894vt45.js} +1 -1
- package/dist/{chunk-08zcnz6g.js → chunk-r8aqd5cv.js} +1 -1
- package/dist/{chunk-nmaebt2a.js → chunk-s68rsdgw.js} +1 -1
- package/dist/{chunk-ayyhmdbq.js → chunk-sh33xyc2.js} +4 -4
- package/dist/{chunk-j7g2yyrx.js → chunk-thgswpk1.js} +1 -1
- package/dist/{chunk-dq28112z.js → chunk-wv0ycjxk.js} +1 -1
- package/dist/{chunk-6jmwbzed.js → chunk-x4syjs8v.js} +1 -1
- package/dist/{chunk-ytfn5vnk.js → chunk-xb79xnjp.js} +1 -1
- package/dist/{chunk-9vndmsce.js → chunk-yg6nxfwr.js} +21 -17
- package/dist/{chunk-x4d0p81m.js → chunk-yjfcvn9h.js} +1 -1
- package/dist/{chunk-kmvfmhpt.js → chunk-ywhbkd15.js} +1 -1
- package/dist/{chunk-355w39d9.js → chunk-z7ss04dy.js} +1 -1
- package/dist/components/DensityProvider.d.ts +2 -1
- package/dist/components/Textarea.d.ts +6 -1
- package/dist/components/assistant-ui/elements/ChatPanel.js +3 -3
- package/dist/components/assistant-ui/elements/CommandPalette.js +4 -4
- package/dist/components/assistant-ui/elements/ComposerAttachments.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerBar.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerInput.js +3 -3
- package/dist/components/assistant-ui/elements/ComposerToolbar.js +3 -3
- package/dist/components/assistant-ui/elements/ConversationSearch.js +3 -3
- package/dist/components/assistant-ui/elements/EditMessage.js +2 -2
- package/dist/components/assistant-ui/elements/EmptyStateComposer.js +3 -3
- package/dist/components/assistant-ui/elements/EveAskQuestion.js +3 -3
- package/dist/components/assistant-ui/elements/FeedbackDialog.js +2 -2
- package/dist/components/assistant-ui/elements/MobileComposer.js +3 -3
- package/dist/components/assistant-ui/elements/ModelSelector.js +10 -10
- package/dist/components/assistant-ui/elements/ModelSelectorContent.js +9 -9
- package/dist/components/assistant-ui/elements/ModelSelectorEmpty.js +4 -4
- package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.js +4 -4
- package/dist/components/assistant-ui/elements/ModelSelectorGroup.js +4 -4
- package/dist/components/assistant-ui/elements/ModelSelectorItem.js +4 -4
- package/dist/components/assistant-ui/elements/ModelSelectorList.js +6 -6
- package/dist/components/assistant-ui/elements/ModelSelectorSearch.js +4 -4
- package/dist/components/assistant-ui/elements/ModelSelectorSeparator.js +4 -4
- package/dist/components/assistant-ui/elements/PromptLibrary.js +3 -3
- package/dist/components/assistant-ui/elements/RegenerateMenu.js +2 -2
- package/dist/components/assistant-ui/elements/SettingsPanel.js +2 -2
- package/dist/components/assistant-ui/elements/ThreadSearch.js +3 -3
- package/dist/components/assistant-ui/eveAskQuestionToolkit.js +4 -4
- package/dist/components/assistant-ui/index.js +31 -31
- package/dist/components/assistant-ui/native/AssistantModal.js +4 -4
- package/dist/components/assistant-ui/native/AssistantSidebar.js +4 -4
- package/dist/components/assistant-ui/native/McpConfigDialog.js +2 -2
- package/dist/components/assistant-ui/native/ModelSelector.js +12 -12
- package/dist/components/assistant-ui/native/TaskCard.js +3 -3
- package/dist/components/assistant-ui/native/TaskGroup.js +4 -4
- package/dist/components/assistant-ui/native/Thread.js +3 -3
- package/dist/components/assistant-ui/native/ToolFallbackRoot.js +2 -2
- package/dist/components/assistant-ui/native/index.js +20 -20
- package/dist/components/calendar/index.js +2 -2
- package/dist/components/command/index.js +3 -3
- package/dist/components/data-grid/index.js +5 -5
- package/dist/components/gantt/index.js +2 -2
- package/dist/components/json-render/index.js +8 -8
- package/dist/components/persian-calendar/index.js +2 -2
- package/dist/components/virtual-data-grid/index.js +2 -2
- package/dist/density/types.d.ts +1 -1
- package/dist/index.js +7 -7
- package/dist/prototype.js +2 -2
- package/dist/theme.css +22 -0
- package/llms/components/forms/Textarea.md +12 -1
- package/llms/components/providers/DensityProvider.md +8 -0
- package/llms/setup.md +12 -9
- package/llms.txt +1 -1
- package/package.json +2 -2
- 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
|
-
- **
|
|
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
|
|
198
|
-
|
|
|
199
|
-
| `ThemeProvider.defaultTheme`
|
|
200
|
-
| `ThemeProvider.storageKey`
|
|
201
|
-
| `ThemeProvider.forcedTheme`
|
|
202
|
-
| `ThemeProvider.preset`
|
|
203
|
-
| `DensityProvider.density`
|
|
204
|
-
|
|
|
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
|
|
|
@@ -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", {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-2sx8m8b2.js";
|
|
15
15
|
import {
|
|
16
16
|
Textarea2
|
|
17
|
-
} from "./chunk-
|
|
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";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CommandList2,
|
|
3
3
|
CommandGroup2
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
10
|
+
} from "./chunk-r8aqd5cv.js";
|
|
11
11
|
import {
|
|
12
12
|
ModelSelectorItem2
|
|
13
|
-
} from "./chunk-
|
|
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-
|
|
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,
|
|
@@ -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, {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
InputGroup2,
|
|
6
6
|
InputGroupAddon2,
|
|
7
7
|
InputGroupInput2
|
|
8
|
-
} from "./chunk-
|
|
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";
|
|
@@ -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 };
|
|
@@ -12,31 +12,31 @@ import {
|
|
|
12
12
|
} from "./chunk-gb16cwpw.js";
|
|
13
13
|
import {
|
|
14
14
|
ModelSelectorFocusAnchor2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-z7ss04dy.js";
|
|
16
16
|
import {
|
|
17
17
|
ModelSelectorSearch2
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2020fa8p.js";
|
|
19
19
|
import {
|
|
20
20
|
ModelSelectorEmpty2
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-r8aqd5cv.js";
|
|
22
22
|
import {
|
|
23
23
|
ModelSelectorItem2
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-0ma1y626.js";
|
|
25
25
|
import {
|
|
26
26
|
ModelSelectorList2
|
|
27
|
-
} from "./chunk-
|
|
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-
|
|
33
|
+
} from "./chunk-sh33xyc2.js";
|
|
34
34
|
import {
|
|
35
35
|
ModelSelectorGroup2
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-9xv585b3.js";
|
|
37
37
|
import {
|
|
38
38
|
ModelSelectorSeparator2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-46fpdn58.js";
|
|
40
40
|
|
|
41
41
|
// src/components/assistant-ui/native/ModelSelector.tsx
|
|
42
42
|
import { memo, useEffect } from "react";
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "./chunk-bf8kbj33.js";
|
|
5
5
|
import {
|
|
6
6
|
Command2
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
13
|
+
} from "./chunk-z7ss04dy.js";
|
|
14
14
|
import {
|
|
15
15
|
ModelSelectorSearch2
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2020fa8p.js";
|
|
17
17
|
import {
|
|
18
18
|
ModelSelectorList2
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-dd0400gw.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelSelectorEffort2
|
|
22
22
|
} from "./chunk-pzr1f2tz.js";
|