@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
- if (typeof window !== 'undefined') {
34
- Promise.resolve().then(() => __importStar(require('react-textarea-autosize'))).then((TextareaAutosize) => {
35
- return (
36
- // @ts-ignore
37
- react_1.default.createElement(TextareaAutosize, { ...props, ...fieldProvider, inputMode: props.inputMode ?? 'text',
38
- // @ts-ignore
39
- onChange: (e) => {
40
- const value = (0, utils_1.getFormikTextreaFormControlValue)(e);
41
- fieldProvider.setValue(value);
42
- }, className: "text-input-generic-styles",
43
- // @ts-ignore
44
- style: {
45
- '--text-input-border-color': (fieldProvider.errors ?? '')?.length > 0
46
- ? 'var(--text-input-error-border-color)'
47
- : 'var(--text-input-default-border-color)',
48
- '--text-input-text-color': `var(${(fieldProvider.errors ?? '')?.length > 0
49
- ? '--text-input-error-text-color'
50
- : '--text-input-default-text-color'})`,
51
- '--text-input-outline-color': (fieldProvider.errors ?? '')?.length > 0
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":";;;;;;;;;;;;;;;;;;;;;;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AG;iBACkB,GAEzB,CACH,CAAC;QACJ,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,6DAAK,CAAC;AACf,CAAC,CAAC;AAhDW,QAAA,mBAAmB,uBAgD9B"}
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.40",
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": {