@warp-ds/elements 2.5.1-next.2 → 2.5.1-next.3

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 (29) hide show
  1. package/dist/custom-elements.json +327 -0
  2. package/dist/index.d.ts +163 -0
  3. package/dist/packages/textarea/locales/da/messages.d.mts +1 -0
  4. package/dist/packages/textarea/locales/da/messages.mjs +1 -0
  5. package/dist/packages/textarea/locales/en/messages.d.mts +1 -0
  6. package/dist/packages/textarea/locales/en/messages.mjs +1 -0
  7. package/dist/packages/textarea/locales/fi/messages.d.mts +1 -0
  8. package/dist/packages/textarea/locales/fi/messages.mjs +1 -0
  9. package/dist/packages/textarea/locales/nb/messages.d.mts +1 -0
  10. package/dist/packages/textarea/locales/nb/messages.mjs +1 -0
  11. package/dist/packages/textarea/locales/sv/messages.d.mts +1 -0
  12. package/dist/packages/textarea/locales/sv/messages.mjs +1 -0
  13. package/dist/packages/textarea/react.d.ts +11 -0
  14. package/dist/packages/textarea/react.js +21 -0
  15. package/dist/packages/textarea/styles.d.ts +1 -0
  16. package/dist/packages/textarea/styles.js +2 -0
  17. package/dist/packages/textarea/textarea.d.ts +49 -0
  18. package/dist/packages/textarea/textarea.js +2475 -0
  19. package/dist/packages/textarea/textarea.js.map +7 -0
  20. package/dist/packages/textarea/textarea.react.stories.d.ts +33 -0
  21. package/dist/packages/textarea/textarea.react.stories.js +41 -0
  22. package/dist/packages/textarea/textarea.stories.d.ts +19 -0
  23. package/dist/packages/textarea/textarea.stories.js +85 -0
  24. package/dist/packages/textarea/textarea.test.d.ts +1 -0
  25. package/dist/packages/textarea/textarea.test.js +84 -0
  26. package/dist/packages/utils.d.ts +1 -0
  27. package/dist/packages/utils.js +4 -0
  28. package/dist/web-types.json +42 -1
  29. package/package.json +5 -1
@@ -4989,6 +4989,333 @@
4989
4989
  }
4990
4990
  }
4991
4991
  ]
4992
+ },
4993
+ {
4994
+ "kind": "javascript-module",
4995
+ "path": "packages/textarea/textarea.ts",
4996
+ "declarations": [
4997
+ {
4998
+ "kind": "class",
4999
+ "description": "A single line text input element.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)",
5000
+ "name": "WarpTextarea",
5001
+ "members": [
5002
+ {
5003
+ "kind": "field",
5004
+ "name": "shadowRootOptions",
5005
+ "type": {
5006
+ "text": "object"
5007
+ },
5008
+ "static": true,
5009
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
5010
+ },
5011
+ {
5012
+ "kind": "field",
5013
+ "name": "disabled",
5014
+ "type": {
5015
+ "text": "boolean"
5016
+ },
5017
+ "attribute": "disabled",
5018
+ "reflects": true
5019
+ },
5020
+ {
5021
+ "kind": "field",
5022
+ "name": "invalid",
5023
+ "type": {
5024
+ "text": "boolean"
5025
+ },
5026
+ "attribute": "invalid",
5027
+ "reflects": true
5028
+ },
5029
+ {
5030
+ "kind": "field",
5031
+ "name": "label",
5032
+ "type": {
5033
+ "text": "string"
5034
+ },
5035
+ "attribute": "label",
5036
+ "reflects": true
5037
+ },
5038
+ {
5039
+ "kind": "field",
5040
+ "name": "helpText",
5041
+ "type": {
5042
+ "text": "string"
5043
+ },
5044
+ "attribute": "help-text",
5045
+ "reflects": true
5046
+ },
5047
+ {
5048
+ "kind": "field",
5049
+ "name": "maxRows",
5050
+ "type": {
5051
+ "text": "number"
5052
+ },
5053
+ "attribute": "maximum-rows",
5054
+ "reflects": true
5055
+ },
5056
+ {
5057
+ "kind": "field",
5058
+ "name": "minRows",
5059
+ "type": {
5060
+ "text": "number"
5061
+ },
5062
+ "attribute": "minimum-rows",
5063
+ "reflects": true
5064
+ },
5065
+ {
5066
+ "kind": "field",
5067
+ "name": "name",
5068
+ "type": {
5069
+ "text": "string"
5070
+ },
5071
+ "attribute": "name"
5072
+ },
5073
+ {
5074
+ "kind": "field",
5075
+ "name": "placeholder",
5076
+ "type": {
5077
+ "text": "string"
5078
+ },
5079
+ "attribute": "placeholder"
5080
+ },
5081
+ {
5082
+ "kind": "field",
5083
+ "name": "readOnly",
5084
+ "type": {
5085
+ "text": "boolean"
5086
+ },
5087
+ "deprecated": "Use the native readonly attribute instead. Here for API consistency with `w-textfield`.",
5088
+ "attribute": "read-only",
5089
+ "reflects": true
5090
+ },
5091
+ {
5092
+ "kind": "field",
5093
+ "name": "readonly",
5094
+ "type": {
5095
+ "text": "boolean"
5096
+ },
5097
+ "attribute": "readonly",
5098
+ "reflects": true
5099
+ },
5100
+ {
5101
+ "kind": "field",
5102
+ "name": "required",
5103
+ "type": {
5104
+ "text": "boolean"
5105
+ },
5106
+ "attribute": "required",
5107
+ "reflects": true
5108
+ },
5109
+ {
5110
+ "kind": "field",
5111
+ "name": "value",
5112
+ "type": {
5113
+ "text": "string"
5114
+ },
5115
+ "attribute": "value",
5116
+ "reflects": true
5117
+ },
5118
+ {
5119
+ "kind": "field",
5120
+ "name": "optional",
5121
+ "type": {
5122
+ "text": "boolean"
5123
+ },
5124
+ "attribute": "optional",
5125
+ "reflects": true
5126
+ },
5127
+ {
5128
+ "kind": "field",
5129
+ "name": "minHeight"
5130
+ },
5131
+ {
5132
+ "kind": "field",
5133
+ "name": "maxHeight"
5134
+ },
5135
+ {
5136
+ "kind": "field",
5137
+ "name": "#initialValue",
5138
+ "privacy": "private",
5139
+ "type": {
5140
+ "text": "string | null"
5141
+ },
5142
+ "default": "null"
5143
+ },
5144
+ {
5145
+ "kind": "field",
5146
+ "name": "#uniqueId",
5147
+ "privacy": "private"
5148
+ },
5149
+ {
5150
+ "kind": "method",
5151
+ "name": "resetFormControl",
5152
+ "return": {
5153
+ "type": {
5154
+ "text": "void"
5155
+ }
5156
+ },
5157
+ "type": {
5158
+ "text": "resetFormControl() => void"
5159
+ }
5160
+ },
5161
+ {
5162
+ "kind": "method",
5163
+ "name": "handler",
5164
+ "parameters": [
5165
+ {
5166
+ "name": "e",
5167
+ "type": {
5168
+ "text": "InputEvent"
5169
+ }
5170
+ }
5171
+ ],
5172
+ "type": {
5173
+ "text": "handler(e: InputEvent) => void"
5174
+ }
5175
+ },
5176
+ {
5177
+ "kind": "method",
5178
+ "name": "#resize",
5179
+ "privacy": "private",
5180
+ "parameters": [
5181
+ {
5182
+ "name": "target",
5183
+ "type": {
5184
+ "text": "HTMLTextAreaElement"
5185
+ }
5186
+ }
5187
+ ],
5188
+ "description": "Calculate the new height for the area on input"
5189
+ }
5190
+ ],
5191
+ "attributes": [
5192
+ {
5193
+ "name": "disabled",
5194
+ "type": {
5195
+ "text": "boolean"
5196
+ },
5197
+ "fieldName": "disabled"
5198
+ },
5199
+ {
5200
+ "name": "invalid",
5201
+ "type": {
5202
+ "text": "boolean"
5203
+ },
5204
+ "fieldName": "invalid"
5205
+ },
5206
+ {
5207
+ "name": "label",
5208
+ "type": {
5209
+ "text": "string"
5210
+ },
5211
+ "fieldName": "label"
5212
+ },
5213
+ {
5214
+ "name": "help-text",
5215
+ "type": {
5216
+ "text": "string"
5217
+ },
5218
+ "fieldName": "helpText"
5219
+ },
5220
+ {
5221
+ "name": "maximum-rows",
5222
+ "type": {
5223
+ "text": "number"
5224
+ },
5225
+ "fieldName": "maxRows"
5226
+ },
5227
+ {
5228
+ "name": "minimum-rows",
5229
+ "type": {
5230
+ "text": "number"
5231
+ },
5232
+ "fieldName": "minRows"
5233
+ },
5234
+ {
5235
+ "name": "name",
5236
+ "type": {
5237
+ "text": "string"
5238
+ },
5239
+ "fieldName": "name"
5240
+ },
5241
+ {
5242
+ "name": "placeholder",
5243
+ "type": {
5244
+ "text": "string"
5245
+ },
5246
+ "fieldName": "placeholder"
5247
+ },
5248
+ {
5249
+ "name": "read-only",
5250
+ "type": {
5251
+ "text": "boolean"
5252
+ },
5253
+ "deprecated": "Use the native readonly attribute instead. Here for API consistency with `w-textfield`.",
5254
+ "fieldName": "readOnly"
5255
+ },
5256
+ {
5257
+ "name": "readonly",
5258
+ "type": {
5259
+ "text": "boolean"
5260
+ },
5261
+ "fieldName": "readonly"
5262
+ },
5263
+ {
5264
+ "name": "required",
5265
+ "type": {
5266
+ "text": "boolean"
5267
+ },
5268
+ "fieldName": "required"
5269
+ },
5270
+ {
5271
+ "name": "value",
5272
+ "type": {
5273
+ "text": "string"
5274
+ },
5275
+ "fieldName": "value"
5276
+ },
5277
+ {
5278
+ "name": "optional",
5279
+ "type": {
5280
+ "text": "boolean"
5281
+ },
5282
+ "fieldName": "optional"
5283
+ }
5284
+ ],
5285
+ "mixins": [
5286
+ {
5287
+ "name": "FormControlMixin",
5288
+ "package": "@open-wc/form-control"
5289
+ }
5290
+ ],
5291
+ "superclass": {
5292
+ "name": "LitElement",
5293
+ "package": "lit"
5294
+ },
5295
+ "tagName": "w-textarea",
5296
+ "customElement": true,
5297
+ "modulePath": "packages/textarea/textarea.ts",
5298
+ "definitionPath": "packages/textarea/textarea.ts"
5299
+ }
5300
+ ],
5301
+ "exports": [
5302
+ {
5303
+ "kind": "custom-element-definition",
5304
+ "name": "w-textarea",
5305
+ "declaration": {
5306
+ "name": "WarpTextarea",
5307
+ "module": "packages/textarea/textarea.ts"
5308
+ }
5309
+ },
5310
+ {
5311
+ "kind": "js",
5312
+ "name": "WarpTextarea",
5313
+ "declaration": {
5314
+ "name": "WarpTextarea",
5315
+ "module": "packages/textarea/textarea.ts"
5316
+ }
5317
+ }
5318
+ ]
4992
5319
  }
4993
5320
  ]
4994
5321
  }
package/dist/index.d.ts CHANGED
@@ -24,6 +24,7 @@ import type { WarpTabPanel } from "./packages/tab-panel/tab-panel.ts";
24
24
  import type { WarpTabs } from "./packages/tabs/tabs.ts";
25
25
  import type { WIcon } from "./packages/icon/icon.ts";
26
26
  import type { WarpPagination } from "./packages/pagination/pagination.ts";
27
+ import type { WarpTextarea } from "./packages/textarea/textarea.ts";
27
28
 
28
29
  /**
29
30
  * This type can be used to create scoped tags for your components.
@@ -1313,6 +1314,93 @@ export type WarpPaginationSolidJsProps = {
1313
1314
  textContent?: string | number;
1314
1315
  };
1315
1316
 
1317
+ export type WarpTextareaProps = {
1318
+ /** */
1319
+ disabled?: WarpTextarea["disabled"];
1320
+ /** */
1321
+ invalid?: WarpTextarea["invalid"];
1322
+ /** */
1323
+ label?: WarpTextarea["label"];
1324
+ /** */
1325
+ "help-text"?: WarpTextarea["helpText"];
1326
+ /** */
1327
+ helpText?: WarpTextarea["helpText"];
1328
+ /** */
1329
+ "maximum-rows"?: WarpTextarea["maxRows"];
1330
+ /** */
1331
+ maxRows?: WarpTextarea["maxRows"];
1332
+ /** */
1333
+ "minimum-rows"?: WarpTextarea["minRows"];
1334
+ /** */
1335
+ minRows?: WarpTextarea["minRows"];
1336
+ /** */
1337
+ name?: WarpTextarea["name"];
1338
+ /** */
1339
+ placeholder?: WarpTextarea["placeholder"];
1340
+ /** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
1341
+ "read-only"?: WarpTextarea["readOnly"];
1342
+ /** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
1343
+ readOnly?: WarpTextarea["readOnly"];
1344
+ /** */
1345
+ readonly?: WarpTextarea["readonly"];
1346
+ /** */
1347
+ required?: WarpTextarea["required"];
1348
+ /** */
1349
+ value?: WarpTextarea["value"];
1350
+ /** */
1351
+ optional?: WarpTextarea["optional"];
1352
+ /** */
1353
+ minHeight?: WarpTextarea["minHeight"];
1354
+ /** */
1355
+ maxHeight?: WarpTextarea["maxHeight"];
1356
+ };
1357
+
1358
+ export type WarpTextareaSolidJsProps = {
1359
+ /** */
1360
+ "prop:disabled"?: WarpTextarea["disabled"];
1361
+ /** */
1362
+ "prop:invalid"?: WarpTextarea["invalid"];
1363
+ /** */
1364
+ "prop:label"?: WarpTextarea["label"];
1365
+ /** */
1366
+ "attr:help-text"?: WarpTextarea["helpText"];
1367
+ /** */
1368
+ "prop:helpText"?: WarpTextarea["helpText"];
1369
+ /** */
1370
+ "attr:maximum-rows"?: WarpTextarea["maxRows"];
1371
+ /** */
1372
+ "prop:maxRows"?: WarpTextarea["maxRows"];
1373
+ /** */
1374
+ "attr:minimum-rows"?: WarpTextarea["minRows"];
1375
+ /** */
1376
+ "prop:minRows"?: WarpTextarea["minRows"];
1377
+ /** */
1378
+ "prop:name"?: WarpTextarea["name"];
1379
+ /** */
1380
+ "prop:placeholder"?: WarpTextarea["placeholder"];
1381
+ /** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
1382
+ "bool:read-only"?: WarpTextarea["readOnly"];
1383
+ /** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
1384
+ "prop:readOnly"?: WarpTextarea["readOnly"];
1385
+ /** */
1386
+ "prop:readonly"?: WarpTextarea["readonly"];
1387
+ /** */
1388
+ "prop:required"?: WarpTextarea["required"];
1389
+ /** */
1390
+ "prop:value"?: WarpTextarea["value"];
1391
+ /** */
1392
+ "prop:optional"?: WarpTextarea["optional"];
1393
+ /** */
1394
+ "prop:minHeight"?: WarpTextarea["minHeight"];
1395
+ /** */
1396
+ "prop:maxHeight"?: WarpTextarea["maxHeight"];
1397
+
1398
+ /** Set the innerHTML of the element */
1399
+ innerHTML?: string;
1400
+ /** Set the textContent of the element */
1401
+ textContent?: string | number;
1402
+ };
1403
+
1316
1404
  export type CustomElements = {
1317
1405
  /**
1318
1406
  * This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
@@ -1979,6 +2067,42 @@ export type CustomElements = {
1979
2067
  "w-pagination": Partial<
1980
2068
  WarpPaginationProps & BaseProps<WarpPagination> & BaseEvents
1981
2069
  >;
2070
+
2071
+ /**
2072
+ * A single line text input element.
2073
+ *
2074
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
2075
+ *
2076
+ * ## Attributes & Properties
2077
+ *
2078
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
2079
+ *
2080
+ * - `disabled`: undefined
2081
+ * - `invalid`: undefined
2082
+ * - `label`: undefined
2083
+ * - `help-text`/`helpText`: undefined
2084
+ * - `maximum-rows`/`maxRows`: undefined
2085
+ * - `minimum-rows`/`minRows`: undefined
2086
+ * - `name`: undefined
2087
+ * - `placeholder`: undefined
2088
+ * - `read-only`/`readOnly`: undefined
2089
+ * - `readonly`: undefined
2090
+ * - `required`: undefined
2091
+ * - `value`: undefined
2092
+ * - `optional`: undefined
2093
+ * - `minHeight`: undefined (property only)
2094
+ * - `maxHeight`: undefined (property only)
2095
+ *
2096
+ * ## Methods
2097
+ *
2098
+ * Methods that can be called to access component functionality.
2099
+ *
2100
+ * - `resetFormControl() => void`: undefined
2101
+ * - `handler(e: InputEvent) => void`: undefined
2102
+ */
2103
+ "w-textarea": Partial<
2104
+ WarpTextareaProps & BaseProps<WarpTextarea> & BaseEvents
2105
+ >;
1982
2106
  };
1983
2107
 
1984
2108
  export type CustomElementsSolidJs = {
@@ -2720,6 +2844,45 @@ export type CustomElementsSolidJs = {
2720
2844
  BaseProps<WarpPagination> &
2721
2845
  BaseEvents
2722
2846
  >;
2847
+
2848
+ /**
2849
+ * A single line text input element.
2850
+ *
2851
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
2852
+ *
2853
+ * ## Attributes & Properties
2854
+ *
2855
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
2856
+ *
2857
+ * - `disabled`: undefined
2858
+ * - `invalid`: undefined
2859
+ * - `label`: undefined
2860
+ * - `help-text`/`helpText`: undefined
2861
+ * - `maximum-rows`/`maxRows`: undefined
2862
+ * - `minimum-rows`/`minRows`: undefined
2863
+ * - `name`: undefined
2864
+ * - `placeholder`: undefined
2865
+ * - `read-only`/`readOnly`: undefined
2866
+ * - `readonly`: undefined
2867
+ * - `required`: undefined
2868
+ * - `value`: undefined
2869
+ * - `optional`: undefined
2870
+ * - `minHeight`: undefined (property only)
2871
+ * - `maxHeight`: undefined (property only)
2872
+ *
2873
+ * ## Methods
2874
+ *
2875
+ * Methods that can be called to access component functionality.
2876
+ *
2877
+ * - `resetFormControl() => void`: undefined
2878
+ * - `handler(e: InputEvent) => void`: undefined
2879
+ */
2880
+ "w-textarea": Partial<
2881
+ WarpTextareaProps &
2882
+ WarpTextareaSolidJsProps &
2883
+ BaseProps<WarpTextarea> &
2884
+ BaseEvents
2885
+ >;
2723
2886
  };
2724
2887
 
2725
2888
  export type CustomCssProperties = {};
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -0,0 +1 @@
1
+ /*eslint-disable*/ export const messages = JSON.parse("{\"textarea.label.optional\":[\"(valgfrit)\"]}");
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -0,0 +1 @@
1
+ /*eslint-disable*/ export const messages = JSON.parse("{\"textarea.label.optional\":[\"(optional)\"]}");
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -0,0 +1 @@
1
+ /*eslint-disable*/ export const messages = JSON.parse("{\"textarea.label.optional\":[\"(vapaaehtoinen)\"]}");
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -0,0 +1 @@
1
+ /*eslint-disable*/ export const messages = JSON.parse("{\"textarea.label.optional\":[\"(valgfritt)\"]}");
@@ -0,0 +1 @@
1
+ export const messages: any;
@@ -0,0 +1 @@
1
+ /*eslint-disable*/ export const messages = JSON.parse("{\"textarea.label.optional\":[\"(valfritt)\"]}");
@@ -0,0 +1,11 @@
1
+ import { WarpTextarea } from './textarea.js';
2
+ export declare const Textarea: import("@lit/react").ReactWebComponent<WarpTextarea, {
3
+ onBlur: string;
4
+ onblur: string;
5
+ onChange: string;
6
+ onchange: string;
7
+ onInput: string;
8
+ oninput: string;
9
+ onFocus: string;
10
+ onfocus: string;
11
+ }>;
@@ -0,0 +1,21 @@
1
+ import { createComponent } from '@lit/react';
2
+ import { LitElement } from 'lit';
3
+ import React from 'react';
4
+ // decouple from CDN by providing a dummy class
5
+ class Component extends LitElement {
6
+ }
7
+ export const Textarea = createComponent({
8
+ tagName: 'w-textarea',
9
+ elementClass: Component,
10
+ react: React,
11
+ events: {
12
+ onBlur: 'blur',
13
+ onblur: 'blur',
14
+ onChange: 'change',
15
+ onchange: 'change',
16
+ onInput: 'input',
17
+ oninput: 'input',
18
+ onFocus: 'focus',
19
+ onfocus: 'focus',
20
+ },
21
+ });
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,2 @@
1
+ import { css } from 'lit';
2
+ export const styles = css `*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.block{display:block}.flex{display:flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\[--w-s-color-border-negative\\]\\!{outline-color:var(--w-s-color-border-negative)!important}.fixed{position:fixed}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.placeholder\\:s-text-placeholder::placeholder{color:var(--w-s-color-text-placeholder)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.hover\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.hover\\:s-border-strong-hover:hover{border-color:var(--w-s-color-border-strong-hover)}.active\\:s-border-selected:active{border-color:var(--w-s-color-border-selected)}.w-full{width:100%}.min-h-\\[42\\]{min-height:4.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-40{padding-right:4rem}.pl-\\[var\\(--w-prefix-width\\,_40px\\)\\]{padding-left:var(--w-prefix-width,40px)}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none{pointer-events:none}.resize{resize:both}.resize-none{resize:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-m{line-height:var(--w-line-height-m)}@media (min-width:480px){.sm\\:min-h-\\[45\\]{min-height:4.5rem}}`;
@@ -0,0 +1,49 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ declare const WarpTextarea_base: import("@open-wc/form-control").Constructor<import("@open-wc/form-control").FormControlInterface> & typeof LitElement;
3
+ /**
4
+ * A single line text input element.
5
+ *
6
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
7
+ */
8
+ declare class WarpTextarea extends WarpTextarea_base {
9
+ #private;
10
+ static shadowRootOptions: {
11
+ delegatesFocus: boolean;
12
+ mode: ShadowRootMode;
13
+ serializable?: boolean;
14
+ slotAssignment?: SlotAssignmentMode;
15
+ };
16
+ disabled: boolean;
17
+ invalid: boolean;
18
+ label: string;
19
+ helpText: string;
20
+ maxRows: number;
21
+ minRows: number;
22
+ name: string;
23
+ placeholder: string;
24
+ /** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
25
+ readOnly: boolean;
26
+ readonly: boolean;
27
+ required: boolean;
28
+ value: string;
29
+ optional: boolean;
30
+ minHeight: number;
31
+ maxHeight: number;
32
+ updated(changedProperties: PropertyValues<this>): void;
33
+ resetFormControl(): void;
34
+ static styles: import("lit").CSSResult[];
35
+ /** @internal */
36
+ get _textareaStyles(): string;
37
+ /** @internal */
38
+ get _helptextstyles(): string;
39
+ /** @internal */
40
+ get _helpId(): string;
41
+ /** @internal */
42
+ get _id(): string;
43
+ /** @internal */
44
+ get _error(): string;
45
+ connectedCallback(): Promise<void>;
46
+ handler(e: InputEvent): void;
47
+ render(): import("lit").TemplateResult<1>;
48
+ }
49
+ export { WarpTextarea };