@salutejs/plasma-web 1.582.0-canary.1941.15139372287.0 → 1.582.0-canary.1954.15204086746.0
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/components/Link/Link.config.js +12 -12
- package/components/Link/Link.d.ts +1 -1
- package/components/{CodeField/CodeField.config.d.ts → List/List.config.d.ts} +8 -5
- package/components/List/List.config.js +35 -0
- package/components/List/List.d.ts +30 -0
- package/components/List/List.js +15 -0
- package/components/List/index.d.ts +3 -2
- package/components/List/index.js +4 -3
- package/css/cjs/components/Link/Link.config.js +1 -1
- package/css/cjs/components/Link/Link.config.js.map +1 -1
- package/css/cjs/components/Link/{Link.config_q8zx6f.css → Link.config_zdek5n.css} +1 -1
- package/css/cjs/components/Link/Link.css +12 -12
- package/css/cjs/components/List/List.config.js +34 -0
- package/css/cjs/components/List/List.config.js.map +1 -0
- package/css/cjs/components/List/List.config_zoesgm.css +9 -0
- package/css/cjs/components/List/List.css +9 -0
- package/css/cjs/components/List/List.js +17 -0
- package/css/cjs/components/List/List.js.map +1 -0
- package/css/cjs/index.css +22 -19
- package/css/cjs/index.js +4 -20
- package/css/cjs/index.js.map +1 -1
- package/css/es/components/Link/Link.config.js +1 -1
- package/css/es/components/Link/Link.config.js.map +1 -1
- package/css/es/components/Link/{Link.config_q8zx6f.css → Link.config_zdek5n.css} +1 -1
- package/css/es/components/Link/Link.css +12 -12
- package/css/es/components/List/List.config.js +30 -0
- package/css/es/components/List/List.config.js.map +1 -0
- package/css/es/components/List/List.config_zoesgm.css +9 -0
- package/css/es/components/List/List.css +9 -0
- package/css/es/components/List/List.js +13 -0
- package/css/es/components/List/List.js.map +1 -0
- package/css/es/index.css +22 -19
- package/css/es/index.js +2 -2
- package/css/index.d.ts +2 -2
- package/es/components/Link/Link.config.js +13 -13
- package/es/components/List/List.config.js +29 -0
- package/es/components/List/List.js +9 -0
- package/es/components/List/index.js +2 -2
- package/es/index.js +1 -2
- package/index.d.ts +0 -1
- package/index.js +0 -11
- package/package.json +3 -3
- package/components/CodeField/CodeField.config.js +0 -32
- package/components/CodeField/CodeField.d.ts +0 -36
- package/components/CodeField/CodeField.js +0 -10
- package/components/CodeField/index.d.ts +0 -2
- package/components/CodeField/index.js +0 -43
- package/css/cjs/components/CodeField/CodeField.config.js +0 -31
- package/css/cjs/components/CodeField/CodeField.config.js.map +0 -1
- package/css/cjs/components/CodeField/CodeField.config_7779xg.css +0 -6
- package/css/cjs/components/CodeField/CodeField.css +0 -6
- package/css/cjs/components/CodeField/CodeField.js +0 -12
- package/css/cjs/components/CodeField/CodeField.js.map +0 -1
- package/css/es/components/CodeField/CodeField.config.js +0 -27
- package/css/es/components/CodeField/CodeField.config.js.map +0 -1
- package/css/es/components/CodeField/CodeField.config_7779xg.css +0 -6
- package/css/es/components/CodeField/CodeField.css +0 -6
- package/css/es/components/CodeField/CodeField.js +0 -8
- package/css/es/components/CodeField/CodeField.js.map +0 -1
- package/es/components/CodeField/CodeField.config.js +0 -26
- package/es/components/CodeField/CodeField.js +0 -4
- package/es/components/CodeField/index.js +0 -2
package/index.d.ts
CHANGED
package/index.js
CHANGED
@@ -915,15 +915,4 @@ Object.keys(_Table).forEach(function (key) {
|
|
915
915
|
return _Table[key];
|
916
916
|
}
|
917
917
|
});
|
918
|
-
});
|
919
|
-
var _CodeField = /*#__PURE__*/require("./components/CodeField");
|
920
|
-
Object.keys(_CodeField).forEach(function (key) {
|
921
|
-
if (key === "default" || key === "__esModule") return;
|
922
|
-
if (key in exports && exports[key] === _CodeField[key]) return;
|
923
|
-
Object.defineProperty(exports, key, {
|
924
|
-
enumerable: true,
|
925
|
-
get: function get() {
|
926
|
-
return _CodeField[key];
|
927
|
-
}
|
928
|
-
});
|
929
918
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-web",
|
3
|
-
"version": "1.582.0-canary.
|
3
|
+
"version": "1.582.0-canary.1954.15204086746.0",
|
4
4
|
"description": "Salute Design System / React UI kit for web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"dependencies": {
|
22
22
|
"@salutejs/plasma-core": "1.196.0",
|
23
23
|
"@salutejs/plasma-hope": "1.340.0",
|
24
|
-
"@salutejs/plasma-new-hope": "0.324.0-canary.
|
24
|
+
"@salutejs/plasma-new-hope": "0.324.0-canary.1954.15204086746.0",
|
25
25
|
"@salutejs/plasma-themes": "0.33.0",
|
26
26
|
"@salutejs/plasma-tokens-b2b": "1.48.0",
|
27
27
|
"@salutejs/plasma-tokens-b2c": "0.59.0",
|
@@ -111,5 +111,5 @@
|
|
111
111
|
"Fanil Zubairov"
|
112
112
|
],
|
113
113
|
"sideEffects": false,
|
114
|
-
"gitHead": "
|
114
|
+
"gitHead": "36b631441c7357489bde01227895e6e86fa989a2"
|
115
115
|
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.config = void 0;
|
7
|
-
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
9
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
10
|
-
var config = exports.config = {
|
11
|
-
defaults: {
|
12
|
-
view: 'default',
|
13
|
-
size: 'l',
|
14
|
-
shape: 'default'
|
15
|
-
},
|
16
|
-
variations: {
|
17
|
-
view: {
|
18
|
-
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent);\n\n ", ": var(--text-secondary);\n ", ": var(--text-negative);\n\n ", ": var(--text-primary);\n ", ": var(--text-negative);\n\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--text-secondary);\n ", ": var(--surface-accent);\n ", ": var(--surface-negative);\n "])), _styledComponents.codeFieldTokens.caretColor, _styledComponents.codeFieldTokens.captionColor, _styledComponents.codeFieldTokens.captionColorError, _styledComponents.codeFieldTokens.codeColor, _styledComponents.codeFieldTokens.codeColorError, _styledComponents.codeFieldTokens.borderColor, _styledComponents.codeFieldTokens.borderColorHover, _styledComponents.codeFieldTokens.borderColorFocus, _styledComponents.codeFieldTokens.borderErrorColor)
|
19
|
-
},
|
20
|
-
size: {
|
21
|
-
l: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.875rem;\n ", ": 0.125rem;\n\n ", ": 0.25rem;\n\n ", ": 2.75rem;\n ", ": 3.5rem;\n\n ", ": var(--plasma-typo-body-l-font-family);\n ", ": var(--plasma-typo-body-l-font-size);\n ", ": var(--plasma-typo-body-l-font-style);\n ", ": var(--plasma-typo-body-l-bold-font-weight);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-l-line-height);\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 0.063rem;\n ", ": 0.875rem;\n ", ": 0.375rem;\n ", ": 0.875rem;\n "])), _styledComponents.codeFieldTokens.captionGap, _styledComponents.codeFieldTokens.codeItemsGap, _styledComponents.codeFieldTokens.separatorWidth, _styledComponents.codeFieldTokens.codeItemWidth, _styledComponents.codeFieldTokens.codeItemHeight, _styledComponents.codeFieldTokens.fontFamily, _styledComponents.codeFieldTokens.fontSize, _styledComponents.codeFieldTokens.fontStyle, _styledComponents.codeFieldTokens.fontWeight, _styledComponents.codeFieldTokens.letterSpacing, _styledComponents.codeFieldTokens.lineHeight, _styledComponents.codeFieldTokens.captionFontFamily, _styledComponents.codeFieldTokens.captionFontSize, _styledComponents.codeFieldTokens.captionFontStyle, _styledComponents.codeFieldTokens.captionFontWeight, _styledComponents.codeFieldTokens.captionLetterSpacing, _styledComponents.codeFieldTokens.captionLineHeight, _styledComponents.codeFieldTokens.borderWidth, _styledComponents.codeFieldTokens.borderRadius, _styledComponents.codeFieldTokens.borderRadiusSegmented, _styledComponents.codeFieldTokens.segmentedSideBorderRadius),
|
22
|
-
m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.75rem;\n ", ": 0.125rem;\n\n ", ": 0.25rem;\n\n ", ": 2.375rem;\n ", ": 3rem;\n\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-bold-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": 0.063rem;\n ", ": 0.75rem;\n ", ": 0.25rem;\n ", ": 0.75rem;\n "])), _styledComponents.codeFieldTokens.captionGap, _styledComponents.codeFieldTokens.codeItemsGap, _styledComponents.codeFieldTokens.separatorWidth, _styledComponents.codeFieldTokens.codeItemWidth, _styledComponents.codeFieldTokens.codeItemHeight, _styledComponents.codeFieldTokens.fontFamily, _styledComponents.codeFieldTokens.fontSize, _styledComponents.codeFieldTokens.fontStyle, _styledComponents.codeFieldTokens.fontWeight, _styledComponents.codeFieldTokens.letterSpacing, _styledComponents.codeFieldTokens.lineHeight, _styledComponents.codeFieldTokens.captionFontFamily, _styledComponents.codeFieldTokens.captionFontSize, _styledComponents.codeFieldTokens.captionFontStyle, _styledComponents.codeFieldTokens.captionFontWeight, _styledComponents.codeFieldTokens.captionLetterSpacing, _styledComponents.codeFieldTokens.captionLineHeight, _styledComponents.codeFieldTokens.borderWidth, _styledComponents.codeFieldTokens.borderRadius, _styledComponents.codeFieldTokens.borderRadiusSegmented, _styledComponents.codeFieldTokens.segmentedSideBorderRadius)
|
23
|
-
},
|
24
|
-
shape: {
|
25
|
-
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral([""]))),
|
26
|
-
segmented: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
27
|
-
},
|
28
|
-
disabled: {
|
29
|
-
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), _styledComponents.codeFieldTokens.disabledOpacity)
|
30
|
-
}
|
31
|
-
}
|
32
|
-
};
|
@@ -1,36 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const CodeField: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
3
|
-
view: {
|
4
|
-
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
5
|
-
};
|
6
|
-
size: {
|
7
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
8
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
9
|
-
};
|
10
|
-
shape: {
|
11
|
-
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
|
-
segmented: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
13
|
-
};
|
14
|
-
disabled: {
|
15
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
16
|
-
};
|
17
|
-
}> & {
|
18
|
-
value?: string | undefined;
|
19
|
-
placeholder?: string | undefined;
|
20
|
-
autoFocus?: boolean | undefined;
|
21
|
-
codeLength?: 4 | 5 | 6 | undefined;
|
22
|
-
caption?: import("react").ReactNode;
|
23
|
-
captionAlign?: "center" | "left" | undefined;
|
24
|
-
width?: string | number | undefined;
|
25
|
-
shape?: "default" | "segmented" | undefined;
|
26
|
-
view?: string | undefined;
|
27
|
-
size?: string | undefined;
|
28
|
-
disabled?: boolean | undefined;
|
29
|
-
isError?: boolean | undefined;
|
30
|
-
setIsError?: import("react").Dispatch<import("react").SetStateAction<boolean>> | undefined;
|
31
|
-
allowedSymbols?: string | RegExp | undefined;
|
32
|
-
itemErrorBehavior?: import("@salutejs/plasma-new-hope/types/components/CodeField/CodeField.types").ItemErrorBehavior | undefined;
|
33
|
-
codeErrorBehavior?: import("@salutejs/plasma-new-hope/types/components/CodeField/CodeField.types").CodeErrorBehavior | undefined;
|
34
|
-
onChange?: ((value: string) => void) | undefined;
|
35
|
-
onFullCodeEnter?: ((code: string) => void) | undefined;
|
36
|
-
} & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "aria-label" | "autoComplete"> & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange"> & import("react").RefAttributes<HTMLInputElement>>;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.CodeField = void 0;
|
7
|
-
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
-
var _CodeField = /*#__PURE__*/require("./CodeField.config");
|
9
|
-
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.codeFieldConfig, _CodeField.config);
|
10
|
-
var CodeField = exports.CodeField = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
@@ -1,43 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(exports, "CodeField", {
|
7
|
-
enumerable: true,
|
8
|
-
get: function get() {
|
9
|
-
return _CodeField.CodeField;
|
10
|
-
}
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "ONLY_CHARS_PATTERN", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function get() {
|
15
|
-
return _styledComponents.ONLY_CHARS_PATTERN;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
Object.defineProperty(exports, "ONLY_DIGITS_AND_CHARS_PATTERN", {
|
19
|
-
enumerable: true,
|
20
|
-
get: function get() {
|
21
|
-
return _styledComponents.ONLY_DIGITS_AND_CHARS_PATTERN;
|
22
|
-
}
|
23
|
-
});
|
24
|
-
Object.defineProperty(exports, "ONLY_DIGITS_PATTERN", {
|
25
|
-
enumerable: true,
|
26
|
-
get: function get() {
|
27
|
-
return _styledComponents.ONLY_DIGITS_PATTERN;
|
28
|
-
}
|
29
|
-
});
|
30
|
-
Object.defineProperty(exports, "codeFieldClasses", {
|
31
|
-
enumerable: true,
|
32
|
-
get: function get() {
|
33
|
-
return _styledComponents.codeFieldClasses;
|
34
|
-
}
|
35
|
-
});
|
36
|
-
Object.defineProperty(exports, "codeFieldTokens", {
|
37
|
-
enumerable: true,
|
38
|
-
get: function get() {
|
39
|
-
return _styledComponents.codeFieldTokens;
|
40
|
-
}
|
41
|
-
});
|
42
|
-
var _CodeField = /*#__PURE__*/require("./CodeField");
|
43
|
-
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
@@ -1,31 +0,0 @@
|
|
1
|
-
require('./CodeField.config_7779xg.css');
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
5
|
-
|
6
|
-
var config = {
|
7
|
-
defaults: {
|
8
|
-
view: 'default',
|
9
|
-
size: 'l',
|
10
|
-
shape: 'default'
|
11
|
-
},
|
12
|
-
variations: {
|
13
|
-
view: {
|
14
|
-
"default": "d1bb0wws"
|
15
|
-
},
|
16
|
-
size: {
|
17
|
-
l: "lfcgrq9",
|
18
|
-
m: "mxiurbd"
|
19
|
-
},
|
20
|
-
shape: {
|
21
|
-
"default": "d1gohvl1",
|
22
|
-
segmented: "s1jopwbz"
|
23
|
-
},
|
24
|
-
disabled: {
|
25
|
-
"true": "tck0g5r"
|
26
|
-
}
|
27
|
-
}
|
28
|
-
};
|
29
|
-
|
30
|
-
exports.config = config;
|
31
|
-
//# sourceMappingURL=CodeField.config.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CodeField.config.js","sources":["../../../../src-css/components/CodeField/CodeField.config.ts"],"sourcesContent":["import { css, codeFieldTokens as tokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'l',\n shape: 'default',\n },\n variations: {\n view: {\n default: css`\n ${tokens.caretColor}: var(--surface-accent);\n\n ${tokens.captionColor}: var(--text-secondary);\n ${tokens.captionColorError}: var(--text-negative);\n\n ${tokens.codeColor}: var(--text-primary);\n ${tokens.codeColorError}: var(--text-negative);\n\n ${tokens.borderColor}: var(--surface-transparent-tertiary);\n ${tokens.borderColorHover}: var(--text-secondary);\n ${tokens.borderColorFocus}: var(--surface-accent);\n ${tokens.borderErrorColor}: var(--surface-negative);\n `,\n },\n size: {\n l: css`\n ${tokens.captionGap}: 0.875rem;\n ${tokens.codeItemsGap}: 0.125rem;\n\n ${tokens.separatorWidth}: 0.25rem;\n\n ${tokens.codeItemWidth}: 2.75rem;\n ${tokens.codeItemHeight}: 3.5rem;\n\n ${tokens.fontFamily}: var(--plasma-typo-body-l-font-family);\n ${tokens.fontSize}: var(--plasma-typo-body-l-font-size);\n ${tokens.fontStyle}: var(--plasma-typo-body-l-font-style);\n ${tokens.fontWeight}: var(--plasma-typo-body-l-bold-font-weight);\n ${tokens.letterSpacing}: var(--plasma-typo-body-l-letter-spacing);\n ${tokens.lineHeight}: var(--plasma-typo-body-l-line-height);\n\n ${tokens.captionFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.captionFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.captionFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.captionFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.captionLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.captionLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.borderWidth}: 0.063rem;\n ${tokens.borderRadius}: 0.875rem;\n ${tokens.borderRadiusSegmented}: 0.375rem;\n ${tokens.segmentedSideBorderRadius}: 0.875rem;\n `,\n m: css`\n ${tokens.captionGap}: 0.75rem;\n ${tokens.codeItemsGap}: 0.125rem;\n\n ${tokens.separatorWidth}: 0.25rem;\n\n ${tokens.codeItemWidth}: 2.375rem;\n ${tokens.codeItemHeight}: 3rem;\n\n ${tokens.fontFamily}: var(--plasma-typo-body-m-font-family);\n ${tokens.fontSize}: var(--plasma-typo-body-m-font-size);\n ${tokens.fontStyle}: var(--plasma-typo-body-m-font-style);\n ${tokens.fontWeight}: var(--plasma-typo-body-m-bold-font-weight);\n ${tokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);\n ${tokens.lineHeight}: var(--plasma-typo-body-m-line-height);\n\n ${tokens.captionFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.captionFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.captionFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.captionFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.captionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.captionLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.borderWidth}: 0.063rem;\n ${tokens.borderRadius}: 0.75rem;\n ${tokens.borderRadiusSegmented}: 0.25rem;\n ${tokens.segmentedSideBorderRadius}: 0.75rem;\n `,\n },\n shape: {\n default: css``,\n segmented: css``,\n },\n disabled: {\n true: css`\n ${tokens.disabledOpacity}: 0.4;\n `,\n },\n },\n};\n"],"names":["config","defaults","view","size","shape","variations","default","l","m","segmented","disabled","true"],"mappings":";;;;AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,KAAK,EAAE,SAAA;GACV;AACDC,EAAAA,UAAU,EAAE;AACRH,IAAAA,IAAI,EAAE;MACFI,SAAO,EAAA,UAAA;KAcV;AACDH,IAAAA,IAAI,EAAE;AACFI,MAAAA,CAAC,EA2BA,SAAA;AACDC,MAAAA,CAAC,EAAA,SAAA;KA4BJ;AACDJ,IAAAA,KAAK,EAAE;AACHE,MAAAA,SAAAA,EAAc,UAAA;AACdG,MAAAA,SAAS,EAAA,UAAA;KACZ;AACDC,IAAAA,QAAQ,EAAE;MACNC,MAAI,EAAA,SAAA;AAGR,KAAA;AACJ,GAAA;AACJ;;;;"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
.d1bb0wws{--plasma-codefield-caret-color:var(--surface-accent);--plasma-codefield-caption-color:var(--text-secondary);--plasma-codefield-caption-color-error:var(--text-negative);--plasma-codefield-code-color:var(--text-primary);--plasma-codefield-code-color-error:var(--text-negative);--plasma-codefield-border-color:var(--surface-transparent-tertiary);--plasma-codefield-border-color-hover:var(--text-secondary);--plasma-codefield-border-color-focus:var(--surface-accent);--plasma-codefield-border-error-color:var(--surface-negative);}
|
2
|
-
.lfcgrq9{--plasma-codefield-caption-gap:0.875rem;--plasma-codefield-code-item-gap:0.125rem;--plasma-codefield-separator-width:0.25rem;--plasma-codefield-item-width:2.75rem;--plasma-codefield-item-height:3.5rem;--plasma-codefield-font-family:var(--plasma-typo-body-l-font-family);--plasma-codefield-font-size:var(--plasma-typo-body-l-font-size);--plasma-codefield-font-style:var(--plasma-typo-body-l-font-style);--plasma-codefield-font-weight:var(--plasma-typo-body-l-bold-font-weight);--plasma-codefield-letter-spacing:var(--plasma-typo-body-l-letter-spacing);--plasma-codefield-line-height:var(--plasma-typo-body-l-line-height);--plasma-codefield-caption-font-family:var(--plasma-typo-body-s-font-family);--plasma-codefield-caption-font-style:var(--plasma-typo-body-s-font-size);--plasma-codefield-caption-font-size:var(--plasma-typo-body-s-font-style);--plasma-codefield-caption-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-codefield-caption-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-codefield-caption-line-height:var(--plasma-typo-body-s-line-height);--plasma-codefield-border-width:0.063rem;--plasma-codefield-code-item-border-radius:0.875rem;--plasma-codefield-code-item-border-radius-segmented:0.375rem;--plasma-codefield-code-item-segmented-side-border-radius:0.875rem;}
|
3
|
-
.mxiurbd{--plasma-codefield-caption-gap:0.75rem;--plasma-codefield-code-item-gap:0.125rem;--plasma-codefield-separator-width:0.25rem;--plasma-codefield-item-width:2.375rem;--plasma-codefield-item-height:3rem;--plasma-codefield-font-family:var(--plasma-typo-body-m-font-family);--plasma-codefield-font-size:var(--plasma-typo-body-m-font-size);--plasma-codefield-font-style:var(--plasma-typo-body-m-font-style);--plasma-codefield-font-weight:var(--plasma-typo-body-m-bold-font-weight);--plasma-codefield-letter-spacing:var(--plasma-typo-body-m-letter-spacing);--plasma-codefield-line-height:var(--plasma-typo-body-m-line-height);--plasma-codefield-caption-font-family:var(--plasma-typo-body-xs-font-family);--plasma-codefield-caption-font-style:var(--plasma-typo-body-xs-font-size);--plasma-codefield-caption-font-size:var(--plasma-typo-body-xs-font-style);--plasma-codefield-caption-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-codefield-caption-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-codefield-caption-line-height:var(--plasma-typo-body-xs-line-height);--plasma-codefield-border-width:0.063rem;--plasma-codefield-code-item-border-radius:0.75rem;--plasma-codefield-code-item-border-radius-segmented:0.25rem;--plasma-codefield-code-item-segmented-side-border-radius:0.75rem;}
|
4
|
-
|
5
|
-
|
6
|
-
.tck0g5r{--plasma-codefield-disabled-opacity:0.4;}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
.CodeField_config_7779xg_d1bb0wws__358f1b2e{--plasma-codefield-caret-color:var(--surface-accent);--plasma-codefield-caption-color:var(--text-secondary);--plasma-codefield-caption-color-error:var(--text-negative);--plasma-codefield-code-color:var(--text-primary);--plasma-codefield-code-color-error:var(--text-negative);--plasma-codefield-border-color:var(--surface-transparent-tertiary);--plasma-codefield-border-color-hover:var(--text-secondary);--plasma-codefield-border-color-focus:var(--surface-accent);--plasma-codefield-border-error-color:var(--surface-negative);}
|
2
|
-
.CodeField_config_7779xg_lfcgrq9__358f1b2e{--plasma-codefield-caption-gap:0.875rem;--plasma-codefield-code-item-gap:0.125rem;--plasma-codefield-separator-width:0.25rem;--plasma-codefield-item-width:2.75rem;--plasma-codefield-item-height:3.5rem;--plasma-codefield-font-family:var(--plasma-typo-body-l-font-family);--plasma-codefield-font-size:var(--plasma-typo-body-l-font-size);--plasma-codefield-font-style:var(--plasma-typo-body-l-font-style);--plasma-codefield-font-weight:var(--plasma-typo-body-l-bold-font-weight);--plasma-codefield-letter-spacing:var(--plasma-typo-body-l-letter-spacing);--plasma-codefield-line-height:var(--plasma-typo-body-l-line-height);--plasma-codefield-caption-font-family:var(--plasma-typo-body-s-font-family);--plasma-codefield-caption-font-style:var(--plasma-typo-body-s-font-size);--plasma-codefield-caption-font-size:var(--plasma-typo-body-s-font-style);--plasma-codefield-caption-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-codefield-caption-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-codefield-caption-line-height:var(--plasma-typo-body-s-line-height);--plasma-codefield-border-width:0.063rem;--plasma-codefield-code-item-border-radius:0.875rem;--plasma-codefield-code-item-border-radius-segmented:0.375rem;--plasma-codefield-code-item-segmented-side-border-radius:0.875rem;}
|
3
|
-
.CodeField_config_7779xg_mxiurbd__358f1b2e{--plasma-codefield-caption-gap:0.75rem;--plasma-codefield-code-item-gap:0.125rem;--plasma-codefield-separator-width:0.25rem;--plasma-codefield-item-width:2.375rem;--plasma-codefield-item-height:3rem;--plasma-codefield-font-family:var(--plasma-typo-body-m-font-family);--plasma-codefield-font-size:var(--plasma-typo-body-m-font-size);--plasma-codefield-font-style:var(--plasma-typo-body-m-font-style);--plasma-codefield-font-weight:var(--plasma-typo-body-m-bold-font-weight);--plasma-codefield-letter-spacing:var(--plasma-typo-body-m-letter-spacing);--plasma-codefield-line-height:var(--plasma-typo-body-m-line-height);--plasma-codefield-caption-font-family:var(--plasma-typo-body-xs-font-family);--plasma-codefield-caption-font-style:var(--plasma-typo-body-xs-font-size);--plasma-codefield-caption-font-size:var(--plasma-typo-body-xs-font-style);--plasma-codefield-caption-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-codefield-caption-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-codefield-caption-line-height:var(--plasma-typo-body-xs-line-height);--plasma-codefield-border-width:0.063rem;--plasma-codefield-code-item-border-radius:0.75rem;--plasma-codefield-code-item-border-radius-segmented:0.25rem;--plasma-codefield-code-item-segmented-side-border-radius:0.75rem;}
|
4
|
-
|
5
|
-
|
6
|
-
.CodeField_config_7779xg_tck0g5r__358f1b2e{--plasma-codefield-disabled-opacity:0.4;}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
var plasmaNewHope = require('@salutejs/plasma-new-hope');
|
6
|
-
var CodeField_config = require('./CodeField.config.js');
|
7
|
-
|
8
|
-
var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.codeFieldConfig, CodeField_config.config);
|
9
|
-
var CodeField = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
|
10
|
-
|
11
|
-
exports.CodeField = CodeField;
|
12
|
-
//# sourceMappingURL=CodeField.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CodeField.js","sources":["../../../../src-css/components/CodeField/CodeField.ts"],"sourcesContent":["import { codeFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './CodeField.config';\n\nconst mergedConfig = mergeConfig(codeFieldConfig, config);\n\nexport const CodeField = component(mergedConfig);\n"],"names":["mergedConfig","mergeConfig","codeFieldConfig","config","CodeField","component"],"mappings":";;;;;;;AAIA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,6BAAe,EAAEC,uBAAM,CAAC,CAAA;IAE5CC,SAAS,gBAAGC,uBAAS,CAACL,YAAY;;;;"}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import './CodeField.config_7779xg.css';
|
2
|
-
var config = {
|
3
|
-
defaults: {
|
4
|
-
view: 'default',
|
5
|
-
size: 'l',
|
6
|
-
shape: 'default'
|
7
|
-
},
|
8
|
-
variations: {
|
9
|
-
view: {
|
10
|
-
"default": "d1bb0wws"
|
11
|
-
},
|
12
|
-
size: {
|
13
|
-
l: "lfcgrq9",
|
14
|
-
m: "mxiurbd"
|
15
|
-
},
|
16
|
-
shape: {
|
17
|
-
"default": "d1gohvl1",
|
18
|
-
segmented: "s1jopwbz"
|
19
|
-
},
|
20
|
-
disabled: {
|
21
|
-
"true": "tck0g5r"
|
22
|
-
}
|
23
|
-
}
|
24
|
-
};
|
25
|
-
|
26
|
-
export { config };
|
27
|
-
//# sourceMappingURL=CodeField.config.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CodeField.config.js","sources":["../../../../src-css/components/CodeField/CodeField.config.ts"],"sourcesContent":["import { css, codeFieldTokens as tokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'l',\n shape: 'default',\n },\n variations: {\n view: {\n default: css`\n ${tokens.caretColor}: var(--surface-accent);\n\n ${tokens.captionColor}: var(--text-secondary);\n ${tokens.captionColorError}: var(--text-negative);\n\n ${tokens.codeColor}: var(--text-primary);\n ${tokens.codeColorError}: var(--text-negative);\n\n ${tokens.borderColor}: var(--surface-transparent-tertiary);\n ${tokens.borderColorHover}: var(--text-secondary);\n ${tokens.borderColorFocus}: var(--surface-accent);\n ${tokens.borderErrorColor}: var(--surface-negative);\n `,\n },\n size: {\n l: css`\n ${tokens.captionGap}: 0.875rem;\n ${tokens.codeItemsGap}: 0.125rem;\n\n ${tokens.separatorWidth}: 0.25rem;\n\n ${tokens.codeItemWidth}: 2.75rem;\n ${tokens.codeItemHeight}: 3.5rem;\n\n ${tokens.fontFamily}: var(--plasma-typo-body-l-font-family);\n ${tokens.fontSize}: var(--plasma-typo-body-l-font-size);\n ${tokens.fontStyle}: var(--plasma-typo-body-l-font-style);\n ${tokens.fontWeight}: var(--plasma-typo-body-l-bold-font-weight);\n ${tokens.letterSpacing}: var(--plasma-typo-body-l-letter-spacing);\n ${tokens.lineHeight}: var(--plasma-typo-body-l-line-height);\n\n ${tokens.captionFontFamily}: var(--plasma-typo-body-s-font-family);\n ${tokens.captionFontSize}: var(--plasma-typo-body-s-font-size);\n ${tokens.captionFontStyle}: var(--plasma-typo-body-s-font-style);\n ${tokens.captionFontWeight}: var(--plasma-typo-body-s-font-weight);\n ${tokens.captionLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);\n ${tokens.captionLineHeight}: var(--plasma-typo-body-s-line-height);\n\n ${tokens.borderWidth}: 0.063rem;\n ${tokens.borderRadius}: 0.875rem;\n ${tokens.borderRadiusSegmented}: 0.375rem;\n ${tokens.segmentedSideBorderRadius}: 0.875rem;\n `,\n m: css`\n ${tokens.captionGap}: 0.75rem;\n ${tokens.codeItemsGap}: 0.125rem;\n\n ${tokens.separatorWidth}: 0.25rem;\n\n ${tokens.codeItemWidth}: 2.375rem;\n ${tokens.codeItemHeight}: 3rem;\n\n ${tokens.fontFamily}: var(--plasma-typo-body-m-font-family);\n ${tokens.fontSize}: var(--plasma-typo-body-m-font-size);\n ${tokens.fontStyle}: var(--plasma-typo-body-m-font-style);\n ${tokens.fontWeight}: var(--plasma-typo-body-m-bold-font-weight);\n ${tokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);\n ${tokens.lineHeight}: var(--plasma-typo-body-m-line-height);\n\n ${tokens.captionFontFamily}: var(--plasma-typo-body-xs-font-family);\n ${tokens.captionFontSize}: var(--plasma-typo-body-xs-font-size);\n ${tokens.captionFontStyle}: var(--plasma-typo-body-xs-font-style);\n ${tokens.captionFontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${tokens.captionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${tokens.captionLineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${tokens.borderWidth}: 0.063rem;\n ${tokens.borderRadius}: 0.75rem;\n ${tokens.borderRadiusSegmented}: 0.25rem;\n ${tokens.segmentedSideBorderRadius}: 0.75rem;\n `,\n },\n shape: {\n default: css``,\n segmented: css``,\n },\n disabled: {\n true: css`\n ${tokens.disabledOpacity}: 0.4;\n `,\n },\n },\n};\n"],"names":["config","defaults","view","size","shape","variations","default","l","m","segmented","disabled","true"],"mappings":"AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,KAAK,EAAE,SAAA;GACV;AACDC,EAAAA,UAAU,EAAE;AACRH,IAAAA,IAAI,EAAE;MACFI,SAAO,EAAA,UAAA;KAcV;AACDH,IAAAA,IAAI,EAAE;AACFI,MAAAA,CAAC,EA2BA,SAAA;AACDC,MAAAA,CAAC,EAAA,SAAA;KA4BJ;AACDJ,IAAAA,KAAK,EAAE;AACHE,MAAAA,SAAAA,EAAc,UAAA;AACdG,MAAAA,SAAS,EAAA,UAAA;KACZ;AACDC,IAAAA,QAAQ,EAAE;MACNC,MAAI,EAAA,SAAA;AAGR,KAAA;AACJ,GAAA;AACJ;;;;"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
.d1bb0wws{--plasma-codefield-caret-color:var(--surface-accent);--plasma-codefield-caption-color:var(--text-secondary);--plasma-codefield-caption-color-error:var(--text-negative);--plasma-codefield-code-color:var(--text-primary);--plasma-codefield-code-color-error:var(--text-negative);--plasma-codefield-border-color:var(--surface-transparent-tertiary);--plasma-codefield-border-color-hover:var(--text-secondary);--plasma-codefield-border-color-focus:var(--surface-accent);--plasma-codefield-border-error-color:var(--surface-negative);}
|
2
|
-
.lfcgrq9{--plasma-codefield-caption-gap:0.875rem;--plasma-codefield-code-item-gap:0.125rem;--plasma-codefield-separator-width:0.25rem;--plasma-codefield-item-width:2.75rem;--plasma-codefield-item-height:3.5rem;--plasma-codefield-font-family:var(--plasma-typo-body-l-font-family);--plasma-codefield-font-size:var(--plasma-typo-body-l-font-size);--plasma-codefield-font-style:var(--plasma-typo-body-l-font-style);--plasma-codefield-font-weight:var(--plasma-typo-body-l-bold-font-weight);--plasma-codefield-letter-spacing:var(--plasma-typo-body-l-letter-spacing);--plasma-codefield-line-height:var(--plasma-typo-body-l-line-height);--plasma-codefield-caption-font-family:var(--plasma-typo-body-s-font-family);--plasma-codefield-caption-font-style:var(--plasma-typo-body-s-font-size);--plasma-codefield-caption-font-size:var(--plasma-typo-body-s-font-style);--plasma-codefield-caption-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-codefield-caption-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-codefield-caption-line-height:var(--plasma-typo-body-s-line-height);--plasma-codefield-border-width:0.063rem;--plasma-codefield-code-item-border-radius:0.875rem;--plasma-codefield-code-item-border-radius-segmented:0.375rem;--plasma-codefield-code-item-segmented-side-border-radius:0.875rem;}
|
3
|
-
.mxiurbd{--plasma-codefield-caption-gap:0.75rem;--plasma-codefield-code-item-gap:0.125rem;--plasma-codefield-separator-width:0.25rem;--plasma-codefield-item-width:2.375rem;--plasma-codefield-item-height:3rem;--plasma-codefield-font-family:var(--plasma-typo-body-m-font-family);--plasma-codefield-font-size:var(--plasma-typo-body-m-font-size);--plasma-codefield-font-style:var(--plasma-typo-body-m-font-style);--plasma-codefield-font-weight:var(--plasma-typo-body-m-bold-font-weight);--plasma-codefield-letter-spacing:var(--plasma-typo-body-m-letter-spacing);--plasma-codefield-line-height:var(--plasma-typo-body-m-line-height);--plasma-codefield-caption-font-family:var(--plasma-typo-body-xs-font-family);--plasma-codefield-caption-font-style:var(--plasma-typo-body-xs-font-size);--plasma-codefield-caption-font-size:var(--plasma-typo-body-xs-font-style);--plasma-codefield-caption-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-codefield-caption-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-codefield-caption-line-height:var(--plasma-typo-body-xs-line-height);--plasma-codefield-border-width:0.063rem;--plasma-codefield-code-item-border-radius:0.75rem;--plasma-codefield-code-item-border-radius-segmented:0.25rem;--plasma-codefield-code-item-segmented-side-border-radius:0.75rem;}
|
4
|
-
|
5
|
-
|
6
|
-
.tck0g5r{--plasma-codefield-disabled-opacity:0.4;}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
.CodeField_config_7779xg_d1bb0wws__358f1b2e{--plasma-codefield-caret-color:var(--surface-accent);--plasma-codefield-caption-color:var(--text-secondary);--plasma-codefield-caption-color-error:var(--text-negative);--plasma-codefield-code-color:var(--text-primary);--plasma-codefield-code-color-error:var(--text-negative);--plasma-codefield-border-color:var(--surface-transparent-tertiary);--plasma-codefield-border-color-hover:var(--text-secondary);--plasma-codefield-border-color-focus:var(--surface-accent);--plasma-codefield-border-error-color:var(--surface-negative);}
|
2
|
-
.CodeField_config_7779xg_lfcgrq9__358f1b2e{--plasma-codefield-caption-gap:0.875rem;--plasma-codefield-code-item-gap:0.125rem;--plasma-codefield-separator-width:0.25rem;--plasma-codefield-item-width:2.75rem;--plasma-codefield-item-height:3.5rem;--plasma-codefield-font-family:var(--plasma-typo-body-l-font-family);--plasma-codefield-font-size:var(--plasma-typo-body-l-font-size);--plasma-codefield-font-style:var(--plasma-typo-body-l-font-style);--plasma-codefield-font-weight:var(--plasma-typo-body-l-bold-font-weight);--plasma-codefield-letter-spacing:var(--plasma-typo-body-l-letter-spacing);--plasma-codefield-line-height:var(--plasma-typo-body-l-line-height);--plasma-codefield-caption-font-family:var(--plasma-typo-body-s-font-family);--plasma-codefield-caption-font-style:var(--plasma-typo-body-s-font-size);--plasma-codefield-caption-font-size:var(--plasma-typo-body-s-font-style);--plasma-codefield-caption-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-codefield-caption-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-codefield-caption-line-height:var(--plasma-typo-body-s-line-height);--plasma-codefield-border-width:0.063rem;--plasma-codefield-code-item-border-radius:0.875rem;--plasma-codefield-code-item-border-radius-segmented:0.375rem;--plasma-codefield-code-item-segmented-side-border-radius:0.875rem;}
|
3
|
-
.CodeField_config_7779xg_mxiurbd__358f1b2e{--plasma-codefield-caption-gap:0.75rem;--plasma-codefield-code-item-gap:0.125rem;--plasma-codefield-separator-width:0.25rem;--plasma-codefield-item-width:2.375rem;--plasma-codefield-item-height:3rem;--plasma-codefield-font-family:var(--plasma-typo-body-m-font-family);--plasma-codefield-font-size:var(--plasma-typo-body-m-font-size);--plasma-codefield-font-style:var(--plasma-typo-body-m-font-style);--plasma-codefield-font-weight:var(--plasma-typo-body-m-bold-font-weight);--plasma-codefield-letter-spacing:var(--plasma-typo-body-m-letter-spacing);--plasma-codefield-line-height:var(--plasma-typo-body-m-line-height);--plasma-codefield-caption-font-family:var(--plasma-typo-body-xs-font-family);--plasma-codefield-caption-font-style:var(--plasma-typo-body-xs-font-size);--plasma-codefield-caption-font-size:var(--plasma-typo-body-xs-font-style);--plasma-codefield-caption-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-codefield-caption-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-codefield-caption-line-height:var(--plasma-typo-body-xs-line-height);--plasma-codefield-border-width:0.063rem;--plasma-codefield-code-item-border-radius:0.75rem;--plasma-codefield-code-item-border-radius-segmented:0.25rem;--plasma-codefield-code-item-segmented-side-border-radius:0.75rem;}
|
4
|
-
|
5
|
-
|
6
|
-
.CodeField_config_7779xg_tck0g5r__358f1b2e{--plasma-codefield-disabled-opacity:0.4;}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { component, mergeConfig, codeFieldConfig } from '@salutejs/plasma-new-hope';
|
2
|
-
import { config } from './CodeField.config.js';
|
3
|
-
|
4
|
-
var mergedConfig = /*#__PURE__*/mergeConfig(codeFieldConfig, config);
|
5
|
-
var CodeField = /*#__PURE__*/component(mergedConfig);
|
6
|
-
|
7
|
-
export { CodeField };
|
8
|
-
//# sourceMappingURL=CodeField.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CodeField.js","sources":["../../../../src-css/components/CodeField/CodeField.ts"],"sourcesContent":["import { codeFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './CodeField.config';\n\nconst mergedConfig = mergeConfig(codeFieldConfig, config);\n\nexport const CodeField = component(mergedConfig);\n"],"names":["mergedConfig","mergeConfig","codeFieldConfig","config","CodeField","component"],"mappings":";;;AAIA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,eAAe,EAAEC,MAAM,CAAC,CAAA;IAE5CC,SAAS,gBAAGC,SAAS,CAACL,YAAY;;;;"}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
2
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
3
|
-
import { css, codeFieldTokens as tokens } from '@salutejs/plasma-new-hope/styled-components';
|
4
|
-
export var config = {
|
5
|
-
defaults: {
|
6
|
-
view: 'default',
|
7
|
-
size: 'l',
|
8
|
-
shape: 'default'
|
9
|
-
},
|
10
|
-
variations: {
|
11
|
-
view: {
|
12
|
-
"default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-accent);\n\n ", ": var(--text-secondary);\n ", ": var(--text-negative);\n\n ", ": var(--text-primary);\n ", ": var(--text-negative);\n\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--text-secondary);\n ", ": var(--surface-accent);\n ", ": var(--surface-negative);\n "])), tokens.caretColor, tokens.captionColor, tokens.captionColorError, tokens.codeColor, tokens.codeColorError, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.borderErrorColor)
|
13
|
-
},
|
14
|
-
size: {
|
15
|
-
l: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.875rem;\n ", ": 0.125rem;\n\n ", ": 0.25rem;\n\n ", ": 2.75rem;\n ", ": 3.5rem;\n\n ", ": var(--plasma-typo-body-l-font-family);\n ", ": var(--plasma-typo-body-l-font-size);\n ", ": var(--plasma-typo-body-l-font-style);\n ", ": var(--plasma-typo-body-l-bold-font-weight);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-l-line-height);\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 0.063rem;\n ", ": 0.875rem;\n ", ": 0.375rem;\n ", ": 0.875rem;\n "])), tokens.captionGap, tokens.codeItemsGap, tokens.separatorWidth, tokens.codeItemWidth, tokens.codeItemHeight, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.captionFontFamily, tokens.captionFontSize, tokens.captionFontStyle, tokens.captionFontWeight, tokens.captionLetterSpacing, tokens.captionLineHeight, tokens.borderWidth, tokens.borderRadius, tokens.borderRadiusSegmented, tokens.segmentedSideBorderRadius),
|
16
|
-
m: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.75rem;\n ", ": 0.125rem;\n\n ", ": 0.25rem;\n\n ", ": 2.375rem;\n ", ": 3rem;\n\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-bold-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": 0.063rem;\n ", ": 0.75rem;\n ", ": 0.25rem;\n ", ": 0.75rem;\n "])), tokens.captionGap, tokens.codeItemsGap, tokens.separatorWidth, tokens.codeItemWidth, tokens.codeItemHeight, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.captionFontFamily, tokens.captionFontSize, tokens.captionFontStyle, tokens.captionFontWeight, tokens.captionLetterSpacing, tokens.captionLineHeight, tokens.borderWidth, tokens.borderRadius, tokens.borderRadiusSegmented, tokens.segmentedSideBorderRadius)
|
17
|
-
},
|
18
|
-
shape: {
|
19
|
-
"default": /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral([""]))),
|
20
|
-
segmented: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
21
|
-
},
|
22
|
-
disabled: {
|
23
|
-
"true": /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), tokens.disabledOpacity)
|
24
|
-
}
|
25
|
-
}
|
26
|
-
};
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { codeFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
2
|
-
import { config } from './CodeField.config';
|
3
|
-
var mergedConfig = /*#__PURE__*/mergeConfig(codeFieldConfig, config);
|
4
|
-
export var CodeField = /*#__PURE__*/component(mergedConfig);
|