@circle-vibe/shared 1.1.40 → 1.1.42
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.
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*!
|
|
8
|
+
* tabbable 6.2.0
|
|
9
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @license React
|
|
16
|
+
* react-jsx-runtime.production.js
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the MIT license found in the
|
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/** @license React v16.13.1
|
|
25
|
+
* react-is.development.js
|
|
26
|
+
*
|
|
27
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/** @license React v16.13.1
|
|
34
|
+
* react-is.production.min.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/
|
|
@@ -30,34 +30,25 @@ const utils_1 = require("src/utils");
|
|
|
30
30
|
require("src/styles/text-input-generic-styles.scss");
|
|
31
31
|
const FormControlTextarea = (props) => {
|
|
32
32
|
const fieldProvider = (0, react_1.useContext)(field_context_1.FieldContext);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
? 'var(--text-input-error-outline-color)'
|
|
53
|
-
: 'transparent',
|
|
54
|
-
'--text-input-background': `var(${(fieldProvider.errors ?? '')?.length > 0
|
|
55
|
-
? '--text-input-error-bg-color'
|
|
56
|
-
: '--text-input-default-bg-color'})`,
|
|
57
|
-
} }));
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
33
|
+
return (
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
react_1.default.createElement("textarea", { rows: 3, ...props, ...fieldProvider, inputMode: props.inputMode ?? 'text', onChange: (e) => {
|
|
36
|
+
const value = (0, utils_1.getFormikTextreaFormControlValue)(e);
|
|
37
|
+
fieldProvider.setValue(value);
|
|
38
|
+
}, className: "text-input-generic-styles", style: {
|
|
39
|
+
'--text-input-border-color': (fieldProvider.errors ?? '')?.length > 0
|
|
40
|
+
? 'var(--text-input-error-border-color)'
|
|
41
|
+
: 'var(--text-input-default-border-color)',
|
|
42
|
+
'--text-input-text-color': `var(${(fieldProvider.errors ?? '')?.length > 0
|
|
43
|
+
? '--text-input-error-text-color'
|
|
44
|
+
: '--text-input-default-text-color'})`,
|
|
45
|
+
'--text-input-outline-color': (fieldProvider.errors ?? '')?.length > 0
|
|
46
|
+
? 'var(--text-input-error-outline-color)'
|
|
47
|
+
: 'transparent',
|
|
48
|
+
'--text-input-background': `var(${(fieldProvider.errors ?? '')?.length > 0
|
|
49
|
+
? '--text-input-error-bg-color'
|
|
50
|
+
: '--text-input-default-bg-color'})`,
|
|
51
|
+
} }));
|
|
61
52
|
};
|
|
62
53
|
exports.FormControlTextarea = FormControlTextarea;
|
|
63
54
|
//# sourceMappingURL=form-control-textarea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-control-textarea.js","sourceRoot":"","sources":["../../../../../src/components/form/form-control-textarea/form-control-textarea.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAG1C,kEAA8D;AAC9D,qCAA6D;AAE7D,qDAAmD;AAI5C,MAAM,mBAAmB,GAE5B,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,4BAAY,CAAC,CAAC;IAE/C,
|
|
1
|
+
{"version":3,"file":"form-control-textarea.js","sourceRoot":"","sources":["../../../../../src/components/form/form-control-textarea/form-control-textarea.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAG1C,kEAA8D;AAC9D,qCAA6D;AAE7D,qDAAmD;AAI5C,MAAM,mBAAmB,GAE5B,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,4BAAY,CAAC,CAAC;IAE/C,OAAO;IACL,aAAa;IACb,4CACE,IAAI,EAAE,CAAC,KACH,KAAK,KACL,aAAa,EACjB,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,MAAM,EACpC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;YACd,MAAM,KAAK,GAAG,IAAA,wCAAgC,EAAC,CAAC,CAAC,CAAC;YAClD,aAAa,CAAC,QAAQ,CAAC,KAA0B,CAAC,CAAC;QACrD,CAAC,EACD,SAAS,EAAC,2BAA2B,EACrC,KAAK,EACH;YACE,2BAA2B,EACzB,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC;gBACtC,CAAC,CAAC,sCAAsC;gBACxC,CAAC,CAAC,wCAAwC;YAC9C,yBAAyB,EAAE,OACzB,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC;gBACtC,CAAC,CAAC,+BAA+B;gBACjC,CAAC,CAAC,iCACN,GAAG;YACH,4BAA4B,EAC1B,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC;gBACtC,CAAC,CAAC,uCAAuC;gBACzC,CAAC,CAAC,aAAa;YACnB,yBAAyB,EAAE,OACzB,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC;gBACtC,CAAC,CAAC,6BAA6B;gBAC/B,CAAC,CAAC,+BACN,GAAG;SACkB,GAEzB,CACH,CAAC;AACJ,CAAC,CAAC;AAzCW,QAAA,mBAAmB,uBAyC9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@circle-vibe/shared",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.42",
|
|
4
4
|
"types": "./build/index.d.ts",
|
|
5
5
|
"description": "Shared componenets, utils, hooks",
|
|
6
6
|
"scripts": {
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"formik": ">=2.4.6",
|
|
33
33
|
"react": ">=16",
|
|
34
34
|
"react-dom": ">=16",
|
|
35
|
-
"react-textarea-autosize": "^8.5.9",
|
|
36
35
|
"yup": ">=1.6"
|
|
37
36
|
},
|
|
38
37
|
"dependencies": {
|