@alfalab/core-components-with-suffix 5.0.0 → 5.1.0-snapshot-92b8690
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/dynamic-mixins/Component.d.ts +28 -0
- package/dynamic-mixins/Component.js +65 -0
- package/dynamic-mixins/Component.js.map +1 -0
- package/dynamic-mixins/index.css +52 -0
- package/dynamic-mixins/index.d.ts +1 -0
- package/dynamic-mixins/index.js +10 -0
- package/dynamic-mixins/index.js.map +1 -0
- package/dynamic-mixins/index.module.css.js +8 -0
- package/dynamic-mixins/index.module.css.js.map +1 -0
- package/esm/index.css +13 -13
- package/esm/index.module.css.js +1 -1
- package/esm/index.module.css.js.map +1 -1
- package/index.css +13 -13
- package/index.module.css.js +1 -1
- package/index.module.css.js.map +1 -1
- package/modern/index.css +13 -13
- package/modern/index.module.css.js +1 -1
- package/modern/index.module.css.js.map +1 -1
- package/moderncssm/index.module.css +14 -0
- package/package.json +5 -5
- package/src/index.module.css +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { FC, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
import { InputProps } from '@alfalab/core-components-input';
|
|
3
|
+
export declare type withSuffixProps = InputProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Дополнительный закрепленный текст справа от основного значения.
|
|
6
|
+
* Например: value='85' suffix=' мес' -> 85 мес
|
|
7
|
+
*/
|
|
8
|
+
suffix?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Дополнительный класс для контейнера с суффиксом
|
|
11
|
+
*/
|
|
12
|
+
suffixContainerClassName?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "FormControlComponent"> & {
|
|
15
|
+
breakpoint?: number | undefined;
|
|
16
|
+
client?: "desktop" | "mobile" | undefined;
|
|
17
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
/**
|
|
20
|
+
* Дополнительный закрепленный текст справа от основного значения.
|
|
21
|
+
* Например: value='85' suffix=' мес' -> 85 мес
|
|
22
|
+
*/
|
|
23
|
+
suffix?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Дополнительный класс для контейнера с суффиксом
|
|
26
|
+
*/
|
|
27
|
+
suffixContainerClassName?: string | undefined;
|
|
28
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var mergeRefs = require('react-merge-refs');
|
|
8
|
+
var cn = require('classnames');
|
|
9
|
+
var dynamicMixins = require('@alfalab/core-components-portal/dynamic-mixins');
|
|
10
|
+
var index_module = require('./index.module.css.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
|
+
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
16
|
+
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
17
|
+
|
|
18
|
+
var withSuffix = function (Input) {
|
|
19
|
+
return React.forwardRef(function (_a, ref) {
|
|
20
|
+
var _b, _c, _d;
|
|
21
|
+
var value = _a.value, defaultValue = _a.defaultValue, onChange = _a.onChange, onClear = _a.onClear, _e = _a.suffix, suffix = _e === void 0 ? '' : _e, placeholder = _a.placeholder, className = _a.className, disabled = _a.disabled, readOnly = _a.readOnly, suffixContainerClassName = _a.suffixContainerClassName, restProps = tslib.__rest(_a, ["value", "defaultValue", "onChange", "onClear", "suffix", "placeholder", "className", "disabled", "readOnly", "suffixContainerClassName"]);
|
|
22
|
+
var uncontrolled = value === undefined;
|
|
23
|
+
var _f = React.useState(null), inputNode = _f[0], setInputNode = _f[1];
|
|
24
|
+
var _g = React.useState(defaultValue || ''), stateValue = _g[0], setStateValue = _g[1];
|
|
25
|
+
var handleInputChange = React.useCallback(function (event, payload) {
|
|
26
|
+
if (onChange) {
|
|
27
|
+
onChange(event, payload);
|
|
28
|
+
}
|
|
29
|
+
if (uncontrolled) {
|
|
30
|
+
setStateValue(payload.value);
|
|
31
|
+
}
|
|
32
|
+
}, [onChange, uncontrolled]);
|
|
33
|
+
var handleClear = React.useCallback(function (event) {
|
|
34
|
+
if (uncontrolled) {
|
|
35
|
+
setStateValue('');
|
|
36
|
+
}
|
|
37
|
+
if (onClear) {
|
|
38
|
+
onClear(event);
|
|
39
|
+
}
|
|
40
|
+
}, [onClear, uncontrolled]);
|
|
41
|
+
var getPortalContainer = React.useCallback(
|
|
42
|
+
// TODO: Изменить сигнатуру getPortalContainer в Portal
|
|
43
|
+
function () { return ((inputNode === null || inputNode === void 0 ? void 0 : inputNode.parentElement) || null); }, [inputNode]);
|
|
44
|
+
var visibleValue = uncontrolled ? stateValue : value;
|
|
45
|
+
var isInverted = restProps.colors === 'inverted';
|
|
46
|
+
return (React__default.default.createElement(React.Fragment, null,
|
|
47
|
+
React__default.default.createElement(Input, tslib.__assign({ ref: mergeRefs__default.default([ref, setInputNode]), value: visibleValue, disabled: disabled, readOnly: readOnly, onChange: handleInputChange, onClear: handleClear, placeholder: placeholder, className: cn__default.default(className, (_b = {},
|
|
48
|
+
_b[index_module.suffixVisible] = Boolean(visibleValue),
|
|
49
|
+
_b[index_module.hasSuffix] = suffix,
|
|
50
|
+
_b)) }, restProps)),
|
|
51
|
+
React__default.default.createElement(dynamicMixins.Portal, { getPortalContainer: getPortalContainer },
|
|
52
|
+
React__default.default.createElement("div", { translate: 'no', className: cn__default.default(index_module.suffixContainer, suffixContainerClassName, (_c = {},
|
|
53
|
+
_c[index_module["size-".concat(restProps.size)]] = restProps.size,
|
|
54
|
+
_c)) },
|
|
55
|
+
React__default.default.createElement("span", { className: index_module.spacer }, visibleValue),
|
|
56
|
+
suffix && (React__default.default.createElement("div", { className: cn__default.default(index_module.suffix, (_d = {},
|
|
57
|
+
_d[index_module.disabled] = disabled,
|
|
58
|
+
_d[index_module.readOnly] = readOnly,
|
|
59
|
+
_d[index_module.inverted] = isInverted,
|
|
60
|
+
_d)) }, suffix))))));
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
exports.withSuffix = withSuffix;
|
|
65
|
+
//# sourceMappingURL=Component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../src/Component.tsx"],"sourcesContent":["import React, {\n FC,\n forwardRef,\n Fragment,\n ReactNode,\n RefAttributes,\n useCallback,\n useState,\n} from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { InputProps } from '@alfalab/core-components-input';\nimport { Portal } from '@alfalab/core-components-portal';\n\nimport styles from './index.module.css';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport type withSuffixProps = InputProps & {\n /**\n * Дополнительный закрепленный текст справа от основного значения.\n * Например: value='85' suffix=' мес' -> 85 мес\n */\n suffix?: ReactNode;\n\n /**\n * Дополнительный класс для контейнера с суффиксом\n */\n suffixContainerClassName?: string;\n};\n\nexport const withSuffix = (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) =>\n forwardRef<HTMLInputElement, withSuffixProps>(\n (\n {\n value,\n defaultValue,\n onChange,\n onClear,\n suffix = '',\n placeholder,\n className,\n disabled,\n readOnly,\n suffixContainerClassName,\n ...restProps\n },\n ref,\n ) => {\n const uncontrolled = value === undefined;\n\n const [inputNode, setInputNode] = useState<HTMLInputElement | null>(null);\n\n const [stateValue, setStateValue] = useState(defaultValue || '');\n\n const handleInputChange = useCallback<Required<InputProps>['onChange']>(\n (event, payload) => {\n if (onChange) {\n onChange(event, payload);\n }\n\n if (uncontrolled) {\n setStateValue(payload.value);\n }\n },\n [onChange, uncontrolled],\n );\n\n const handleClear = useCallback<Required<InputProps>['onClear']>(\n (event) => {\n if (uncontrolled) {\n setStateValue('');\n }\n\n if (onClear) {\n onClear(event);\n }\n },\n [onClear, uncontrolled],\n );\n\n const getPortalContainer = useCallback(\n // TODO: Изменить сигнатуру getPortalContainer в Portal\n () => (inputNode?.parentElement || null) as HTMLElement,\n [inputNode],\n );\n\n const visibleValue = uncontrolled ? stateValue : value;\n\n const isInverted = restProps.colors === 'inverted';\n\n return (\n <Fragment>\n <Input\n ref={mergeRefs([ref, setInputNode])}\n value={visibleValue}\n disabled={disabled}\n readOnly={readOnly}\n onChange={handleInputChange}\n onClear={handleClear}\n placeholder={placeholder}\n className={cn(className, {\n [styles.suffixVisible]: Boolean(visibleValue),\n [styles.hasSuffix]: suffix,\n })}\n {...restProps}\n />\n <Portal getPortalContainer={getPortalContainer}>\n <div\n translate='no'\n className={cn(styles.suffixContainer, suffixContainerClassName, {\n [styles[`size-${restProps.size}`]]: restProps.size,\n })}\n >\n <span className={styles.spacer}>{visibleValue}</span>\n {suffix && (\n <div\n className={cn(styles.suffix, {\n [styles.disabled]: disabled,\n [styles.readOnly]: readOnly,\n [styles.inverted]: isInverted,\n })}\n >\n {suffix}\n </div>\n )}\n </div>\n </Portal>\n </Fragment>\n );\n },\n );\n"],"names":["forwardRef","__rest","useState","useCallback","React","Fragment","__assign","mergeRefs","cn","styles","Portal"],"mappings":"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"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-light-text-tertiary: rgba(5, 8, 29, 0.38);
|
|
3
|
+
--color-light-text-tertiary-inverted: rgba(233, 233, 250, 0.37);
|
|
4
|
+
} :root {
|
|
5
|
+
--gap-xs: 8px;
|
|
6
|
+
--gap-0: 0px;
|
|
7
|
+
--gap-8: var(--gap-xs);
|
|
8
|
+
} :root {
|
|
9
|
+
--input-disabled-color: var(--color-light-text-tertiary);
|
|
10
|
+
--input-inverted-disabled-color: var(--color-light-text-tertiary-inverted);
|
|
11
|
+
--input-read-only-color: var(--color-light-text-tertiary);
|
|
12
|
+
--input-inverted-read-only-color: var(--color-light-text-tertiary-inverted);
|
|
13
|
+
} .with-suffix__suffixContainer_12eon {
|
|
14
|
+
@mixin paragraph_component;
|
|
15
|
+
|
|
16
|
+
position: absolute;
|
|
17
|
+
left: var(--gap-0);
|
|
18
|
+
top: var(--gap-0);
|
|
19
|
+
bottom: var(--gap-0);
|
|
20
|
+
align-items: center;
|
|
21
|
+
display: none;
|
|
22
|
+
pointer-events: none
|
|
23
|
+
} .with-suffix__suffixContainer_12eon.with-suffix__size-40_12eon {
|
|
24
|
+
@mixin paragraph_component_secondary;
|
|
25
|
+
padding: var(--gap-0) var(--gap-8);
|
|
26
|
+
} input:focus:not(:-moz-read-only) + .with-suffix__suffixContainer_12eon {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_12eon,
|
|
29
|
+
.with-suffix__suffixVisible_12eon .with-suffix__suffixContainer_12eon {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
} .with-suffix__hasSuffix_12eon input:focus::-moz-placeholder {
|
|
32
|
+
color: transparent;
|
|
33
|
+
-moz-transition: none;
|
|
34
|
+
transition: none;
|
|
35
|
+
} .with-suffix__hasSuffix_12eon input:focus::placeholder {
|
|
36
|
+
color: transparent;
|
|
37
|
+
transition: none;
|
|
38
|
+
} .with-suffix__spacer_12eon {
|
|
39
|
+
visibility: hidden;
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
white-space: pre;
|
|
42
|
+
} .with-suffix__suffix_12eon {
|
|
43
|
+
white-space: pre;
|
|
44
|
+
} .with-suffix__disabled_12eon {
|
|
45
|
+
color: var(--input-disabled-color)
|
|
46
|
+
} .with-suffix__disabled_12eon.with-suffix__inverted_12eon {
|
|
47
|
+
color: var(--input-inverted-disabled-color);
|
|
48
|
+
} .with-suffix__readOnly_12eon {
|
|
49
|
+
color: var(--input-read-only-color)
|
|
50
|
+
} .with-suffix__readOnly_12eon.with-suffix__inverted_12eon {
|
|
51
|
+
color: var(--input-inverted-read-only-color);
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('./index.css');
|
|
4
|
+
|
|
5
|
+
var styles = {"suffixContainer":"with-suffix__suffixContainer_12eon","size-40":"with-suffix__size-40_12eon","suffixVisible":"with-suffix__suffixVisible_12eon","hasSuffix":"with-suffix__hasSuffix_12eon","spacer":"with-suffix__spacer_12eon","suffix":"with-suffix__suffix_12eon","disabled":"with-suffix__disabled_12eon","inverted":"with-suffix__inverted_12eon","readOnly":"with-suffix__readOnly_12eon"};
|
|
6
|
+
|
|
7
|
+
module.exports = styles;
|
|
8
|
+
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-dynamic-mixins-index.css';\n@import '../../input/src/vars.css';\n\n.suffixContainer {\n @mixin paragraph_component;\n\n position: absolute;\n left: var(--gap-0);\n top: var(--gap-0);\n bottom: var(--gap-0);\n align-items: center;\n display: none;\n pointer-events: none;\n\n &.size-40 {\n @mixin paragraph_component_secondary;\n padding: var(--gap-0) var(--gap-8);\n }\n}\n\ninput:focus:not(:read-only) + .suffixContainer,\n.suffixVisible .suffixContainer {\n display: inline-flex;\n}\n\n.hasSuffix input:focus::placeholder {\n color: transparent;\n transition: none;\n}\n\n.spacer {\n visibility: hidden;\n flex-shrink: 0;\n white-space: pre;\n}\n\n.suffix {\n white-space: pre;\n}\n\n.disabled {\n color: var(--input-disabled-color);\n\n &.inverted {\n color: var(--input-inverted-disabled-color);\n }\n}\n\n.readOnly {\n color: var(--input-read-only-color);\n\n &.inverted {\n color: var(--input-inverted-read-only-color);\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,iBAAiB,CAAC,oCAAoC,CAAC,SAAS,CAAC,4BAA4B,CAAC,eAAe,CAAC,kCAAkC,CAAC,WAAW,CAAC,8BAA8B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC;;;;"}
|
package/esm/index.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--input-inverted-disabled-color: var(--color-light-text-tertiary-inverted);
|
|
11
11
|
--input-read-only-color: var(--color-light-text-tertiary);
|
|
12
12
|
--input-inverted-read-only-color: var(--color-light-text-tertiary-inverted);
|
|
13
|
-
} .with-
|
|
13
|
+
} .with-suffix__suffixContainer_12eon {
|
|
14
14
|
font-size: 16px;
|
|
15
15
|
line-height: 20px;
|
|
16
16
|
font-weight: 400;
|
|
@@ -22,35 +22,35 @@
|
|
|
22
22
|
align-items: center;
|
|
23
23
|
display: none;
|
|
24
24
|
pointer-events: none
|
|
25
|
-
} .with-
|
|
25
|
+
} .with-suffix__suffixContainer_12eon.with-suffix__size-40_12eon {
|
|
26
26
|
font-size: 14px;
|
|
27
27
|
line-height: 18px;
|
|
28
28
|
font-weight: 400;
|
|
29
29
|
padding: var(--gap-0) var(--gap-8);
|
|
30
|
-
} input:focus:not(:-moz-read-only) + .with-
|
|
30
|
+
} input:focus:not(:-moz-read-only) + .with-suffix__suffixContainer_12eon {
|
|
31
31
|
display: inline-flex;
|
|
32
|
-
} input:focus:not(:read-only) + .with-
|
|
33
|
-
.with-
|
|
32
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_12eon,
|
|
33
|
+
.with-suffix__suffixVisible_12eon .with-suffix__suffixContainer_12eon {
|
|
34
34
|
display: inline-flex;
|
|
35
|
-
} .with-
|
|
35
|
+
} .with-suffix__hasSuffix_12eon input:focus::-moz-placeholder {
|
|
36
36
|
color: transparent;
|
|
37
37
|
-moz-transition: none;
|
|
38
38
|
transition: none;
|
|
39
|
-
} .with-
|
|
39
|
+
} .with-suffix__hasSuffix_12eon input:focus::placeholder {
|
|
40
40
|
color: transparent;
|
|
41
41
|
transition: none;
|
|
42
|
-
} .with-
|
|
42
|
+
} .with-suffix__spacer_12eon {
|
|
43
43
|
visibility: hidden;
|
|
44
44
|
flex-shrink: 0;
|
|
45
45
|
white-space: pre;
|
|
46
|
-
} .with-
|
|
46
|
+
} .with-suffix__suffix_12eon {
|
|
47
47
|
white-space: pre;
|
|
48
|
-
} .with-
|
|
48
|
+
} .with-suffix__disabled_12eon {
|
|
49
49
|
color: var(--input-disabled-color)
|
|
50
|
-
} .with-
|
|
50
|
+
} .with-suffix__disabled_12eon.with-suffix__inverted_12eon {
|
|
51
51
|
color: var(--input-inverted-disabled-color);
|
|
52
|
-
} .with-
|
|
52
|
+
} .with-suffix__readOnly_12eon {
|
|
53
53
|
color: var(--input-read-only-color)
|
|
54
|
-
} .with-
|
|
54
|
+
} .with-suffix__readOnly_12eon.with-suffix__inverted_12eon {
|
|
55
55
|
color: var(--input-inverted-read-only-color);
|
|
56
56
|
}
|
package/esm/index.module.css.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"suffixContainer":"with-
|
|
3
|
+
var styles = {"suffixContainer":"with-suffix__suffixContainer_12eon","size-40":"with-suffix__size-40_12eon","suffixVisible":"with-suffix__suffixVisible_12eon","hasSuffix":"with-suffix__hasSuffix_12eon","spacer":"with-suffix__spacer_12eon","suffix":"with-suffix__suffix_12eon","disabled":"with-suffix__disabled_12eon","inverted":"with-suffix__inverted_12eon","readOnly":"with-suffix__readOnly_12eon"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../../input/src/vars.css';\n\n.suffixContainer {\n @mixin paragraph_component;\n\n position: absolute;\n left: var(--gap-0);\n top: var(--gap-0);\n bottom: var(--gap-0);\n align-items: center;\n display: none;\n pointer-events: none;\n\n &.size-40 {\n @mixin paragraph_component_secondary;\n padding: var(--gap-0) var(--gap-8);\n }\n}\n\ninput:focus:not(:read-only) + .suffixContainer,\n.suffixVisible .suffixContainer {\n display: inline-flex;\n}\n\n.hasSuffix input:focus::placeholder {\n color: transparent;\n transition: none;\n}\n\n.spacer {\n visibility: hidden;\n flex-shrink: 0;\n white-space: pre;\n}\n\n.suffix {\n white-space: pre;\n}\n\n.disabled {\n color: var(--input-disabled-color);\n\n &.inverted {\n color: var(--input-inverted-disabled-color);\n }\n}\n\n.readOnly {\n color: var(--input-read-only-color);\n\n &.inverted {\n color: var(--input-inverted-read-only-color);\n }\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,iBAAiB,CAAC,oCAAoC,CAAC,SAAS,CAAC,4BAA4B,CAAC,eAAe,CAAC,kCAAkC,CAAC,WAAW,CAAC,8BAA8B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-dynamic-mixins-index.css';\n@import '../../input/src/vars.css';\n\n.suffixContainer {\n @mixin paragraph_component;\n\n position: absolute;\n left: var(--gap-0);\n top: var(--gap-0);\n bottom: var(--gap-0);\n align-items: center;\n display: none;\n pointer-events: none;\n\n &.size-40 {\n @mixin paragraph_component_secondary;\n padding: var(--gap-0) var(--gap-8);\n }\n}\n\ninput:focus:not(:read-only) + .suffixContainer,\n.suffixVisible .suffixContainer {\n display: inline-flex;\n}\n\n.hasSuffix input:focus::placeholder {\n color: transparent;\n transition: none;\n}\n\n.spacer {\n visibility: hidden;\n flex-shrink: 0;\n white-space: pre;\n}\n\n.suffix {\n white-space: pre;\n}\n\n.disabled {\n color: var(--input-disabled-color);\n\n &.inverted {\n color: var(--input-inverted-disabled-color);\n }\n}\n\n.readOnly {\n color: var(--input-read-only-color);\n\n &.inverted {\n color: var(--input-inverted-read-only-color);\n }\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,iBAAiB,CAAC,oCAAoC,CAAC,SAAS,CAAC,4BAA4B,CAAC,eAAe,CAAC,kCAAkC,CAAC,WAAW,CAAC,8BAA8B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC;;;;"}
|
package/index.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--input-inverted-disabled-color: var(--color-light-text-tertiary-inverted);
|
|
11
11
|
--input-read-only-color: var(--color-light-text-tertiary);
|
|
12
12
|
--input-inverted-read-only-color: var(--color-light-text-tertiary-inverted);
|
|
13
|
-
} .with-
|
|
13
|
+
} .with-suffix__suffixContainer_12eon {
|
|
14
14
|
font-size: 16px;
|
|
15
15
|
line-height: 20px;
|
|
16
16
|
font-weight: 400;
|
|
@@ -22,35 +22,35 @@
|
|
|
22
22
|
align-items: center;
|
|
23
23
|
display: none;
|
|
24
24
|
pointer-events: none
|
|
25
|
-
} .with-
|
|
25
|
+
} .with-suffix__suffixContainer_12eon.with-suffix__size-40_12eon {
|
|
26
26
|
font-size: 14px;
|
|
27
27
|
line-height: 18px;
|
|
28
28
|
font-weight: 400;
|
|
29
29
|
padding: var(--gap-0) var(--gap-8);
|
|
30
|
-
} input:focus:not(:-moz-read-only) + .with-
|
|
30
|
+
} input:focus:not(:-moz-read-only) + .with-suffix__suffixContainer_12eon {
|
|
31
31
|
display: inline-flex;
|
|
32
|
-
} input:focus:not(:read-only) + .with-
|
|
33
|
-
.with-
|
|
32
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_12eon,
|
|
33
|
+
.with-suffix__suffixVisible_12eon .with-suffix__suffixContainer_12eon {
|
|
34
34
|
display: inline-flex;
|
|
35
|
-
} .with-
|
|
35
|
+
} .with-suffix__hasSuffix_12eon input:focus::-moz-placeholder {
|
|
36
36
|
color: transparent;
|
|
37
37
|
-moz-transition: none;
|
|
38
38
|
transition: none;
|
|
39
|
-
} .with-
|
|
39
|
+
} .with-suffix__hasSuffix_12eon input:focus::placeholder {
|
|
40
40
|
color: transparent;
|
|
41
41
|
transition: none;
|
|
42
|
-
} .with-
|
|
42
|
+
} .with-suffix__spacer_12eon {
|
|
43
43
|
visibility: hidden;
|
|
44
44
|
flex-shrink: 0;
|
|
45
45
|
white-space: pre;
|
|
46
|
-
} .with-
|
|
46
|
+
} .with-suffix__suffix_12eon {
|
|
47
47
|
white-space: pre;
|
|
48
|
-
} .with-
|
|
48
|
+
} .with-suffix__disabled_12eon {
|
|
49
49
|
color: var(--input-disabled-color)
|
|
50
|
-
} .with-
|
|
50
|
+
} .with-suffix__disabled_12eon.with-suffix__inverted_12eon {
|
|
51
51
|
color: var(--input-inverted-disabled-color);
|
|
52
|
-
} .with-
|
|
52
|
+
} .with-suffix__readOnly_12eon {
|
|
53
53
|
color: var(--input-read-only-color)
|
|
54
|
-
} .with-
|
|
54
|
+
} .with-suffix__readOnly_12eon.with-suffix__inverted_12eon {
|
|
55
55
|
color: var(--input-inverted-read-only-color);
|
|
56
56
|
}
|
package/index.module.css.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"suffixContainer":"with-
|
|
5
|
+
var styles = {"suffixContainer":"with-suffix__suffixContainer_12eon","size-40":"with-suffix__size-40_12eon","suffixVisible":"with-suffix__suffixVisible_12eon","hasSuffix":"with-suffix__hasSuffix_12eon","spacer":"with-suffix__spacer_12eon","suffix":"with-suffix__suffix_12eon","disabled":"with-suffix__disabled_12eon","inverted":"with-suffix__inverted_12eon","readOnly":"with-suffix__readOnly_12eon"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
package/index.module.css.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../../input/src/vars.css';\n\n.suffixContainer {\n @mixin paragraph_component;\n\n position: absolute;\n left: var(--gap-0);\n top: var(--gap-0);\n bottom: var(--gap-0);\n align-items: center;\n display: none;\n pointer-events: none;\n\n &.size-40 {\n @mixin paragraph_component_secondary;\n padding: var(--gap-0) var(--gap-8);\n }\n}\n\ninput:focus:not(:read-only) + .suffixContainer,\n.suffixVisible .suffixContainer {\n display: inline-flex;\n}\n\n.hasSuffix input:focus::placeholder {\n color: transparent;\n transition: none;\n}\n\n.spacer {\n visibility: hidden;\n flex-shrink: 0;\n white-space: pre;\n}\n\n.suffix {\n white-space: pre;\n}\n\n.disabled {\n color: var(--input-disabled-color);\n\n &.inverted {\n color: var(--input-inverted-disabled-color);\n }\n}\n\n.readOnly {\n color: var(--input-read-only-color);\n\n &.inverted {\n color: var(--input-inverted-read-only-color);\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,iBAAiB,CAAC,oCAAoC,CAAC,SAAS,CAAC,4BAA4B,CAAC,eAAe,CAAC,kCAAkC,CAAC,WAAW,CAAC,8BAA8B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-dynamic-mixins-index.css';\n@import '../../input/src/vars.css';\n\n.suffixContainer {\n @mixin paragraph_component;\n\n position: absolute;\n left: var(--gap-0);\n top: var(--gap-0);\n bottom: var(--gap-0);\n align-items: center;\n display: none;\n pointer-events: none;\n\n &.size-40 {\n @mixin paragraph_component_secondary;\n padding: var(--gap-0) var(--gap-8);\n }\n}\n\ninput:focus:not(:read-only) + .suffixContainer,\n.suffixVisible .suffixContainer {\n display: inline-flex;\n}\n\n.hasSuffix input:focus::placeholder {\n color: transparent;\n transition: none;\n}\n\n.spacer {\n visibility: hidden;\n flex-shrink: 0;\n white-space: pre;\n}\n\n.suffix {\n white-space: pre;\n}\n\n.disabled {\n color: var(--input-disabled-color);\n\n &.inverted {\n color: var(--input-inverted-disabled-color);\n }\n}\n\n.readOnly {\n color: var(--input-read-only-color);\n\n &.inverted {\n color: var(--input-inverted-read-only-color);\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,iBAAiB,CAAC,oCAAoC,CAAC,SAAS,CAAC,4BAA4B,CAAC,eAAe,CAAC,kCAAkC,CAAC,WAAW,CAAC,8BAA8B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC;;;;"}
|
package/modern/index.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--input-inverted-disabled-color: var(--color-light-text-tertiary-inverted);
|
|
11
11
|
--input-read-only-color: var(--color-light-text-tertiary);
|
|
12
12
|
--input-inverted-read-only-color: var(--color-light-text-tertiary-inverted);
|
|
13
|
-
} .with-
|
|
13
|
+
} .with-suffix__suffixContainer_12eon {
|
|
14
14
|
font-size: 16px;
|
|
15
15
|
line-height: 20px;
|
|
16
16
|
font-weight: 400;
|
|
@@ -22,35 +22,35 @@
|
|
|
22
22
|
align-items: center;
|
|
23
23
|
display: none;
|
|
24
24
|
pointer-events: none
|
|
25
|
-
} .with-
|
|
25
|
+
} .with-suffix__suffixContainer_12eon.with-suffix__size-40_12eon {
|
|
26
26
|
font-size: 14px;
|
|
27
27
|
line-height: 18px;
|
|
28
28
|
font-weight: 400;
|
|
29
29
|
padding: var(--gap-0) var(--gap-8);
|
|
30
|
-
} input:focus:not(:-moz-read-only) + .with-
|
|
30
|
+
} input:focus:not(:-moz-read-only) + .with-suffix__suffixContainer_12eon {
|
|
31
31
|
display: inline-flex;
|
|
32
|
-
} input:focus:not(:read-only) + .with-
|
|
33
|
-
.with-
|
|
32
|
+
} input:focus:not(:read-only) + .with-suffix__suffixContainer_12eon,
|
|
33
|
+
.with-suffix__suffixVisible_12eon .with-suffix__suffixContainer_12eon {
|
|
34
34
|
display: inline-flex;
|
|
35
|
-
} .with-
|
|
35
|
+
} .with-suffix__hasSuffix_12eon input:focus::-moz-placeholder {
|
|
36
36
|
color: transparent;
|
|
37
37
|
-moz-transition: none;
|
|
38
38
|
transition: none;
|
|
39
|
-
} .with-
|
|
39
|
+
} .with-suffix__hasSuffix_12eon input:focus::placeholder {
|
|
40
40
|
color: transparent;
|
|
41
41
|
transition: none;
|
|
42
|
-
} .with-
|
|
42
|
+
} .with-suffix__spacer_12eon {
|
|
43
43
|
visibility: hidden;
|
|
44
44
|
flex-shrink: 0;
|
|
45
45
|
white-space: pre;
|
|
46
|
-
} .with-
|
|
46
|
+
} .with-suffix__suffix_12eon {
|
|
47
47
|
white-space: pre;
|
|
48
|
-
} .with-
|
|
48
|
+
} .with-suffix__disabled_12eon {
|
|
49
49
|
color: var(--input-disabled-color)
|
|
50
|
-
} .with-
|
|
50
|
+
} .with-suffix__disabled_12eon.with-suffix__inverted_12eon {
|
|
51
51
|
color: var(--input-inverted-disabled-color);
|
|
52
|
-
} .with-
|
|
52
|
+
} .with-suffix__readOnly_12eon {
|
|
53
53
|
color: var(--input-read-only-color)
|
|
54
|
-
} .with-
|
|
54
|
+
} .with-suffix__readOnly_12eon.with-suffix__inverted_12eon {
|
|
55
55
|
color: var(--input-inverted-read-only-color);
|
|
56
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"suffixContainer":"with-
|
|
3
|
+
const styles = {"suffixContainer":"with-suffix__suffixContainer_12eon","size-40":"with-suffix__size-40_12eon","suffixVisible":"with-suffix__suffixVisible_12eon","hasSuffix":"with-suffix__hasSuffix_12eon","spacer":"with-suffix__spacer_12eon","suffix":"with-suffix__suffix_12eon","disabled":"with-suffix__disabled_12eon","inverted":"with-suffix__inverted_12eon","readOnly":"with-suffix__readOnly_12eon"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../../input/src/vars.css';\n\n.suffixContainer {\n @mixin paragraph_component;\n\n position: absolute;\n left: var(--gap-0);\n top: var(--gap-0);\n bottom: var(--gap-0);\n align-items: center;\n display: none;\n pointer-events: none;\n\n &.size-40 {\n @mixin paragraph_component_secondary;\n padding: var(--gap-0) var(--gap-8);\n }\n}\n\ninput:focus:not(:read-only) + .suffixContainer,\n.suffixVisible .suffixContainer {\n display: inline-flex;\n}\n\n.hasSuffix input:focus::placeholder {\n color: transparent;\n transition: none;\n}\n\n.spacer {\n visibility: hidden;\n flex-shrink: 0;\n white-space: pre;\n}\n\n.suffix {\n white-space: pre;\n}\n\n.disabled {\n color: var(--input-disabled-color);\n\n &.inverted {\n color: var(--input-inverted-disabled-color);\n }\n}\n\n.readOnly {\n color: var(--input-read-only-color);\n\n &.inverted {\n color: var(--input-inverted-read-only-color);\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,iBAAiB,CAAC,oCAAoC,CAAC,SAAS,CAAC,4BAA4B,CAAC,eAAe,CAAC,kCAAkC,CAAC,WAAW,CAAC,8BAA8B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-dynamic-mixins-index.css';\n@import '../../input/src/vars.css';\n\n.suffixContainer {\n @mixin paragraph_component;\n\n position: absolute;\n left: var(--gap-0);\n top: var(--gap-0);\n bottom: var(--gap-0);\n align-items: center;\n display: none;\n pointer-events: none;\n\n &.size-40 {\n @mixin paragraph_component_secondary;\n padding: var(--gap-0) var(--gap-8);\n }\n}\n\ninput:focus:not(:read-only) + .suffixContainer,\n.suffixVisible .suffixContainer {\n display: inline-flex;\n}\n\n.hasSuffix input:focus::placeholder {\n color: transparent;\n transition: none;\n}\n\n.spacer {\n visibility: hidden;\n flex-shrink: 0;\n white-space: pre;\n}\n\n.suffix {\n white-space: pre;\n}\n\n.disabled {\n color: var(--input-disabled-color);\n\n &.inverted {\n color: var(--input-inverted-disabled-color);\n }\n}\n\n.readOnly {\n color: var(--input-read-only-color);\n\n &.inverted {\n color: var(--input-inverted-read-only-color);\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,iBAAiB,CAAC,oCAAoC,CAAC,SAAS,CAAC,4BAA4B,CAAC,eAAe,CAAC,kCAAkC,CAAC,WAAW,CAAC,8BAA8B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,QAAQ,CAAC,2BAA2B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC,UAAU,CAAC,6BAA6B,CAAC;;;;"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
1
3
|
:root {
|
|
2
4
|
--input-disabled-color: var(--color-light-text-tertiary);
|
|
3
5
|
--input-inverted-disabled-color: var(--color-light-text-tertiary-inverted);
|
|
4
6
|
--input-read-only-color: var(--color-light-text-tertiary);
|
|
5
7
|
--input-inverted-read-only-color: var(--color-light-text-tertiary-inverted);
|
|
6
8
|
}
|
|
9
|
+
|
|
7
10
|
.suffixContainer {
|
|
8
11
|
font-size: 16px;
|
|
9
12
|
line-height: 20px;
|
|
@@ -17,45 +20,56 @@
|
|
|
17
20
|
display: none;
|
|
18
21
|
pointer-events: none
|
|
19
22
|
}
|
|
23
|
+
|
|
20
24
|
.suffixContainer.size-40 {
|
|
21
25
|
font-size: 14px;
|
|
22
26
|
line-height: 18px;
|
|
23
27
|
font-weight: 400;
|
|
24
28
|
padding: var(--gap-0) var(--gap-8);
|
|
25
29
|
}
|
|
30
|
+
|
|
26
31
|
input:focus:not(:-moz-read-only) + .suffixContainer {
|
|
27
32
|
display: inline-flex;
|
|
28
33
|
}
|
|
34
|
+
|
|
29
35
|
input:focus:not(:read-only) + .suffixContainer,
|
|
30
36
|
.suffixVisible .suffixContainer {
|
|
31
37
|
display: inline-flex;
|
|
32
38
|
}
|
|
39
|
+
|
|
33
40
|
.hasSuffix input:focus::-moz-placeholder {
|
|
34
41
|
color: transparent;
|
|
35
42
|
-moz-transition: none;
|
|
36
43
|
transition: none;
|
|
37
44
|
}
|
|
45
|
+
|
|
38
46
|
.hasSuffix input:focus::placeholder {
|
|
39
47
|
color: transparent;
|
|
40
48
|
transition: none;
|
|
41
49
|
}
|
|
50
|
+
|
|
42
51
|
.spacer {
|
|
43
52
|
visibility: hidden;
|
|
44
53
|
flex-shrink: 0;
|
|
45
54
|
white-space: pre;
|
|
46
55
|
}
|
|
56
|
+
|
|
47
57
|
.suffix {
|
|
48
58
|
white-space: pre;
|
|
49
59
|
}
|
|
60
|
+
|
|
50
61
|
.disabled {
|
|
51
62
|
color: var(--input-disabled-color)
|
|
52
63
|
}
|
|
64
|
+
|
|
53
65
|
.disabled.inverted {
|
|
54
66
|
color: var(--input-inverted-disabled-color);
|
|
55
67
|
}
|
|
68
|
+
|
|
56
69
|
.readOnly {
|
|
57
70
|
color: var(--input-read-only-color)
|
|
58
71
|
}
|
|
72
|
+
|
|
59
73
|
.readOnly.inverted {
|
|
60
74
|
color: var(--input-inverted-read-only-color);
|
|
61
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-with-suffix",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0-snapshot-92b8690",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"main": "index.js",
|
|
11
11
|
"module": "./esm/index.js",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@alfalab/core-components-input": "
|
|
14
|
-
"@alfalab/core-components-portal": "
|
|
13
|
+
"@alfalab/core-components-input": "16.1.0-snapshot-92b8690",
|
|
14
|
+
"@alfalab/core-components-portal": "4.1.0-snapshot-92b8690",
|
|
15
15
|
"classnames": "^2.5.1",
|
|
16
16
|
"react-merge-refs": "^1.1.0",
|
|
17
17
|
"tslib": "^2.4.0"
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"access": "public",
|
|
25
25
|
"directory": "dist"
|
|
26
26
|
},
|
|
27
|
-
"themesVersion": "14.
|
|
28
|
-
"varsVersion": "10.
|
|
27
|
+
"themesVersion": "14.1.0-snapshot-92b8690",
|
|
28
|
+
"varsVersion": "10.1.0-snapshot-92b8690"
|
|
29
29
|
}
|
package/src/index.module.css
CHANGED