@adea-ai/ui 0.128.4 → 0.130.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/components/theme/script.d.ts +12 -0
- package/dist/components/theme/script.d.ts.map +1 -0
- package/dist/components/theme/script.js +2 -0
- package/dist/components/ui/textarea/textarea.d.ts +3 -2
- package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea/textarea.js +4 -2
- package/dist/components/ui/textarea/textarea.js.map +1 -1
- package/dist/r/registry.json +5 -0
- package/dist/r/src/components/theme/script.ts +11 -0
- package/dist/r/src/components/ui/textarea/textarea.tsx +3 -1
- package/dist/r/theming.json +5 -0
- package/package.json +7 -1
- package/registry.json +5 -0
- package/src/components/theme/script.ts +11 -0
- package/src/components/ui/textarea/textarea.tsx +3 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The no-flash boot script, importable where there is no UI runtime.
|
|
3
|
+
*
|
|
4
|
+
* `themeScript` writes the document attributes before first paint. A host that
|
|
5
|
+
* renders its HTML at build time (a Vite `index.html` served by a desktop shell
|
|
6
|
+
* whose CSP allows no inline script) needs the string in Node, and the provider
|
|
7
|
+
* entries cannot be imported there: they load Solid's client runtime. This entry
|
|
8
|
+
* holds only the script and the types it takes, so it loads anywhere.
|
|
9
|
+
*/
|
|
10
|
+
export { inlineScriptLiteral, themeScript, type ThemeScriptOptions } from './theme-script';
|
|
11
|
+
export type { ThemeStorageSchema } from './theme-persistence';
|
|
12
|
+
//# sourceMappingURL=script.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../../../src/components/theme/script.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAC1F,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentProps, Ref } from 'solid-js';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const textareaVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "composer" | null | undefined;
|
|
4
|
+
variant?: "code" | "default" | "composer" | null | undefined;
|
|
5
5
|
size?: "default" | "comfortable" | null | undefined;
|
|
6
6
|
resize?: "none" | "both" | "vertical" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -20,7 +20,8 @@ export type TextareaProps = Omit<ComponentProps<'textarea'>, 'size'> & VariantPr
|
|
|
20
20
|
* engine supports it, which is the behaviour a chat composer wants; `rows`
|
|
21
21
|
* remains the fallback so an unsupported engine still gets a usable height.
|
|
22
22
|
* `variant="composer"` removes the standalone field surface when nested in a
|
|
23
|
-
* composer shell. `
|
|
23
|
+
* composer shell. `variant="code"` keeps the field surface and sets the
|
|
24
|
+
* monospace face, for commands, snippets and other literal text. `size="comfortable"` caps growth at the shared 12rem rung, and
|
|
24
25
|
* the finite `resize` variants keep browser resize behavior explicit.
|
|
25
26
|
*/
|
|
26
27
|
export declare function Textarea(props: TextareaProps): import("solid-js").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAEnD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,eAAO,MAAM,gBAAgB;;;;
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAEnD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,eAAO,MAAM,gBAAgB;;;;8EAiC5B,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,GAClE,YAAY,CAAC,OAAO,gBAAgB,CAAC,GAAG;IACtC,qFAAqF;IACrF,GAAG,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAA;CAC/B,CAAA;AAEH;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,kCAwC5C"}
|
|
@@ -17,7 +17,8 @@ var textareaVariants = cva([
|
|
|
17
17
|
variants: {
|
|
18
18
|
variant: {
|
|
19
19
|
default: "",
|
|
20
|
-
composer: "border-0 bg-transparent p-0 shadow-none focus-visible:ring-0"
|
|
20
|
+
composer: "border-0 bg-transparent p-0 shadow-none focus-visible:ring-0",
|
|
21
|
+
code: "font-mono"
|
|
21
22
|
},
|
|
22
23
|
size: {
|
|
23
24
|
default: "min-h-16",
|
|
@@ -46,7 +47,8 @@ var textareaVariants = cva([
|
|
|
46
47
|
* engine supports it, which is the behaviour a chat composer wants; `rows`
|
|
47
48
|
* remains the fallback so an unsupported engine still gets a usable height.
|
|
48
49
|
* `variant="composer"` removes the standalone field surface when nested in a
|
|
49
|
-
* composer shell. `
|
|
50
|
+
* composer shell. `variant="code"` keeps the field surface and sets the
|
|
51
|
+
* monospace face, for commands, snippets and other literal text. `size="comfortable"` caps growth at the shared 12rem rung, and
|
|
50
52
|
* the finite `resize` variants keep browser resize behavior explicit.
|
|
51
53
|
*/
|
|
52
54
|
function Textarea(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.js","names":["ComponentProps","Ref","splitProps","cva","VariantProps","useFormFieldControl","cn","textareaVariants","variants","variant","default","composer","size","comfortable","resize","vertical","none","both","defaultVariants","TextareaProps","Omit","ref","HTMLTextAreaElement","Textarea","props","local","rest","field","id","_el$","_tmpl$","_ref$","_$use","_$spread","_$mergeProps","aria-label","aria-labelledby","aria-describedby","aria-invalid","aria-errormessage","class","_$use","_$mergeProps"],"sources":["../../../../src/components/ui/textarea/textarea.tsx"],"sourcesContent":["import type { ComponentProps, Ref } from 'solid-js'\nimport { splitProps } from 'solid-js'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { useFormFieldControl } from '#lib/form-field'\nimport { cn } from '#lib/utils'\n\nexport const textareaVariants = cva(\n [\n 'flex field-sizing-content w-full rounded-md border border-input bg-transparent px-control-md py-2 text-sm',\n 'transition-[color,box-shadow,border-color] ease-out outline-none',\n 'placeholder:text-muted-foreground',\n 'selection:bg-primary selection:text-primary-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive-subtle',\n 'disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',\n ],\n {\n variants: {\n variant: {\n default: '',\n composer: 'border-0 bg-transparent p-0 shadow-none focus-visible:ring-0',\n },\n size: {\n default: 'min-h-16',\n comfortable: 'min-h-16 max-h-48',\n },\n resize: {\n vertical: 'resize-y',\n none: 'resize-none',\n both: 'resize',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n resize: 'vertical',\n },\n }\n)\n\nexport type TextareaProps = Omit<ComponentProps<'textarea'>, 'size'> &\n VariantProps<typeof textareaVariants> & {\n /** Solid's actual textarea element, rather than its containing component or form. */\n ref?: Ref<HTMLTextAreaElement>\n }\n\n/**\n * Textarea.\n *\n * Shares the Input's border, focus and invalid treatment exactly — the two are\n * the same control at different aspect ratios, and a form that mixes them must\n * not show a seam between them.\n *\n * `field-sizing: content` lets the element grow with its content where the\n * engine supports it, which is the behaviour a chat composer wants; `rows`\n * remains the fallback so an unsupported engine still gets a usable height.\n * `variant=\"composer\"` removes the standalone field surface when nested in a\n * composer shell. `size=\"comfortable\"` caps growth at the shared 12rem rung, and\n * the finite `resize` variants keep browser resize behavior explicit.\n */\nexport function Textarea(props: TextareaProps) {\n const [local, rest] = splitProps(props, [\n 'class',\n 'variant',\n 'size',\n 'resize',\n 'ref',\n 'id',\n 'aria-label',\n 'aria-labelledby',\n 'aria-describedby',\n 'aria-invalid',\n 'aria-errormessage',\n ])\n const field = useFormFieldControl('control', {\n id: local.id,\n 'aria-label': local['aria-label'],\n 'aria-labelledby': local['aria-labelledby'],\n 'aria-describedby': local['aria-describedby'],\n 'aria-invalid': local['aria-invalid'],\n 'aria-errormessage': local['aria-errormessage'],\n })\n\n return (\n <textarea\n data-slot=\"textarea\"\n id={field?.id ?? local.id}\n aria-label={local['aria-label']}\n aria-labelledby={field?.['aria-labelledby'] ?? local['aria-labelledby']}\n aria-describedby={field?.['aria-describedby'] ?? local['aria-describedby']}\n aria-invalid={field?.['aria-invalid'] ?? local['aria-invalid']}\n aria-errormessage={field?.['aria-errormessage'] ?? local['aria-errormessage']}\n ref={local.ref}\n class={cn(\n textareaVariants({ variant: local.variant, size: local.size, resize: local.resize }),\n local.class\n )}\n {...rest}\n />\n )\n}\n"],"mappings":";;;;;;;AAMA,IAAaO,mBAAmBJ,IAC9B;CACE;CACA;CACA;CACA;CACA;CACA;CACA;AAA8E,GAEhF;CACEK,UAAU;EACRC,SAAS;GACPC,SAAS;GACTC,UAAU;
|
|
1
|
+
{"version":3,"file":"textarea.js","names":["ComponentProps","Ref","splitProps","cva","VariantProps","useFormFieldControl","cn","textareaVariants","variants","variant","default","composer","code","size","comfortable","resize","vertical","none","both","defaultVariants","TextareaProps","Omit","ref","HTMLTextAreaElement","Textarea","props","local","rest","field","id","_el$","_tmpl$","_ref$","_$use","_$spread","_$mergeProps","aria-label","aria-labelledby","aria-describedby","aria-invalid","aria-errormessage","class","_$use","_$mergeProps"],"sources":["../../../../src/components/ui/textarea/textarea.tsx"],"sourcesContent":["import type { ComponentProps, Ref } from 'solid-js'\nimport { splitProps } from 'solid-js'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { useFormFieldControl } from '#lib/form-field'\nimport { cn } from '#lib/utils'\n\nexport const textareaVariants = cva(\n [\n 'flex field-sizing-content w-full rounded-md border border-input bg-transparent px-control-md py-2 text-sm',\n 'transition-[color,box-shadow,border-color] ease-out outline-none',\n 'placeholder:text-muted-foreground',\n 'selection:bg-primary selection:text-primary-foreground',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n 'aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive-subtle',\n 'disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',\n ],\n {\n variants: {\n variant: {\n default: '',\n composer: 'border-0 bg-transparent p-0 shadow-none focus-visible:ring-0',\n code: 'font-mono',\n },\n size: {\n default: 'min-h-16',\n comfortable: 'min-h-16 max-h-48',\n },\n resize: {\n vertical: 'resize-y',\n none: 'resize-none',\n both: 'resize',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n resize: 'vertical',\n },\n }\n)\n\nexport type TextareaProps = Omit<ComponentProps<'textarea'>, 'size'> &\n VariantProps<typeof textareaVariants> & {\n /** Solid's actual textarea element, rather than its containing component or form. */\n ref?: Ref<HTMLTextAreaElement>\n }\n\n/**\n * Textarea.\n *\n * Shares the Input's border, focus and invalid treatment exactly — the two are\n * the same control at different aspect ratios, and a form that mixes them must\n * not show a seam between them.\n *\n * `field-sizing: content` lets the element grow with its content where the\n * engine supports it, which is the behaviour a chat composer wants; `rows`\n * remains the fallback so an unsupported engine still gets a usable height.\n * `variant=\"composer\"` removes the standalone field surface when nested in a\n * composer shell. `variant=\"code\"` keeps the field surface and sets the\n * monospace face, for commands, snippets and other literal text. `size=\"comfortable\"` caps growth at the shared 12rem rung, and\n * the finite `resize` variants keep browser resize behavior explicit.\n */\nexport function Textarea(props: TextareaProps) {\n const [local, rest] = splitProps(props, [\n 'class',\n 'variant',\n 'size',\n 'resize',\n 'ref',\n 'id',\n 'aria-label',\n 'aria-labelledby',\n 'aria-describedby',\n 'aria-invalid',\n 'aria-errormessage',\n ])\n const field = useFormFieldControl('control', {\n id: local.id,\n 'aria-label': local['aria-label'],\n 'aria-labelledby': local['aria-labelledby'],\n 'aria-describedby': local['aria-describedby'],\n 'aria-invalid': local['aria-invalid'],\n 'aria-errormessage': local['aria-errormessage'],\n })\n\n return (\n <textarea\n data-slot=\"textarea\"\n id={field?.id ?? local.id}\n aria-label={local['aria-label']}\n aria-labelledby={field?.['aria-labelledby'] ?? local['aria-labelledby']}\n aria-describedby={field?.['aria-describedby'] ?? local['aria-describedby']}\n aria-invalid={field?.['aria-invalid'] ?? local['aria-invalid']}\n aria-errormessage={field?.['aria-errormessage'] ?? local['aria-errormessage']}\n ref={local.ref}\n class={cn(\n textareaVariants({ variant: local.variant, size: local.size, resize: local.resize }),\n local.class\n )}\n {...rest}\n />\n )\n}\n"],"mappings":";;;;;;;AAMA,IAAaO,mBAAmBJ,IAC9B;CACE;CACA;CACA;CACA;CACA;CACA;CACA;AAA8E,GAEhF;CACEK,UAAU;EACRC,SAAS;GACPC,SAAS;GACTC,UAAU;GACVC,MAAM;EACR;EACAC,MAAM;GACJH,SAAS;GACTI,aAAa;EACf;EACAC,QAAQ;GACNC,UAAU;GACVC,MAAM;GACNC,MAAM;EACR;CACF;CACAC,iBAAiB;EACfV,SAAS;EACTI,MAAM;EACNE,QAAQ;CACV;AACF,CACF;;;;;;;;;;;;;;;;AAuBA,SAAgBS,SAASC,OAAsB;CAC7C,MAAM,CAACC,OAAOC,QAAQzB,WAAWuB,OAAO;EACtC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CAAmB,CACpB;CACD,MAAMG,QAAQvB,oBAAoB,WAAW;EAC3CwB,IAAIH,MAAMG;EACV,cAAcH,MAAM;EACpB,mBAAmBA,MAAM;EACzB,oBAAoBA,MAAM;EAC1B,gBAAgBA,MAAM;EACtB,qBAAqBA,MAAM;CAC7B,CAAC;CAED,cAAA;EAAA,IAAAI,OAAAC,OAAA;EAAA,IAAAC,QASSN,MAAMJ;EAAG,OAAAU,UAAA,aAAAC,IAAAD,OAAAF,IAAA,IAATJ,MAAMJ,MAAGQ;EAAAI,OAAAJ,MAAAK,WAAA;GAAA,IANdN,KAAE;IAAA,OAAED,OAAOC,MAAMH,MAAMG;GAAE;GAAA,KAAA,gBAAA;IAAA,OACbH,MAAM;GAAa;GAAA,KAAA,qBAAA;IAAA,OACdE,QAAQ,sBAAsBF,MAAM;GAAkB;GAAA,KAAA,sBAAA;IAAA,OACrDE,QAAQ,uBAAuBF,MAAM;GAAmB;GAAA,KAAA,kBAAA;IAAA,OAC5DE,QAAQ,mBAAmBF,MAAM;GAAe;GAAA,KAAA,uBAAA;IAAA,OAC3CE,QAAQ,wBAAwBF,MAAM;GAAoB;GAAA,KAAA,WAAA;IAAA,OAEtEpB,GACLC,iBAAiB;KAAEE,SAASiB,MAAMjB;KAASI,MAAMa,MAAMb;KAAME,QAAQW,MAAMX;IAAO,CAAC,GACnFW,MAAMe,KACR;GAAC;EAAA,GACGd,IAAI,GAAA,OAAA,KAAA;EAAA,OAAAG;CAAA,EAAA,CAAA;AAGd"}
|
package/dist/r/registry.json
CHANGED
|
@@ -2532,6 +2532,11 @@
|
|
|
2532
2532
|
"type": "registry:ui",
|
|
2533
2533
|
"target": "components/theming/lazy.ts"
|
|
2534
2534
|
},
|
|
2535
|
+
{
|
|
2536
|
+
"path": "src/components/theme/script.ts",
|
|
2537
|
+
"type": "registry:ui",
|
|
2538
|
+
"target": "components/theming/script.ts"
|
|
2539
|
+
},
|
|
2535
2540
|
{
|
|
2536
2541
|
"path": "src/components/theme/theme-catalogue-source.ts",
|
|
2537
2542
|
"type": "registry:ui",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The no-flash boot script, importable where there is no UI runtime.
|
|
3
|
+
*
|
|
4
|
+
* `themeScript` writes the document attributes before first paint. A host that
|
|
5
|
+
* renders its HTML at build time (a Vite `index.html` served by a desktop shell
|
|
6
|
+
* whose CSP allows no inline script) needs the string in Node, and the provider
|
|
7
|
+
* entries cannot be imported there: they load Solid's client runtime. This entry
|
|
8
|
+
* holds only the script and the types it takes, so it loads anywhere.
|
|
9
|
+
*/
|
|
10
|
+
export { inlineScriptLiteral, themeScript, type ThemeScriptOptions } from './theme-script'
|
|
11
|
+
export type { ThemeStorageSchema } from './theme-persistence'
|
|
@@ -19,6 +19,7 @@ export const textareaVariants = cva(
|
|
|
19
19
|
variant: {
|
|
20
20
|
default: '',
|
|
21
21
|
composer: 'border-0 bg-transparent p-0 shadow-none focus-visible:ring-0',
|
|
22
|
+
code: 'font-mono',
|
|
22
23
|
},
|
|
23
24
|
size: {
|
|
24
25
|
default: 'min-h-16',
|
|
@@ -55,7 +56,8 @@ export type TextareaProps = Omit<ComponentProps<'textarea'>, 'size'> &
|
|
|
55
56
|
* engine supports it, which is the behaviour a chat composer wants; `rows`
|
|
56
57
|
* remains the fallback so an unsupported engine still gets a usable height.
|
|
57
58
|
* `variant="composer"` removes the standalone field surface when nested in a
|
|
58
|
-
* composer shell. `
|
|
59
|
+
* composer shell. `variant="code"` keeps the field surface and sets the
|
|
60
|
+
* monospace face, for commands, snippets and other literal text. `size="comfortable"` caps growth at the shared 12rem rung, and
|
|
59
61
|
* the finite `resize` variants keep browser resize behavior explicit.
|
|
60
62
|
*/
|
|
61
63
|
export function Textarea(props: TextareaProps) {
|
package/dist/r/theming.json
CHANGED
|
@@ -33,6 +33,11 @@
|
|
|
33
33
|
"type": "registry:ui",
|
|
34
34
|
"target": "components/theming/lazy.ts"
|
|
35
35
|
},
|
|
36
|
+
{
|
|
37
|
+
"path": "src/components/theme/script.ts",
|
|
38
|
+
"type": "registry:ui",
|
|
39
|
+
"target": "components/theming/script.ts"
|
|
40
|
+
},
|
|
36
41
|
{
|
|
37
42
|
"path": "src/components/theme/theme-catalogue-source.ts",
|
|
38
43
|
"type": "registry:ui",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adea-ai/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.130.0",
|
|
4
4
|
"description": "The Adea design system: Kobalte-backed Solid components, semantic OKLCH tokens, and the app-shell layout primitives shared by Adea and Cortana.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adea",
|
|
@@ -74,6 +74,12 @@
|
|
|
74
74
|
"./fonts.css": "./src/styles/fonts.css",
|
|
75
75
|
"./registry.json": "./registry.json",
|
|
76
76
|
"./package.json": "./package.json",
|
|
77
|
+
"./components/theme/script": {
|
|
78
|
+
"types": "./dist/components/theme/script.d.ts",
|
|
79
|
+
"solid": "./src/components/theme/script.ts",
|
|
80
|
+
"development": "./src/components/theme/script.ts",
|
|
81
|
+
"import": "./dist/components/theme/script.js"
|
|
82
|
+
},
|
|
77
83
|
"./components/theme/lazy": {
|
|
78
84
|
"types": "./dist/components/theme/lazy.d.ts",
|
|
79
85
|
"solid": "./src/components/theme/lazy.ts",
|
package/registry.json
CHANGED
|
@@ -2532,6 +2532,11 @@
|
|
|
2532
2532
|
"type": "registry:ui",
|
|
2533
2533
|
"target": "components/theming/lazy.ts"
|
|
2534
2534
|
},
|
|
2535
|
+
{
|
|
2536
|
+
"path": "src/components/theme/script.ts",
|
|
2537
|
+
"type": "registry:ui",
|
|
2538
|
+
"target": "components/theming/script.ts"
|
|
2539
|
+
},
|
|
2535
2540
|
{
|
|
2536
2541
|
"path": "src/components/theme/theme-catalogue-source.ts",
|
|
2537
2542
|
"type": "registry:ui",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The no-flash boot script, importable where there is no UI runtime.
|
|
3
|
+
*
|
|
4
|
+
* `themeScript` writes the document attributes before first paint. A host that
|
|
5
|
+
* renders its HTML at build time (a Vite `index.html` served by a desktop shell
|
|
6
|
+
* whose CSP allows no inline script) needs the string in Node, and the provider
|
|
7
|
+
* entries cannot be imported there: they load Solid's client runtime. This entry
|
|
8
|
+
* holds only the script and the types it takes, so it loads anywhere.
|
|
9
|
+
*/
|
|
10
|
+
export { inlineScriptLiteral, themeScript, type ThemeScriptOptions } from './theme-script'
|
|
11
|
+
export type { ThemeStorageSchema } from './theme-persistence'
|
|
@@ -19,6 +19,7 @@ export const textareaVariants = cva(
|
|
|
19
19
|
variant: {
|
|
20
20
|
default: '',
|
|
21
21
|
composer: 'border-0 bg-transparent p-0 shadow-none focus-visible:ring-0',
|
|
22
|
+
code: 'font-mono',
|
|
22
23
|
},
|
|
23
24
|
size: {
|
|
24
25
|
default: 'min-h-16',
|
|
@@ -55,7 +56,8 @@ export type TextareaProps = Omit<ComponentProps<'textarea'>, 'size'> &
|
|
|
55
56
|
* engine supports it, which is the behaviour a chat composer wants; `rows`
|
|
56
57
|
* remains the fallback so an unsupported engine still gets a usable height.
|
|
57
58
|
* `variant="composer"` removes the standalone field surface when nested in a
|
|
58
|
-
* composer shell. `
|
|
59
|
+
* composer shell. `variant="code"` keeps the field surface and sets the
|
|
60
|
+
* monospace face, for commands, snippets and other literal text. `size="comfortable"` caps growth at the shared 12rem rung, and
|
|
59
61
|
* the finite `resize` variants keep browser resize behavior explicit.
|
|
60
62
|
*/
|
|
61
63
|
export function Textarea(props: TextareaProps) {
|