@imfusion/web-ui 0.11.1-dev.27.g921aea14 → 0.11.1-dev.30.g5f35727d
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/CHANGELOG.md +8 -1
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea.d.ts +32 -0
- package/dist/components/textarea/textarea.meta.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1386 -1312
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/docgen/doc.gen.json +86 -0
- package/src/llms/llms.gen.txt +6 -0
package/package.json
CHANGED
package/src/docgen/doc.gen.json
CHANGED
|
@@ -11260,6 +11260,92 @@
|
|
|
11260
11260
|
}
|
|
11261
11261
|
]
|
|
11262
11262
|
},
|
|
11263
|
+
"textarea": {
|
|
11264
|
+
"root": {
|
|
11265
|
+
"name": "Textarea",
|
|
11266
|
+
"description": "Multi-line text input. Also called a text area; use Input for a single line.\nWraps Base UI Input rendered as a textarea for controlled/uncontrolled state, form integration,\nand Field context awareness (valid/invalid/dirty/touched/filled/focused). `className` and `style`\ngo to the root wrapper; every other prop goes to the textarea.",
|
|
11267
|
+
"props": [
|
|
11268
|
+
{
|
|
11269
|
+
"name": "className",
|
|
11270
|
+
"required": false,
|
|
11271
|
+
"type": "string",
|
|
11272
|
+
"defaultValue": null,
|
|
11273
|
+
"description": "Class of the root wrapper that lays the field out."
|
|
11274
|
+
},
|
|
11275
|
+
{
|
|
11276
|
+
"name": "defaultValue",
|
|
11277
|
+
"required": false,
|
|
11278
|
+
"type": "string | number | readonly string[]",
|
|
11279
|
+
"defaultValue": null,
|
|
11280
|
+
"description": "The default value of the input. Use when uncontrolled."
|
|
11281
|
+
},
|
|
11282
|
+
{
|
|
11283
|
+
"name": "onValueChange",
|
|
11284
|
+
"required": false,
|
|
11285
|
+
"type": "(\n value: string,\n eventDetails: {\n reason: \"none\";\n event: Event;\n cancel: () => void;\n allowPropagation: () => void;\n isCanceled: boolean;\n isPropagationAllowed: boolean;\n trigger: Element;\n }\n) => void",
|
|
11286
|
+
"defaultValue": null,
|
|
11287
|
+
"description": "Callback fired when the `value` changes. Use when controlled."
|
|
11288
|
+
},
|
|
11289
|
+
{
|
|
11290
|
+
"name": "ref",
|
|
11291
|
+
"required": false,
|
|
11292
|
+
"type": "Ref<HTMLTextAreaElement>",
|
|
11293
|
+
"defaultValue": null,
|
|
11294
|
+
"description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
|
|
11295
|
+
},
|
|
11296
|
+
{
|
|
11297
|
+
"name": "render",
|
|
11298
|
+
"required": false,
|
|
11299
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, InputState>",
|
|
11300
|
+
"defaultValue": "<textarea />",
|
|
11301
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
11302
|
+
},
|
|
11303
|
+
{
|
|
11304
|
+
"name": "resize",
|
|
11305
|
+
"required": false,
|
|
11306
|
+
"type": "\"vertical\" | \"horizontal\" | \"both\" | \"none\"",
|
|
11307
|
+
"defaultValue": "vertical",
|
|
11308
|
+
"description": "Which directions the user can drag to resize. `horizontal` and `both` size the textarea from `cols` and shrink-wrap\nthe root, so the width follows the drag; `none` hides the resize corner."
|
|
11309
|
+
},
|
|
11310
|
+
{
|
|
11311
|
+
"name": "rows",
|
|
11312
|
+
"required": false,
|
|
11313
|
+
"type": "number",
|
|
11314
|
+
"defaultValue": "3",
|
|
11315
|
+
"description": "Number of visible text lines."
|
|
11316
|
+
},
|
|
11317
|
+
{
|
|
11318
|
+
"name": "size",
|
|
11319
|
+
"required": false,
|
|
11320
|
+
"type": "\"sm\" | \"md\" | \"lg\" | null",
|
|
11321
|
+
"defaultValue": "md",
|
|
11322
|
+
"description": ""
|
|
11323
|
+
},
|
|
11324
|
+
{
|
|
11325
|
+
"name": "style",
|
|
11326
|
+
"required": false,
|
|
11327
|
+
"type": "CSSProperties",
|
|
11328
|
+
"defaultValue": null,
|
|
11329
|
+
"description": "Style of the root wrapper that lays the field out."
|
|
11330
|
+
},
|
|
11331
|
+
{
|
|
11332
|
+
"name": "value",
|
|
11333
|
+
"required": false,
|
|
11334
|
+
"type": "string | number | readonly string[]",
|
|
11335
|
+
"defaultValue": null,
|
|
11336
|
+
"description": "The value of the input. Use when controlled."
|
|
11337
|
+
},
|
|
11338
|
+
{
|
|
11339
|
+
"name": "variant",
|
|
11340
|
+
"required": false,
|
|
11341
|
+
"type": "\"outline\" | \"filled\" | \"ghost\" | null",
|
|
11342
|
+
"defaultValue": "outline",
|
|
11343
|
+
"description": ""
|
|
11344
|
+
}
|
|
11345
|
+
]
|
|
11346
|
+
},
|
|
11347
|
+
"subComponents": []
|
|
11348
|
+
},
|
|
11263
11349
|
"toast": {
|
|
11264
11350
|
"root": {
|
|
11265
11351
|
"name": "Toast.Root",
|
package/src/llms/llms.gen.txt
CHANGED
|
@@ -252,6 +252,12 @@ Switches between related panels within one view. Also called a tab strip or tab
|
|
|
252
252
|
- props: node_modules/@imfusion/web-ui/src/docgen/doc.gen.json -> .tabs (jq: jq '.tabs' node_modules/@imfusion/web-ui/src/docgen/doc.gen.json)
|
|
253
253
|
- further reading (usage/anatomy, not props): https://base-ui.com/react/components/tabs.md
|
|
254
254
|
|
|
255
|
+
## Textarea
|
|
256
|
+
- category: Inputs, status: experimental
|
|
257
|
+
Multi-line text input for longer free text, such as a description or note. Also called a text area; use Input for a single line. It reads validation state from Field.
|
|
258
|
+
- props: node_modules/@imfusion/web-ui/src/docgen/doc.gen.json -> .textarea (jq: jq '.textarea' node_modules/@imfusion/web-ui/src/docgen/doc.gen.json)
|
|
259
|
+
- further reading (usage/anatomy, not props): https://base-ui.com/react/components/input.md
|
|
260
|
+
|
|
255
261
|
## Toast
|
|
256
262
|
- category: Display, status: experimental
|
|
257
263
|
Transient message stack that reports the outcome of a background action without interrupting the page. Use for save confirmations, undo offers, and async progress; attach one to an element for contextual feedback like a copy confirmation. Also called a snackbar, notification, or flash message; for a message that stays inline in the page use Callout instead.
|