@dr.pogodin/react-utils 1.43.23 → 1.43.25
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/build/development/shared/components/TextArea/index.js +6 -1
- package/build/development/shared/components/TextArea/index.js.map +1 -1
- package/build/development/shared/utils/index.js +6 -0
- package/build/development/shared/utils/index.js.map +1 -1
- package/build/development/style.css +6 -1
- package/build/development/web.bundle.js +3 -3
- package/build/production/shared/components/TextArea/index.js +2 -2
- package/build/production/shared/components/TextArea/index.js.map +1 -1
- package/build/production/shared/utils/index.js +1 -1
- package/build/production/shared/utils/index.js.map +1 -1
- package/build/production/style.css +1 -1
- package/build/production/style.css.map +1 -1
- package/build/production/web.bundle.js +1 -1
- package/build/production/web.bundle.js.map +1 -1
- package/build/types-code/shared/components/TextArea/index.d.ts +2 -1
- package/build/types-code/shared/utils/index.d.ts +1 -1
- package/build/types-scss/src/shared/components/TextArea/style.scss.d.ts +1 -0
- package/package.json +10 -10
- package/src/shared/components/TextArea/index.tsx +4 -0
- package/src/shared/components/TextArea/style.scss +7 -1
- package/src/shared/utils/index.ts +1 -0
- package/tstyche.config.json +4 -4
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type ChangeEventHandler, type FocusEventHandler, type KeyboardEventHandler } from 'react';
|
|
2
2
|
import { type Theme } from '@dr.pogodin/react-themes';
|
|
3
|
-
type ThemeKeyT = 'container' | 'hidden' | 'textarea';
|
|
3
|
+
type ThemeKeyT = 'container' | 'hidden' | 'label' | 'textarea';
|
|
4
4
|
type Props = {
|
|
5
5
|
disabled?: boolean;
|
|
6
|
+
label?: string;
|
|
6
7
|
onBlur?: FocusEventHandler<HTMLTextAreaElement>;
|
|
7
8
|
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
8
9
|
onKeyDown?: KeyboardEventHandler<HTMLTextAreaElement>;
|
|
@@ -3,7 +3,7 @@ import config from './config';
|
|
|
3
3
|
import * as isomorphy from './isomorphy';
|
|
4
4
|
import time from './time';
|
|
5
5
|
import * as webpack from './webpack';
|
|
6
|
-
export { type Listener, Barrier, Emitter, Semaphore, withRetries, } from '@dr.pogodin/js-utils';
|
|
6
|
+
export { type Listener, Barrier, Cached, Emitter, Semaphore, withRetries, } from '@dr.pogodin/js-utils';
|
|
7
7
|
export { getSsrContext } from './globalState';
|
|
8
8
|
export { default as splitComponent } from './splitComponent';
|
|
9
9
|
type ThemedT = typeof themedImpl & {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.43.
|
|
2
|
+
"version": "1.43.25",
|
|
3
3
|
"bin": {
|
|
4
4
|
"react-utils-build": "bin/build.js",
|
|
5
5
|
"react-utils-setup": "bin/setup.js"
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
"@babel/runtime": "^7.27.4",
|
|
12
12
|
"@dr.pogodin/babel-plugin-react-css-modules": "^6.13.6",
|
|
13
13
|
"@dr.pogodin/csurf": "^1.16.5",
|
|
14
|
-
"@dr.pogodin/js-utils": "^0.0
|
|
14
|
+
"@dr.pogodin/js-utils": "^0.1.0",
|
|
15
15
|
"@dr.pogodin/react-global-state": "^0.19.2",
|
|
16
16
|
"@dr.pogodin/react-helmet": "^3.0.2",
|
|
17
|
-
"@dr.pogodin/react-themes": "^1.9.
|
|
17
|
+
"@dr.pogodin/react-themes": "^1.9.2",
|
|
18
18
|
"@jest/environment": "^30.0.4",
|
|
19
19
|
"axios": "^1.10.0",
|
|
20
20
|
"commander": "^14.0.0",
|
|
21
|
-
"compression": "^1.8.
|
|
22
|
-
"config": "^4.0.
|
|
21
|
+
"compression": "^1.8.1",
|
|
22
|
+
"config": "^4.0.1",
|
|
23
23
|
"cookie": "^1.0.2",
|
|
24
24
|
"cookie-parser": "^1.4.7",
|
|
25
25
|
"cross-env": "^7.0.3",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"http-status-codes": "^2.3.0",
|
|
30
30
|
"joi": "^17.13.3",
|
|
31
31
|
"lodash": "^4.17.21",
|
|
32
|
-
"morgan": "^1.10.
|
|
32
|
+
"morgan": "^1.10.1",
|
|
33
33
|
"node-forge": "^1.3.1",
|
|
34
34
|
"qs": "^6.14.0",
|
|
35
35
|
"raf": "^3.4.1",
|
|
36
36
|
"react": "^19.1.0",
|
|
37
37
|
"react-dom": "^19.1.0",
|
|
38
|
-
"react-router": "^7.
|
|
38
|
+
"react-router": "^7.7.0",
|
|
39
39
|
"request-ip": "^3.3.0",
|
|
40
40
|
"rimraf": "^6.0.0",
|
|
41
41
|
"serialize-javascript": "^6.0.2",
|
|
@@ -105,14 +105,14 @@
|
|
|
105
105
|
"sass-loader": "^16.0.5",
|
|
106
106
|
"sitemap": "^8.0.0",
|
|
107
107
|
"source-map-loader": "^5.0.0",
|
|
108
|
-
"stylelint": "^16.
|
|
108
|
+
"stylelint": "^16.22.0",
|
|
109
109
|
"stylelint-config-standard-scss": "^15.0.1",
|
|
110
110
|
"supertest": "^7.1.3",
|
|
111
111
|
"tsc-alias": "1.8.16",
|
|
112
|
-
"tstyche": "^4.
|
|
112
|
+
"tstyche": "^4.3.0",
|
|
113
113
|
"typed-scss-modules": "^8.1.1",
|
|
114
114
|
"typescript": "^5.8.3",
|
|
115
|
-
"webpack": "^5.100.
|
|
115
|
+
"webpack": "^5.100.2",
|
|
116
116
|
"webpack-dev-middleware": "^7.4.2",
|
|
117
117
|
"webpack-hot-middleware": "^2.26.1",
|
|
118
118
|
"webpack-merge": "^6.0.1",
|
|
@@ -16,10 +16,12 @@ import defaultTheme from './style.scss';
|
|
|
16
16
|
type ThemeKeyT =
|
|
17
17
|
| 'container'
|
|
18
18
|
| 'hidden'
|
|
19
|
+
| 'label'
|
|
19
20
|
| 'textarea';
|
|
20
21
|
|
|
21
22
|
type Props = {
|
|
22
23
|
disabled?: boolean;
|
|
24
|
+
label?: string;
|
|
23
25
|
onBlur?: FocusEventHandler<HTMLTextAreaElement>;
|
|
24
26
|
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
25
27
|
onKeyDown?: KeyboardEventHandler<HTMLTextAreaElement>;
|
|
@@ -31,6 +33,7 @@ type Props = {
|
|
|
31
33
|
|
|
32
34
|
const TextArea: FunctionComponent<Props> = ({
|
|
33
35
|
disabled,
|
|
36
|
+
label,
|
|
34
37
|
onBlur,
|
|
35
38
|
onChange,
|
|
36
39
|
onKeyDown,
|
|
@@ -75,6 +78,7 @@ const TextArea: FunctionComponent<Props> = ({
|
|
|
75
78
|
|
|
76
79
|
return (
|
|
77
80
|
<div className={theme.container}>
|
|
81
|
+
{label === undefined ? null : <div className={theme.label}>{label}</div>}
|
|
78
82
|
<textarea
|
|
79
83
|
className={`${theme.textarea} ${theme.hidden}`}
|
|
80
84
|
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
position: relative;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
&.label {
|
|
12
|
+
margin: 0 0.3em;
|
|
13
|
+
}
|
|
14
|
+
|
|
11
15
|
&.textarea {
|
|
12
16
|
background: white;
|
|
13
17
|
border: 1px solid gray;
|
|
@@ -39,7 +43,9 @@
|
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
&.hidden {
|
|
46
|
+
// NOTE: We hide it this way, as setting "display: none" will interfere
|
|
47
|
+
// with measurements, making the hidden input height zero.
|
|
48
|
+
opacity: 0;
|
|
42
49
|
position: absolute;
|
|
43
|
-
z-index: -1;
|
|
44
50
|
}
|
|
45
51
|
}
|
package/tstyche.config.json
CHANGED