@alfalab/core-components-with-suffix 4.0.4 → 4.0.7

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/Component.d.ts CHANGED
@@ -24,6 +24,7 @@ declare const withSuffix: (Input: React.FC<Pick<React.InputHTMLAttributes<HTMLIn
24
24
  success?: boolean | undefined;
25
25
  hint?: React.ReactNode;
26
26
  label?: React.ReactNode;
27
+ labelView?: "inner" | "outer" | undefined;
27
28
  type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
28
29
  wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
29
30
  leftAddons?: React.ReactNode;
@@ -55,6 +56,7 @@ declare const withSuffix: (Input: React.FC<Pick<React.InputHTMLAttributes<HTMLIn
55
56
  success?: boolean | undefined;
56
57
  hint?: React.ReactNode;
57
58
  label?: React.ReactNode;
59
+ labelView?: "inner" | "outer" | undefined;
58
60
  type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
59
61
  wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
60
62
  leftAddons?: React.ReactNode;
package/Component.js CHANGED
@@ -52,7 +52,7 @@ function __rest(s, e) {
52
52
  return t;
53
53
  }
54
54
 
55
- var styles = {"suffixContainer":"with-suffix__suffixContainer_1v8ij","suffixVisible":"with-suffix__suffixVisible_1v8ij","hasSuffix":"with-suffix__hasSuffix_1v8ij","spacer":"with-suffix__spacer_1v8ij","suffix":"with-suffix__suffix_1v8ij","disabled":"with-suffix__disabled_1v8ij","readOnly":"with-suffix__readOnly_1v8ij"};
55
+ var styles = {"suffixContainer":"with-suffix__suffixContainer_13qs5","suffixVisible":"with-suffix__suffixVisible_13qs5","hasSuffix":"with-suffix__hasSuffix_13qs5","spacer":"with-suffix__spacer_13qs5","suffix":"with-suffix__suffix_13qs5","disabled":"with-suffix__disabled_13qs5","readOnly":"with-suffix__readOnly_13qs5"};
56
56
  require('./index.css')
57
57
 
58
58
  var withSuffix = function (Input) {
@@ -24,6 +24,7 @@ declare const withSuffix: (Input: React.FC<Pick<React.InputHTMLAttributes<HTMLIn
24
24
  success?: boolean | undefined;
25
25
  hint?: React.ReactNode;
26
26
  label?: React.ReactNode;
27
+ labelView?: "inner" | "outer" | undefined;
27
28
  type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
28
29
  wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
29
30
  leftAddons?: React.ReactNode;
@@ -55,6 +56,7 @@ declare const withSuffix: (Input: React.FC<Pick<React.InputHTMLAttributes<HTMLIn
55
56
  success?: boolean | undefined;
56
57
  hint?: React.ReactNode;
57
58
  label?: React.ReactNode;
59
+ labelView?: "inner" | "outer" | undefined;
58
60
  type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
59
61
  wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
60
62
  leftAddons?: React.ReactNode;
@@ -24,6 +24,7 @@ declare const withSuffix: (Input: React.FC<Pick<React.InputHTMLAttributes<HTMLIn
24
24
  success?: boolean | undefined;
25
25
  hint?: React.ReactNode;
26
26
  label?: React.ReactNode;
27
+ labelView?: "inner" | "outer" | undefined;
27
28
  type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
28
29
  wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
29
30
  leftAddons?: React.ReactNode;
@@ -55,6 +56,7 @@ declare const withSuffix: (Input: React.FC<Pick<React.InputHTMLAttributes<HTMLIn
55
56
  success?: boolean | undefined;
56
57
  hint?: React.ReactNode;
57
58
  label?: React.ReactNode;
59
+ labelView?: "inner" | "outer" | undefined;
58
60
  type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
59
61
  wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
60
62
  leftAddons?: React.ReactNode;
package/esm/Component.js CHANGED
@@ -42,7 +42,7 @@ function __rest(s, e) {
42
42
  return t;
43
43
  }
44
44
 
45
- var styles = {"suffixContainer":"with-suffix__suffixContainer_1v8ij","suffixVisible":"with-suffix__suffixVisible_1v8ij","hasSuffix":"with-suffix__hasSuffix_1v8ij","spacer":"with-suffix__spacer_1v8ij","suffix":"with-suffix__suffix_1v8ij","disabled":"with-suffix__disabled_1v8ij","readOnly":"with-suffix__readOnly_1v8ij"};
45
+ var styles = {"suffixContainer":"with-suffix__suffixContainer_13qs5","suffixVisible":"with-suffix__suffixVisible_13qs5","hasSuffix":"with-suffix__hasSuffix_13qs5","spacer":"with-suffix__spacer_13qs5","suffix":"with-suffix__suffix_13qs5","disabled":"with-suffix__disabled_13qs5","readOnly":"with-suffix__readOnly_13qs5"};
46
46
  require('./index.css')
47
47
 
48
48
  var withSuffix = function (Input) {
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: bjq3h */
1
+ /* hash: mqtv9 */
2
2
  :root {
3
3
  --color-light-text-secondary: #546272;
4
4
  }
@@ -24,7 +24,7 @@
24
24
 
25
25
  /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
26
26
  }
27
- .with-suffix__suffixContainer_1v8ij {
27
+ .with-suffix__suffixContainer_13qs5 {
28
28
  font-size: 16px;
29
29
  line-height: 20px;
30
30
  font-weight: 400;
@@ -37,25 +37,25 @@
37
37
  display: none;
38
38
  pointer-events: none;
39
39
  }
40
- input:focus:not(:read-only) + .with-suffix__suffixContainer_1v8ij,
41
- .with-suffix__suffixVisible_1v8ij .with-suffix__suffixContainer_1v8ij {
40
+ input:focus:not(:read-only) + .with-suffix__suffixContainer_13qs5,
41
+ .with-suffix__suffixVisible_13qs5 .with-suffix__suffixContainer_13qs5 {
42
42
  display: inline-flex;
43
43
  }
44
- .with-suffix__hasSuffix_1v8ij input:focus::placeholder {
44
+ .with-suffix__hasSuffix_13qs5 input:focus::placeholder {
45
45
  color: transparent;
46
46
  transition: none;
47
47
  }
48
- .with-suffix__spacer_1v8ij {
48
+ .with-suffix__spacer_13qs5 {
49
49
  visibility: hidden;
50
50
  flex-shrink: 0;
51
51
  white-space: pre;
52
52
  }
53
- .with-suffix__suffix_1v8ij {
53
+ .with-suffix__suffix_13qs5 {
54
54
  white-space: pre;
55
55
  }
56
- .with-suffix__disabled_1v8ij {
56
+ .with-suffix__disabled_13qs5 {
57
57
  color: var(--input-disabled-color);
58
58
  }
59
- .with-suffix__readOnly_1v8ij {
59
+ .with-suffix__readOnly_13qs5 {
60
60
  color: var(--input-read-only-color);
61
61
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: bjq3h */
1
+ /* hash: mqtv9 */
2
2
  :root {
3
3
  --color-light-text-secondary: #546272;
4
4
  }
@@ -24,7 +24,7 @@
24
24
 
25
25
  /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
26
26
  }
27
- .with-suffix__suffixContainer_1v8ij {
27
+ .with-suffix__suffixContainer_13qs5 {
28
28
  font-size: 16px;
29
29
  line-height: 20px;
30
30
  font-weight: 400;
@@ -37,25 +37,25 @@
37
37
  display: none;
38
38
  pointer-events: none;
39
39
  }
40
- input:focus:not(:read-only) + .with-suffix__suffixContainer_1v8ij,
41
- .with-suffix__suffixVisible_1v8ij .with-suffix__suffixContainer_1v8ij {
40
+ input:focus:not(:read-only) + .with-suffix__suffixContainer_13qs5,
41
+ .with-suffix__suffixVisible_13qs5 .with-suffix__suffixContainer_13qs5 {
42
42
  display: inline-flex;
43
43
  }
44
- .with-suffix__hasSuffix_1v8ij input:focus::placeholder {
44
+ .with-suffix__hasSuffix_13qs5 input:focus::placeholder {
45
45
  color: transparent;
46
46
  transition: none;
47
47
  }
48
- .with-suffix__spacer_1v8ij {
48
+ .with-suffix__spacer_13qs5 {
49
49
  visibility: hidden;
50
50
  flex-shrink: 0;
51
51
  white-space: pre;
52
52
  }
53
- .with-suffix__suffix_1v8ij {
53
+ .with-suffix__suffix_13qs5 {
54
54
  white-space: pre;
55
55
  }
56
- .with-suffix__disabled_1v8ij {
56
+ .with-suffix__disabled_13qs5 {
57
57
  color: var(--input-disabled-color);
58
58
  }
59
- .with-suffix__readOnly_1v8ij {
59
+ .with-suffix__readOnly_13qs5 {
60
60
  color: var(--input-read-only-color);
61
61
  }
@@ -24,6 +24,7 @@ declare const withSuffix: (Input: React.FC<Pick<React.InputHTMLAttributes<HTMLIn
24
24
  success?: boolean | undefined;
25
25
  hint?: React.ReactNode;
26
26
  label?: React.ReactNode;
27
+ labelView?: "inner" | "outer" | undefined;
27
28
  type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
28
29
  wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
29
30
  leftAddons?: React.ReactNode;
@@ -55,6 +56,7 @@ declare const withSuffix: (Input: React.FC<Pick<React.InputHTMLAttributes<HTMLIn
55
56
  success?: boolean | undefined;
56
57
  hint?: React.ReactNode;
57
58
  label?: React.ReactNode;
59
+ labelView?: "inner" | "outer" | undefined;
58
60
  type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
59
61
  wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
60
62
  leftAddons?: React.ReactNode;
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import { Portal } from '@alfalab/core-components-portal/modern';
5
5
 
6
- var styles = {"suffixContainer":"with-suffix__suffixContainer_1v8ij","suffixVisible":"with-suffix__suffixVisible_1v8ij","hasSuffix":"with-suffix__hasSuffix_1v8ij","spacer":"with-suffix__spacer_1v8ij","suffix":"with-suffix__suffix_1v8ij","disabled":"with-suffix__disabled_1v8ij","readOnly":"with-suffix__readOnly_1v8ij"};
6
+ var styles = {"suffixContainer":"with-suffix__suffixContainer_13qs5","suffixVisible":"with-suffix__suffixVisible_13qs5","hasSuffix":"with-suffix__hasSuffix_13qs5","spacer":"with-suffix__spacer_13qs5","suffix":"with-suffix__suffix_13qs5","disabled":"with-suffix__disabled_13qs5","readOnly":"with-suffix__readOnly_13qs5"};
7
7
  require('./index.css')
8
8
 
9
9
  const withSuffix = (Input) => forwardRef(({ value, defaultValue, onChange, onClear, suffix = '', placeholder, className, disabled, readOnly, suffixContainerClassName, ...restProps }, ref) => {
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: bjq3h */
1
+ /* hash: mqtv9 */
2
2
  :root {
3
3
  --color-light-text-secondary: #546272;
4
4
  }
@@ -24,7 +24,7 @@
24
24
 
25
25
  /* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
26
26
  }
27
- .with-suffix__suffixContainer_1v8ij {
27
+ .with-suffix__suffixContainer_13qs5 {
28
28
  font-size: 16px;
29
29
  line-height: 20px;
30
30
  font-weight: 400;
@@ -37,25 +37,25 @@
37
37
  display: none;
38
38
  pointer-events: none;
39
39
  }
40
- input:focus:not(:read-only) + .with-suffix__suffixContainer_1v8ij,
41
- .with-suffix__suffixVisible_1v8ij .with-suffix__suffixContainer_1v8ij {
40
+ input:focus:not(:read-only) + .with-suffix__suffixContainer_13qs5,
41
+ .with-suffix__suffixVisible_13qs5 .with-suffix__suffixContainer_13qs5 {
42
42
  display: inline-flex;
43
43
  }
44
- .with-suffix__hasSuffix_1v8ij input:focus::placeholder {
44
+ .with-suffix__hasSuffix_13qs5 input:focus::placeholder {
45
45
  color: transparent;
46
46
  transition: none;
47
47
  }
48
- .with-suffix__spacer_1v8ij {
48
+ .with-suffix__spacer_13qs5 {
49
49
  visibility: hidden;
50
50
  flex-shrink: 0;
51
51
  white-space: pre;
52
52
  }
53
- .with-suffix__suffix_1v8ij {
53
+ .with-suffix__suffix_13qs5 {
54
54
  white-space: pre;
55
55
  }
56
- .with-suffix__disabled_1v8ij {
56
+ .with-suffix__disabled_13qs5 {
57
57
  color: var(--input-disabled-color);
58
58
  }
59
- .with-suffix__readOnly_1v8ij {
59
+ .with-suffix__readOnly_13qs5 {
60
60
  color: var(--input-read-only-color);
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-with-suffix",
3
- "version": "4.0.4",
3
+ "version": "4.0.7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@alfalab/core-components-input": "^10.1.0",
20
+ "@alfalab/core-components-input": "^10.2.2",
21
21
  "@alfalab/core-components-portal": "^3.0.1",
22
22
  "classnames": "^2.3.1",
23
23
  "react-merge-refs": "^1.1.0"