@xsolla/xui-textarea 0.149.1 → 0.151.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/README.md +0 -18
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -6,8 +6,6 @@ A cross-platform React textarea component for multi-line text input. Includes er
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install @xsolla/xui-textarea
|
|
9
|
-
# or
|
|
10
|
-
yarn add @xsolla/xui-textarea
|
|
11
9
|
```
|
|
12
10
|
|
|
13
11
|
## Demo
|
|
@@ -195,22 +193,6 @@ A multi-line text input component.
|
|
|
195
193
|
| sm | 10px |
|
|
196
194
|
| xs | 10px |
|
|
197
195
|
|
|
198
|
-
## Theming
|
|
199
|
-
|
|
200
|
-
TextArea uses the design system theme for colors:
|
|
201
|
-
|
|
202
|
-
```typescript
|
|
203
|
-
// Colors accessed via theme
|
|
204
|
-
theme.colors.control.input.bg // Background color
|
|
205
|
-
theme.colors.control.input.bgFocus // Focus background
|
|
206
|
-
theme.colors.control.input.border // Border color
|
|
207
|
-
theme.colors.control.input.borderFocus // Focus border
|
|
208
|
-
theme.colors.control.input.borderError // Error border
|
|
209
|
-
theme.colors.control.input.text // Text color
|
|
210
|
-
theme.colors.control.input.placeholder // Placeholder color
|
|
211
|
-
theme.colors.content.error // Error message color
|
|
212
|
-
```
|
|
213
|
-
|
|
214
196
|
## Accessibility
|
|
215
197
|
|
|
216
198
|
- Uses native `<textarea>` element
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-textarea",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.151.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"test:coverage": "vitest run --coverage"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@xsolla/xui-core": "0.
|
|
17
|
-
"@xsolla/xui-primitives-core": "0.
|
|
16
|
+
"@xsolla/xui-core": "0.151.0",
|
|
17
|
+
"@xsolla/xui-primitives-core": "0.151.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"react": ">=16.8.0",
|