@dt-dds/react-text-area 1.0.0-beta.67 → 1.0.0-beta.69
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 +24 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +4 -4
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @dt-ui/react-text-area
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.69
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(config): update ESLint, TS, and Storybook config
|
|
8
|
+
- fix(icon-button): add missing @dt-dds/react-icon devDependency
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- Updated dependencies [223664b]
|
|
12
|
+
- @dt-dds/react-core@1.0.0-beta.52
|
|
13
|
+
- @dt-dds/react-icon@1.0.0-beta.55
|
|
14
|
+
- @dt-dds/react-label-field@1.0.0-beta.53
|
|
15
|
+
- @dt-dds/react-tooltip@1.0.0-beta.61
|
|
16
|
+
- @dt-dds/react-typography@1.0.0-beta.43
|
|
17
|
+
- @dt-dds/themes@1.0.0-beta.10
|
|
18
|
+
- @dt-dds/react-box@1.0.0-beta.58
|
|
19
|
+
|
|
20
|
+
## 1.0.0-beta.68
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [223664b]
|
|
25
|
+
- @dt-dds/react-box@1.0.0-beta.57
|
|
26
|
+
|
|
3
27
|
## 1.0.0-beta.67
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomTheme } from '@dt-dds/themes';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { BaseProps } from '@dt-dds/react-core';
|
|
4
3
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
4
|
+
import { BaseProps } from '@dt-dds/react-core';
|
|
5
5
|
|
|
6
6
|
type TextAreaVariant = 'outlined' | 'bottom-line';
|
|
7
7
|
type TextAreaBackgroundFill = 'default' | 'contrast' | 'light';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomTheme } from '@dt-dds/themes';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { BaseProps } from '@dt-dds/react-core';
|
|
4
3
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
4
|
+
import { BaseProps } from '@dt-dds/react-core';
|
|
5
5
|
|
|
6
6
|
type TextAreaVariant = 'outlined' | 'bottom-line';
|
|
7
7
|
type TextAreaBackgroundFill = 'default' | 'contrast' | 'light';
|
package/dist/index.js
CHANGED
|
@@ -64,11 +64,11 @@ __export(index_exports, {
|
|
|
64
64
|
module.exports = __toCommonJS(index_exports);
|
|
65
65
|
|
|
66
66
|
// src/TextArea.tsx
|
|
67
|
+
var import_react = require("react");
|
|
68
|
+
var import_react2 = require("@emotion/react");
|
|
67
69
|
var import_react_box = require("@dt-dds/react-box");
|
|
68
70
|
var import_react_label_field = require("@dt-dds/react-label-field");
|
|
69
71
|
var import_react_typography = require("@dt-dds/react-typography");
|
|
70
|
-
var import_react = require("@emotion/react");
|
|
71
|
-
var import_react2 = require("react");
|
|
72
72
|
|
|
73
73
|
// src/TextArea.styled.ts
|
|
74
74
|
var import_styled = __toESM(require("@emotion/styled"));
|
|
@@ -189,12 +189,12 @@ var TextArea = (_a) => {
|
|
|
189
189
|
"placeholder",
|
|
190
190
|
"readOnly"
|
|
191
191
|
]);
|
|
192
|
-
const [chars, setChars] = (0,
|
|
193
|
-
const [isActive, setIsActive] = (0,
|
|
194
|
-
const [inputValue, setInputValue] = (0,
|
|
195
|
-
const [hasRequiredError, setHasRequiredError] = (0,
|
|
196
|
-
const theme = (0,
|
|
197
|
-
(0,
|
|
192
|
+
const [chars, setChars] = (0, import_react.useState)(0);
|
|
193
|
+
const [isActive, setIsActive] = (0, import_react.useState)(false);
|
|
194
|
+
const [inputValue, setInputValue] = (0, import_react.useState)("");
|
|
195
|
+
const [hasRequiredError, setHasRequiredError] = (0, import_react.useState)(false);
|
|
196
|
+
const theme = (0, import_react2.useTheme)();
|
|
197
|
+
(0, import_react.useEffect)(() => {
|
|
198
198
|
if (!!value) {
|
|
199
199
|
setInputValue(value);
|
|
200
200
|
setChars(value.length);
|
package/dist/index.mjs
CHANGED
|
@@ -31,14 +31,14 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
// src/TextArea.tsx
|
|
34
|
-
import { Box } from "@dt-dds/react-box";
|
|
35
|
-
import { LabelField } from "@dt-dds/react-label-field";
|
|
36
|
-
import { Typography } from "@dt-dds/react-typography";
|
|
37
|
-
import { useTheme } from "@emotion/react";
|
|
38
34
|
import {
|
|
39
35
|
useEffect,
|
|
40
36
|
useState
|
|
41
37
|
} from "react";
|
|
38
|
+
import { useTheme } from "@emotion/react";
|
|
39
|
+
import { Box } from "@dt-dds/react-box";
|
|
40
|
+
import { LabelField } from "@dt-dds/react-label-field";
|
|
41
|
+
import { Typography } from "@dt-dds/react-typography";
|
|
42
42
|
|
|
43
43
|
// src/TextArea.styled.ts
|
|
44
44
|
import styled from "@emotion/styled";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-dds/react-text-area",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.69",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"test:update:snapshot": "jest -u"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dt-dds/react-box": "1.0.0-beta.
|
|
24
|
-
"@dt-dds/react-core": "1.0.0-beta.
|
|
25
|
-
"@dt-dds/react-label-field": "1.0.0-beta.
|
|
26
|
-
"@dt-dds/react-typography": "1.0.0-beta.
|
|
27
|
-
"@dt-dds/react-tooltip": "1.0.0-beta.
|
|
28
|
-
"@dt-dds/react-icon": "1.0.0-beta.
|
|
29
|
-
"@dt-dds/themes": "1.0.0-beta.
|
|
23
|
+
"@dt-dds/react-box": "1.0.0-beta.58",
|
|
24
|
+
"@dt-dds/react-core": "1.0.0-beta.52",
|
|
25
|
+
"@dt-dds/react-label-field": "1.0.0-beta.53",
|
|
26
|
+
"@dt-dds/react-typography": "1.0.0-beta.43",
|
|
27
|
+
"@dt-dds/react-tooltip": "1.0.0-beta.61",
|
|
28
|
+
"@dt-dds/react-icon": "1.0.0-beta.55",
|
|
29
|
+
"@dt-dds/themes": "1.0.0-beta.10"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/core": "^7.22.9",
|