@salutejs/plasma-web 1.583.0-canary.1954.15277675821.0 → 1.583.0-canary.1954.15294244136.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.
Files changed (39) hide show
  1. package/components/CodeField/CodeField.config.d.ts +23 -0
  2. package/components/CodeField/CodeField.config.js +32 -0
  3. package/components/CodeField/CodeField.d.ts +36 -0
  4. package/components/CodeField/CodeField.js +10 -0
  5. package/components/CodeField/index.d.ts +2 -0
  6. package/components/CodeField/index.js +43 -0
  7. package/components/List/List.d.ts +4 -4
  8. package/components/List/List.js +1 -1
  9. package/css/cjs/components/CodeField/CodeField.config.js +31 -0
  10. package/css/cjs/components/CodeField/CodeField.config.js.map +1 -0
  11. package/css/cjs/components/CodeField/CodeField.config_7779xg.css +6 -0
  12. package/css/cjs/components/CodeField/CodeField.css +6 -0
  13. package/css/cjs/components/CodeField/CodeField.js +12 -0
  14. package/css/cjs/components/CodeField/CodeField.js.map +1 -0
  15. package/css/cjs/components/List/List.js +1 -1
  16. package/css/cjs/components/List/List.js.map +1 -1
  17. package/css/cjs/index.css +7 -0
  18. package/css/cjs/index.js +22 -0
  19. package/css/cjs/index.js.map +1 -1
  20. package/css/es/components/CodeField/CodeField.config.js +27 -0
  21. package/css/es/components/CodeField/CodeField.config.js.map +1 -0
  22. package/css/es/components/CodeField/CodeField.config_7779xg.css +6 -0
  23. package/css/es/components/CodeField/CodeField.css +6 -0
  24. package/css/es/components/CodeField/CodeField.js +8 -0
  25. package/css/es/components/CodeField/CodeField.js.map +1 -0
  26. package/css/es/components/List/List.js +1 -1
  27. package/css/es/components/List/List.js.map +1 -1
  28. package/css/es/index.css +7 -0
  29. package/css/es/index.js +2 -1
  30. package/css/es/index.js.map +1 -1
  31. package/css/index.d.ts +2 -0
  32. package/es/components/CodeField/CodeField.config.js +26 -0
  33. package/es/components/CodeField/CodeField.js +4 -0
  34. package/es/components/CodeField/index.js +2 -0
  35. package/es/components/List/List.js +1 -1
  36. package/es/index.js +2 -1
  37. package/index.d.ts +1 -0
  38. package/index.js +11 -0
  39. package/package.json +5 -5
@@ -0,0 +1,23 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ view: string;
4
+ size: string;
5
+ shape: string;
6
+ };
7
+ variations: {
8
+ view: {
9
+ default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
10
+ };
11
+ size: {
12
+ l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
13
+ m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
14
+ };
15
+ shape: {
16
+ default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
17
+ segmented: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
18
+ };
19
+ disabled: {
20
+ true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
21
+ };
22
+ };
23
+ };
@@ -0,0 +1,32 @@
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
+ };
@@ -0,0 +1,36 @@
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>>;
@@ -0,0 +1,10 @@
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);
@@ -0,0 +1,2 @@
1
+ export { CodeField } from './CodeField';
2
+ export { codeFieldTokens, codeFieldClasses, ONLY_DIGITS_PATTERN, ONLY_CHARS_PATTERN, ONLY_DIGITS_AND_CHARS_PATTERN, } from '@salutejs/plasma-new-hope/styled-components';
@@ -0,0 +1,43 @@
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,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  /**
3
- * Лист.
3
+ * Список.
4
4
  */
5
5
  export declare const List: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
6
6
  view: {
@@ -20,11 +20,11 @@ export declare const List: import("react").FunctionComponent<import("@salutejs/p
20
20
  disabled: {
21
21
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
22
22
  };
23
- }> & {
23
+ }> & import("react").HTMLAttributes<HTMLUListElement> & {
24
24
  view?: string | undefined;
25
25
  size?: string | undefined;
26
26
  variant?: string | undefined;
27
- disabled?: string | undefined;
27
+ disabled?: boolean | undefined;
28
28
  children?: import("react").ReactNode;
29
29
  className?: string | undefined;
30
- } & import("react").RefAttributes<HTMLDivElement>>;
30
+ } & import("react").RefAttributes<HTMLUListElement>>;
@@ -10,6 +10,6 @@ var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledCompon
10
10
  var ListComponent = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
11
11
 
12
12
  /**
13
- * Лист.
13
+ * Список.
14
14
  */
15
15
  var List = exports.List = ListComponent;
@@ -0,0 +1,31 @@
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
@@ -0,0 +1 @@
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;;;;"}
@@ -0,0 +1,6 @@
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;}
@@ -0,0 +1,6 @@
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;}
@@ -0,0 +1,12 @@
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
@@ -0,0 +1 @@
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;;;;"}
@@ -9,7 +9,7 @@ var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.listConf
9
9
  var ListComponent = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
10
10
 
11
11
  /**
12
- * Лист.
12
+ * Список.
13
13
  */
14
14
  var List = ListComponent;
15
15
 
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","sources":["../../../../src-css/components/List/List.ts"],"sourcesContent":["import { listConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './List.config';\n\nconst mergedConfig = mergeConfig(listConfig, config);\nconst ListComponent = component(mergedConfig);\n\n/**\n * Лист.\n */\nexport const List = ListComponent;\n"],"names":["mergedConfig","mergeConfig","listConfig","config","ListComponent","component","List"],"mappings":";;;;;;;AAIA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,wBAAU,EAAEC,kBAAM,CAAC,CAAA;AACpD,IAAMC,aAAa,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;;AAE7C;AACA;AACA;AACO,IAAMM,IAAI,GAAGF;;;;"}
1
+ {"version":3,"file":"List.js","sources":["../../../../src-css/components/List/List.ts"],"sourcesContent":["import { listConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './List.config';\n\nconst mergedConfig = mergeConfig(listConfig, config);\nconst ListComponent = component(mergedConfig);\n\n/**\n * Список.\n */\nexport const List = ListComponent;\n"],"names":["mergedConfig","mergeConfig","listConfig","config","ListComponent","component","List"],"mappings":";;;;;;;AAIA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,wBAAU,EAAEC,kBAAM,CAAC,CAAA;AACpD,IAAMC,aAAa,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;;AAE7C;AACA;AACA;AACO,IAAMM,IAAI,GAAGF;;;;"}
package/css/cjs/index.css CHANGED
@@ -208,6 +208,13 @@
208
208
  .ChipGroup_config_c10q1g_dp6l87u__a38e95aa{--plasma-chip-group-items-gap:0.125rem;}
209
209
  .ChipGroup_config_c10q1g_wug1gkx__a38e95aa{--plasma-chip-group-items-gap:0.5rem;}
210
210
 
211
+ .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);}
212
+ .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;}
213
+ .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;}
214
+
215
+
216
+ .CodeField_config_7779xg_tck0g5r__358f1b2e{--plasma-codefield-disabled-opacity:0.4;}
217
+
211
218
  .Combobox_config_g6rh1c_x1m2v3ds__76a3a875{--plasma-combobox-old-width:100%;--plasma-combobox-old-height:auto;--plasma-combobox-old-border-radius:0.5rem;--plasma-combobox-old-padding-top:0.125rem;--plasma-combobox-old-padding-right:0.125rem;--plasma-combobox-old-padding-bottom:0.125rem;--plasma-combobox-old-padding-left:0.125rem;--plasma-combobox-old-divider-color:var(--surface-transparent-tertiary);--plasma-combobox-old-divider-height:0.063rem;--plasma-combobox-old-divider-margin-top:0;--plasma-combobox-old-divider-margin-right:0.5rem;--plasma-combobox-old-divider-margin-bottom:0;--plasma-combobox-old-divider-margin-left:0.375rem;--plasma-combobox-old-item-width:auto;--plasma-combobox-old-item-height:1rem;--plasma-combobox-old-item-padding-top:0.5rem;--plasma-combobox-old-item-padding-right:0.5rem;--plasma-combobox-old-item-padding-bottom:0.5rem;--plasma-combobox-old-item-padding-left:0.375rem;--plasma-combobox-old-item-border-radius:0.375rem;--plasma-combobox-old-item-content-left-width:1.25rem;--plasma-combobox-old-item-font-family:var(--plasma-typo-body-xs-font-family);--plasma-combobox-old-item-font-size:var(--plasma-typo-body-xs-font-size);--plasma-combobox-old-item-font-style:var(--plasma-typo-body-xs-font-style);--plasma-combobox-old-item-letter-spacing:var(--plasma-typo-body-xs-font-weight);--plasma-combobox-old-item-line-height:var(--plasma-typo-body-xs-letter-spacing);--plasma-combobox-old-item-font-weight:var(--plasma-typo-body-xs-line-height);--plasma-combobox-old-chip-gap:0.25rem;--plasma-combobox-old-chip-border-radius:0.125rem;--plasma-combobox-old-chip-width:auto;--plasma-combobox-old-chip-height:1.25rem;--plasma-combobox-old-chip-padding:0 0.375rem 0 0.625rem;--plasma-combobox-old-chip-clear-content-margin-left:0.25rem;--plasma-combobox-old-chip-clear-content-margin-right:0rem;--plasma-combobox-old-chip-close-icon-size:0.75rem;--plasma-combobox-old-chip-font-family:var(--plasma-typo-body-xs-font-family);--plasma-combobox-old-chip-font-size:var(--plasma-typo-body-xs-font-size);--plasma-combobox-old-chip-font-style:var(--plasma-typo-body-xs-font-style);--plasma-combobox-old-chip-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-combobox-old-chip-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-combobox-old-chip-line-height:var(--plasma-typo-body-xs-line-height);--plasma-combobox-old-target-arrow-right:0.5rem;--plasma-combobox-old-target-height:2rem;--plasma-combobox-old-target-width:100%;--plasma-combobox-old-target-radius:0.5rem;--plasma-combobox-old-target-padding:0 2.5rem 0 0.75rem;--plasma-combobox-old-target-padding-has-chips:0 2.625rem 0 0.375rem;--plasma-combobox-old-target-with-input:0 2.625rem 0 0.625rem;--plasma-combobox-old-target-inner-top:0.5rem;--plasma-combobox-old-target-label-inner-top:0.375rem;--plasma-combobox-old-target-font-family:var(--plasma-typo-body-xs-font-family);--plasma-combobox-old-target-font-size:var(--plasma-typo-body-xs-font-size);--plasma-combobox-old-target-font-style:var(--plasma-typo-body-xs-font-style);--plasma-combobox-old-target-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-combobox-old-target-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-combobox-old-target-line-height:var(--plasma-typo-body-xs-line-height);--plasma-combobox-old-target-label-inner-font-family:var(--plasma-typo-body-xs-font-family);--plasma-combobox-old-target-label-inner-font-family:var(--plasma-typo-body-xs-font-size);--plasma-combobox-old-target-label-inner-font-style:var(--plasma-typo-body-xs-font-style);--plasma-combobox-old-target-label-inner-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-combobox-old-target-label-inner-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-combobox-old-target-label-inner-line-height:var(--plasma-typo-body-xs-line-height);}
212
219
  .Combobox_config_g6rh1c_snjir4d__76a3a875{--plasma-combobox-old-width:100%;--plasma-combobox-old-height:auto;--plasma-combobox-old-border-radius:0.625rem;--plasma-combobox-old-padding-top:0.125rem;--plasma-combobox-old-padding-right:0.125rem;--plasma-combobox-old-padding-bottom:0.125rem;--plasma-combobox-old-padding-left:0.125rem;--plasma-combobox-old-divider-color:var(--surface-transparent-tertiary);--plasma-combobox-old-divider-height:0.063rem;--plasma-combobox-old-divider-margin-top:0;--plasma-combobox-old-divider-margin-right:0.75rem;--plasma-combobox-old-divider-margin-bottom:0;--plasma-combobox-old-divider-margin-left:0.75rem;--plasma-combobox-old-item-width:auto;--plasma-combobox-old-item-height:1.5rem;--plasma-combobox-old-item-padding-top:0.5rem;--plasma-combobox-old-item-padding-right:0.75rem;--plasma-combobox-old-item-padding-bottom:0.5rem;--plasma-combobox-old-item-padding-left:0.75rem;--plasma-combobox-old-item-border-radius:0.5rem;--plasma-combobox-old-item-content-left-width:1.75rem;--plasma-combobox-old-item-font-family:var(--plasma-typo-body-s-font-family);--plasma-combobox-old-item-font-size:var(--plasma-typo-body-s-font-size);--plasma-combobox-old-item-font-style:var(--plasma-typo-body-s-font-style);--plasma-combobox-old-item-letter-spacing:var(--plasma-typo-body-s-font-weight);--plasma-combobox-old-item-line-height:var(--plasma-typo-body-s-letter-spacing);--plasma-combobox-old-item-font-weight:var(--plasma-typo-body-s-line-height);--plasma-combobox-old-chip-gap:0.25rem;--plasma-combobox-old-chip-border-radius:0.25rem;--plasma-combobox-old-chip-width:auto;--plasma-combobox-old-chip-height:1.75rem;--plasma-combobox-old-chip-padding:0 0.5rem 0 0.75rem;--plasma-combobox-old-chip-clear-content-margin-left:0.375rem;--plasma-combobox-old-chip-clear-content-margin-right:0rem;--plasma-combobox-old-chip-close-icon-size:0.75rem;--plasma-combobox-old-chip-font-family:var(--plasma-typo-body-s-font-family);--plasma-combobox-old-chip-font-size:var(--plasma-typo-body-s-font-size);--plasma-combobox-old-chip-font-style:var(--plasma-typo-body-s-font-style);--plasma-combobox-old-chip-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-combobox-old-chip-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-combobox-old-chip-line-height:var(--plasma-typo-body-s-line-height);--plasma-combobox-old-target-arrow-right:0.75rem;--plasma-combobox-old-target-height:2.5rem;--plasma-combobox-old-target-width:100%;--plasma-combobox-old-target-radius:0.625rem;--plasma-combobox-old-target-padding:0 3rem 0 1rem;--plasma-combobox-old-target-padding-has-chips:0 3.125rem 0 0.375rem;--plasma-combobox-old-target-with-input:0 3.125rem 0 0.625rem;--plasma-combobox-old-target-inner-top:0.5rem;--plasma-combobox-old-target-label-inner-top:0.375rem;--plasma-combobox-old-target-font-family:var(--plasma-typo-body-s-font-family);--plasma-combobox-old-target-font-size:var(--plasma-typo-body-s-font-size);--plasma-combobox-old-target-font-style:var(--plasma-typo-body-s-font-style);--plasma-combobox-old-target-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-combobox-old-target-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-combobox-old-target-line-height:var(--plasma-typo-body-s-line-height);--plasma-combobox-old-target-label-inner-font-family:var(--plasma-typo-body-xxs-font-family);--plasma-combobox-old-target-label-inner-font-family:var(--plasma-typo-body-xxs-font-size);--plasma-combobox-old-target-label-inner-font-style:var(--plasma-typo-body-xxs-font-style);--plasma-combobox-old-target-label-inner-font-weight:var(--plasma-typo-body-xxs-font-weight);--plasma-combobox-old-target-label-inner-letter-spacing:var(--plasma-typo-body-xxs-letter-spacing);--plasma-combobox-old-target-label-inner-line-height:var(--plasma-typo-body-xxs-line-height);}
213
220
  .Combobox_config_g6rh1c_m8yng6k__76a3a875{--plasma-combobox-old-width:100%;--plasma-combobox-old-height:auto;--plasma-combobox-old-border-radius:0.75rem;--plasma-combobox-old-padding-top:0.125rem;--plasma-combobox-old-padding-right:0.125rem;--plasma-combobox-old-padding-bottom:0.125rem;--plasma-combobox-old-padding-left:0.125rem;--plasma-combobox-old-divider-color:var(--surface-transparent-tertiary);--plasma-combobox-old-divider-height:0.063rem;--plasma-combobox-old-divider-margin-top:0;--plasma-combobox-old-divider-margin-right:0.875rem;--plasma-combobox-old-divider-margin-bottom:0;--plasma-combobox-old-divider-margin-left:0.875rem;--plasma-combobox-old-item-width:auto;--plasma-combobox-old-item-height:1.5rem;--plasma-combobox-old-item-padding-top:0.75rem;--plasma-combobox-old-item-padding-right:0.875rem;--plasma-combobox-old-item-padding-bottom:0.75rem;--plasma-combobox-old-item-padding-left:0.875rem;--plasma-combobox-old-item-border-radius:0.625rem;--plasma-combobox-old-item-content-left-width:1.75rem;--plasma-combobox-old-item-font-family:var(--plasma-typo-body-m-font-family);--plasma-combobox-old-item-font-size:var(--plasma-typo-body-m-font-size);--plasma-combobox-old-item-font-style:var(--plasma-typo-body-m-font-style);--plasma-combobox-old-item-letter-spacing:var(--plasma-typo-body-m-font-weight);--plasma-combobox-old-item-line-height:var(--plasma-typo-body-m-letter-spacing);--plasma-combobox-old-item-font-weight:var(--plasma-typo-body-m-line-height);--plasma-combobox-old-chip-gap:0.25rem;--plasma-combobox-old-chip-border-radius:0.375rem;--plasma-combobox-old-chip-width:auto;--plasma-combobox-old-chip-height:2.25rem;--plasma-combobox-old-chip-padding:0 0.875rem 0 0.625rem;--plasma-combobox-old-chip-clear-content-margin-left:0.5rem;--plasma-combobox-old-chip-clear-content-margin-right:0rem;--plasma-combobox-old-chip-close-icon-size:1rem;--plasma-combobox-old-chip-font-family:var(--plasma-typo-body-m-font-family);--plasma-combobox-old-chip-font-size:var(--plasma-typo-body-m-font-size);--plasma-combobox-old-chip-font-style:var(--plasma-typo-body-m-font-style);--plasma-combobox-old-chip-font-weight:var(--plasma-typo-body-m-font-weight);--plasma-combobox-old-chip-letter-spacing:var(--plasma-typo-body-m-letter-spacing);--plasma-combobox-old-chip-line-height:var(--plasma-typo-body-m-line-height);--plasma-combobox-old-target-arrow-right:0.875rem;--plasma-combobox-old-target-height:3rem;--plasma-combobox-old-target-width:100%;--plasma-combobox-old-target-radius:0.75rem;--plasma-combobox-old-target-padding:0 3.25rem 0 1.25rem;--plasma-combobox-old-target-padding-has-chips:0 3.375rem 0 0.375rem;--plasma-combobox-old-target-with-input:0 3.375rem 0 0.625rem;--plasma-combobox-old-target-inner-top:0.5rem;--plasma-combobox-old-target-label-inner-top:0.375rem;--plasma-combobox-old-target-font-family:var(--plasma-typo-body-m-font-family);--plasma-combobox-old-target-font-size:var(--plasma-typo-body-m-font-size);--plasma-combobox-old-target-font-style:var(--plasma-typo-body-m-font-style);--plasma-combobox-old-target-font-weight:var(--plasma-typo-body-m-font-weight);--plasma-combobox-old-target-letter-spacing:var(--plasma-typo-body-m-letter-spacing);--plasma-combobox-old-target-line-height:var(--plasma-typo-body-m-line-height);--plasma-combobox-old-target-label-inner-font-family:var(--plasma-typo-body-xs-font-family);--plasma-combobox-old-target-label-inner-font-family:var(--plasma-typo-body-xs-font-size);--plasma-combobox-old-target-label-inner-font-style:var(--plasma-typo-body-xs-font-style);--plasma-combobox-old-target-label-inner-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-combobox-old-target-label-inner-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-combobox-old-target-label-inner-line-height:var(--plasma-typo-body-xs-line-height);}
package/css/cjs/index.js CHANGED
@@ -18,6 +18,7 @@ var Cell = require('./components/Cell/Cell.js');
18
18
  var Checkbox = require('./components/Checkbox/Checkbox.js');
19
19
  var Chip = require('./components/Chip/Chip.js');
20
20
  var ChipGroup = require('./components/ChipGroup/ChipGroup.js');
21
+ var CodeField = require('./components/CodeField/CodeField.js');
21
22
  var Combobox = require('./components/Combobox/Legacy/Combobox.js');
22
23
  var Combobox$1 = require('./components/Combobox/Combobox.js');
23
24
  var Counter = require('./components/Counter/Counter.js');
@@ -118,6 +119,18 @@ Object.defineProperty(exports, 'ListItem', {
118
119
  enumerable: true,
119
120
  get: function () { return plasmaNewHope.ListItem; }
120
121
  });
122
+ Object.defineProperty(exports, 'ONLY_CHARS_PATTERN', {
123
+ enumerable: true,
124
+ get: function () { return plasmaNewHope.ONLY_CHARS_PATTERN; }
125
+ });
126
+ Object.defineProperty(exports, 'ONLY_DIGITS_AND_CHARS_PATTERN', {
127
+ enumerable: true,
128
+ get: function () { return plasmaNewHope.ONLY_DIGITS_AND_CHARS_PATTERN; }
129
+ });
130
+ Object.defineProperty(exports, 'ONLY_DIGITS_PATTERN', {
131
+ enumerable: true,
132
+ get: function () { return plasmaNewHope.ONLY_DIGITS_PATTERN; }
133
+ });
121
134
  Object.defineProperty(exports, 'Overlay', {
122
135
  enumerable: true,
123
136
  get: function () { return plasmaNewHope.Overlay; }
@@ -178,6 +191,14 @@ Object.defineProperty(exports, 'closeNotification', {
178
191
  enumerable: true,
179
192
  get: function () { return plasmaNewHope.closeNotification; }
180
193
  });
194
+ Object.defineProperty(exports, 'codeFieldClasses', {
195
+ enumerable: true,
196
+ get: function () { return plasmaNewHope.codeFieldClasses; }
197
+ });
198
+ Object.defineProperty(exports, 'codeFieldTokens', {
199
+ enumerable: true,
200
+ get: function () { return plasmaNewHope.codeFieldTokens; }
201
+ });
181
202
  Object.defineProperty(exports, 'counterTokens', {
182
203
  enumerable: true,
183
204
  get: function () { return plasmaNewHope.counterTokens; }
@@ -281,6 +302,7 @@ exports.Cell = Cell.Cell;
281
302
  exports.Checkbox = Checkbox.Checkbox;
282
303
  exports.Chip = Chip.Chip;
283
304
  exports.ChipGroup = ChipGroup.ChipGroup;
305
+ exports.CodeField = CodeField.CodeField;
284
306
  exports.ComboboxDivider = Combobox.ComboboxDivider;
285
307
  exports.ComboboxFooter = Combobox.ComboboxFooter;
286
308
  exports.ComboboxGroup = Combobox.ComboboxGroup;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,27 @@
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
@@ -0,0 +1 @@
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;;;;"}
@@ -0,0 +1,6 @@
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;}
@@ -0,0 +1,6 @@
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;}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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;;;;"}
@@ -5,7 +5,7 @@ var mergedConfig = /*#__PURE__*/mergeConfig(listConfig, config);
5
5
  var ListComponent = /*#__PURE__*/component(mergedConfig);
6
6
 
7
7
  /**
8
- * Лист.
8
+ * Список.
9
9
  */
10
10
  var List = ListComponent;
11
11
 
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","sources":["../../../../src-css/components/List/List.ts"],"sourcesContent":["import { listConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './List.config';\n\nconst mergedConfig = mergeConfig(listConfig, config);\nconst ListComponent = component(mergedConfig);\n\n/**\n * Лист.\n */\nexport const List = ListComponent;\n"],"names":["mergedConfig","mergeConfig","listConfig","config","ListComponent","component","List"],"mappings":";;;AAIA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,UAAU,EAAEC,MAAM,CAAC,CAAA;AACpD,IAAMC,aAAa,gBAAGC,SAAS,CAACL,YAAY,CAAC,CAAA;;AAE7C;AACA;AACA;AACO,IAAMM,IAAI,GAAGF;;;;"}
1
+ {"version":3,"file":"List.js","sources":["../../../../src-css/components/List/List.ts"],"sourcesContent":["import { listConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './List.config';\n\nconst mergedConfig = mergeConfig(listConfig, config);\nconst ListComponent = component(mergedConfig);\n\n/**\n * Список.\n */\nexport const List = ListComponent;\n"],"names":["mergedConfig","mergeConfig","listConfig","config","ListComponent","component","List"],"mappings":";;;AAIA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,UAAU,EAAEC,MAAM,CAAC,CAAA;AACpD,IAAMC,aAAa,gBAAGC,SAAS,CAACL,YAAY,CAAC,CAAA;;AAE7C;AACA;AACA;AACO,IAAMM,IAAI,GAAGF;;;;"}
package/css/es/index.css CHANGED
@@ -208,6 +208,13 @@
208
208
  .ChipGroup_config_c10q1g_dp6l87u__a38e95aa{--plasma-chip-group-items-gap:0.125rem;}
209
209
  .ChipGroup_config_c10q1g_wug1gkx__a38e95aa{--plasma-chip-group-items-gap:0.5rem;}
210
210
 
211
+ .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);}
212
+ .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;}
213
+ .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;}
214
+
215
+
216
+ .CodeField_config_7779xg_tck0g5r__358f1b2e{--plasma-codefield-disabled-opacity:0.4;}
217
+
211
218
  .Combobox_config_g6rh1c_x1m2v3ds__76a3a875{--plasma-combobox-old-width:100%;--plasma-combobox-old-height:auto;--plasma-combobox-old-border-radius:0.5rem;--plasma-combobox-old-padding-top:0.125rem;--plasma-combobox-old-padding-right:0.125rem;--plasma-combobox-old-padding-bottom:0.125rem;--plasma-combobox-old-padding-left:0.125rem;--plasma-combobox-old-divider-color:var(--surface-transparent-tertiary);--plasma-combobox-old-divider-height:0.063rem;--plasma-combobox-old-divider-margin-top:0;--plasma-combobox-old-divider-margin-right:0.5rem;--plasma-combobox-old-divider-margin-bottom:0;--plasma-combobox-old-divider-margin-left:0.375rem;--plasma-combobox-old-item-width:auto;--plasma-combobox-old-item-height:1rem;--plasma-combobox-old-item-padding-top:0.5rem;--plasma-combobox-old-item-padding-right:0.5rem;--plasma-combobox-old-item-padding-bottom:0.5rem;--plasma-combobox-old-item-padding-left:0.375rem;--plasma-combobox-old-item-border-radius:0.375rem;--plasma-combobox-old-item-content-left-width:1.25rem;--plasma-combobox-old-item-font-family:var(--plasma-typo-body-xs-font-family);--plasma-combobox-old-item-font-size:var(--plasma-typo-body-xs-font-size);--plasma-combobox-old-item-font-style:var(--plasma-typo-body-xs-font-style);--plasma-combobox-old-item-letter-spacing:var(--plasma-typo-body-xs-font-weight);--plasma-combobox-old-item-line-height:var(--plasma-typo-body-xs-letter-spacing);--plasma-combobox-old-item-font-weight:var(--plasma-typo-body-xs-line-height);--plasma-combobox-old-chip-gap:0.25rem;--plasma-combobox-old-chip-border-radius:0.125rem;--plasma-combobox-old-chip-width:auto;--plasma-combobox-old-chip-height:1.25rem;--plasma-combobox-old-chip-padding:0 0.375rem 0 0.625rem;--plasma-combobox-old-chip-clear-content-margin-left:0.25rem;--plasma-combobox-old-chip-clear-content-margin-right:0rem;--plasma-combobox-old-chip-close-icon-size:0.75rem;--plasma-combobox-old-chip-font-family:var(--plasma-typo-body-xs-font-family);--plasma-combobox-old-chip-font-size:var(--plasma-typo-body-xs-font-size);--plasma-combobox-old-chip-font-style:var(--plasma-typo-body-xs-font-style);--plasma-combobox-old-chip-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-combobox-old-chip-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-combobox-old-chip-line-height:var(--plasma-typo-body-xs-line-height);--plasma-combobox-old-target-arrow-right:0.5rem;--plasma-combobox-old-target-height:2rem;--plasma-combobox-old-target-width:100%;--plasma-combobox-old-target-radius:0.5rem;--plasma-combobox-old-target-padding:0 2.5rem 0 0.75rem;--plasma-combobox-old-target-padding-has-chips:0 2.625rem 0 0.375rem;--plasma-combobox-old-target-with-input:0 2.625rem 0 0.625rem;--plasma-combobox-old-target-inner-top:0.5rem;--plasma-combobox-old-target-label-inner-top:0.375rem;--plasma-combobox-old-target-font-family:var(--plasma-typo-body-xs-font-family);--plasma-combobox-old-target-font-size:var(--plasma-typo-body-xs-font-size);--plasma-combobox-old-target-font-style:var(--plasma-typo-body-xs-font-style);--plasma-combobox-old-target-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-combobox-old-target-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-combobox-old-target-line-height:var(--plasma-typo-body-xs-line-height);--plasma-combobox-old-target-label-inner-font-family:var(--plasma-typo-body-xs-font-family);--plasma-combobox-old-target-label-inner-font-family:var(--plasma-typo-body-xs-font-size);--plasma-combobox-old-target-label-inner-font-style:var(--plasma-typo-body-xs-font-style);--plasma-combobox-old-target-label-inner-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-combobox-old-target-label-inner-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-combobox-old-target-label-inner-line-height:var(--plasma-typo-body-xs-line-height);}
212
219
  .Combobox_config_g6rh1c_snjir4d__76a3a875{--plasma-combobox-old-width:100%;--plasma-combobox-old-height:auto;--plasma-combobox-old-border-radius:0.625rem;--plasma-combobox-old-padding-top:0.125rem;--plasma-combobox-old-padding-right:0.125rem;--plasma-combobox-old-padding-bottom:0.125rem;--plasma-combobox-old-padding-left:0.125rem;--plasma-combobox-old-divider-color:var(--surface-transparent-tertiary);--plasma-combobox-old-divider-height:0.063rem;--plasma-combobox-old-divider-margin-top:0;--plasma-combobox-old-divider-margin-right:0.75rem;--plasma-combobox-old-divider-margin-bottom:0;--plasma-combobox-old-divider-margin-left:0.75rem;--plasma-combobox-old-item-width:auto;--plasma-combobox-old-item-height:1.5rem;--plasma-combobox-old-item-padding-top:0.5rem;--plasma-combobox-old-item-padding-right:0.75rem;--plasma-combobox-old-item-padding-bottom:0.5rem;--plasma-combobox-old-item-padding-left:0.75rem;--plasma-combobox-old-item-border-radius:0.5rem;--plasma-combobox-old-item-content-left-width:1.75rem;--plasma-combobox-old-item-font-family:var(--plasma-typo-body-s-font-family);--plasma-combobox-old-item-font-size:var(--plasma-typo-body-s-font-size);--plasma-combobox-old-item-font-style:var(--plasma-typo-body-s-font-style);--plasma-combobox-old-item-letter-spacing:var(--plasma-typo-body-s-font-weight);--plasma-combobox-old-item-line-height:var(--plasma-typo-body-s-letter-spacing);--plasma-combobox-old-item-font-weight:var(--plasma-typo-body-s-line-height);--plasma-combobox-old-chip-gap:0.25rem;--plasma-combobox-old-chip-border-radius:0.25rem;--plasma-combobox-old-chip-width:auto;--plasma-combobox-old-chip-height:1.75rem;--plasma-combobox-old-chip-padding:0 0.5rem 0 0.75rem;--plasma-combobox-old-chip-clear-content-margin-left:0.375rem;--plasma-combobox-old-chip-clear-content-margin-right:0rem;--plasma-combobox-old-chip-close-icon-size:0.75rem;--plasma-combobox-old-chip-font-family:var(--plasma-typo-body-s-font-family);--plasma-combobox-old-chip-font-size:var(--plasma-typo-body-s-font-size);--plasma-combobox-old-chip-font-style:var(--plasma-typo-body-s-font-style);--plasma-combobox-old-chip-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-combobox-old-chip-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-combobox-old-chip-line-height:var(--plasma-typo-body-s-line-height);--plasma-combobox-old-target-arrow-right:0.75rem;--plasma-combobox-old-target-height:2.5rem;--plasma-combobox-old-target-width:100%;--plasma-combobox-old-target-radius:0.625rem;--plasma-combobox-old-target-padding:0 3rem 0 1rem;--plasma-combobox-old-target-padding-has-chips:0 3.125rem 0 0.375rem;--plasma-combobox-old-target-with-input:0 3.125rem 0 0.625rem;--plasma-combobox-old-target-inner-top:0.5rem;--plasma-combobox-old-target-label-inner-top:0.375rem;--plasma-combobox-old-target-font-family:var(--plasma-typo-body-s-font-family);--plasma-combobox-old-target-font-size:var(--plasma-typo-body-s-font-size);--plasma-combobox-old-target-font-style:var(--plasma-typo-body-s-font-style);--plasma-combobox-old-target-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-combobox-old-target-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-combobox-old-target-line-height:var(--plasma-typo-body-s-line-height);--plasma-combobox-old-target-label-inner-font-family:var(--plasma-typo-body-xxs-font-family);--plasma-combobox-old-target-label-inner-font-family:var(--plasma-typo-body-xxs-font-size);--plasma-combobox-old-target-label-inner-font-style:var(--plasma-typo-body-xxs-font-style);--plasma-combobox-old-target-label-inner-font-weight:var(--plasma-typo-body-xxs-font-weight);--plasma-combobox-old-target-label-inner-letter-spacing:var(--plasma-typo-body-xxs-letter-spacing);--plasma-combobox-old-target-label-inner-line-height:var(--plasma-typo-body-xxs-line-height);}
213
220
  .Combobox_config_g6rh1c_m8yng6k__76a3a875{--plasma-combobox-old-width:100%;--plasma-combobox-old-height:auto;--plasma-combobox-old-border-radius:0.75rem;--plasma-combobox-old-padding-top:0.125rem;--plasma-combobox-old-padding-right:0.125rem;--plasma-combobox-old-padding-bottom:0.125rem;--plasma-combobox-old-padding-left:0.125rem;--plasma-combobox-old-divider-color:var(--surface-transparent-tertiary);--plasma-combobox-old-divider-height:0.063rem;--plasma-combobox-old-divider-margin-top:0;--plasma-combobox-old-divider-margin-right:0.875rem;--plasma-combobox-old-divider-margin-bottom:0;--plasma-combobox-old-divider-margin-left:0.875rem;--plasma-combobox-old-item-width:auto;--plasma-combobox-old-item-height:1.5rem;--plasma-combobox-old-item-padding-top:0.75rem;--plasma-combobox-old-item-padding-right:0.875rem;--plasma-combobox-old-item-padding-bottom:0.75rem;--plasma-combobox-old-item-padding-left:0.875rem;--plasma-combobox-old-item-border-radius:0.625rem;--plasma-combobox-old-item-content-left-width:1.75rem;--plasma-combobox-old-item-font-family:var(--plasma-typo-body-m-font-family);--plasma-combobox-old-item-font-size:var(--plasma-typo-body-m-font-size);--plasma-combobox-old-item-font-style:var(--plasma-typo-body-m-font-style);--plasma-combobox-old-item-letter-spacing:var(--plasma-typo-body-m-font-weight);--plasma-combobox-old-item-line-height:var(--plasma-typo-body-m-letter-spacing);--plasma-combobox-old-item-font-weight:var(--plasma-typo-body-m-line-height);--plasma-combobox-old-chip-gap:0.25rem;--plasma-combobox-old-chip-border-radius:0.375rem;--plasma-combobox-old-chip-width:auto;--plasma-combobox-old-chip-height:2.25rem;--plasma-combobox-old-chip-padding:0 0.875rem 0 0.625rem;--plasma-combobox-old-chip-clear-content-margin-left:0.5rem;--plasma-combobox-old-chip-clear-content-margin-right:0rem;--plasma-combobox-old-chip-close-icon-size:1rem;--plasma-combobox-old-chip-font-family:var(--plasma-typo-body-m-font-family);--plasma-combobox-old-chip-font-size:var(--plasma-typo-body-m-font-size);--plasma-combobox-old-chip-font-style:var(--plasma-typo-body-m-font-style);--plasma-combobox-old-chip-font-weight:var(--plasma-typo-body-m-font-weight);--plasma-combobox-old-chip-letter-spacing:var(--plasma-typo-body-m-letter-spacing);--plasma-combobox-old-chip-line-height:var(--plasma-typo-body-m-line-height);--plasma-combobox-old-target-arrow-right:0.875rem;--plasma-combobox-old-target-height:3rem;--plasma-combobox-old-target-width:100%;--plasma-combobox-old-target-radius:0.75rem;--plasma-combobox-old-target-padding:0 3.25rem 0 1.25rem;--plasma-combobox-old-target-padding-has-chips:0 3.375rem 0 0.375rem;--plasma-combobox-old-target-with-input:0 3.375rem 0 0.625rem;--plasma-combobox-old-target-inner-top:0.5rem;--plasma-combobox-old-target-label-inner-top:0.375rem;--plasma-combobox-old-target-font-family:var(--plasma-typo-body-m-font-family);--plasma-combobox-old-target-font-size:var(--plasma-typo-body-m-font-size);--plasma-combobox-old-target-font-style:var(--plasma-typo-body-m-font-style);--plasma-combobox-old-target-font-weight:var(--plasma-typo-body-m-font-weight);--plasma-combobox-old-target-letter-spacing:var(--plasma-typo-body-m-letter-spacing);--plasma-combobox-old-target-line-height:var(--plasma-typo-body-m-line-height);--plasma-combobox-old-target-label-inner-font-family:var(--plasma-typo-body-xs-font-family);--plasma-combobox-old-target-label-inner-font-family:var(--plasma-typo-body-xs-font-size);--plasma-combobox-old-target-label-inner-font-style:var(--plasma-typo-body-xs-font-style);--plasma-combobox-old-target-label-inner-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-combobox-old-target-label-inner-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-combobox-old-target-label-inner-line-height:var(--plasma-typo-body-xs-line-height);}
package/css/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { AccordionItem, ButtonBase, CarouselGridWrapper, CarouselItem, CellTextbox, CellTextboxLabel, CellTextboxSubtitle, CellTextboxTitle, Col, ListItem, Overlay, PaginationDot, PaginationDots, PopupProvider as PopupBaseProvider, Portal, RadioGroup, RectSkeleton, Row, SSRProvider, SegmentProvider, SmartPaginationDots, TabItemRefs, TabsContext, addNotification, closeNotification, counterTokens, datePickerClasses, datePickerTokens, dividerTokens, dropzoneClasses, dropzoneTokens, modalClasses as modalBaseClasses, noteClasses, noteTokens, numberInputClasses, numberInputTokens, popupClasses as popupBaseClasses, priceClasses, rangeTokens, ratingClasses, ratingTokens, sheetClasses, toolbarTokens, usePopupContext as usePopupBaseContext, useSegment, useToast } from '@salutejs/plasma-new-hope';
1
+ export { AccordionItem, ButtonBase, CarouselGridWrapper, CarouselItem, CellTextbox, CellTextboxLabel, CellTextboxSubtitle, CellTextboxTitle, Col, ListItem, ONLY_CHARS_PATTERN, ONLY_DIGITS_AND_CHARS_PATTERN, ONLY_DIGITS_PATTERN, Overlay, PaginationDot, PaginationDots, PopupProvider as PopupBaseProvider, Portal, RadioGroup, RectSkeleton, Row, SSRProvider, SegmentProvider, SmartPaginationDots, TabItemRefs, TabsContext, addNotification, closeNotification, codeFieldClasses, codeFieldTokens, counterTokens, datePickerClasses, datePickerTokens, dividerTokens, dropzoneClasses, dropzoneTokens, modalClasses as modalBaseClasses, noteClasses, noteTokens, numberInputClasses, numberInputTokens, popupClasses as popupBaseClasses, priceClasses, rangeTokens, ratingClasses, ratingTokens, sheetClasses, toolbarTokens, usePopupContext as usePopupBaseContext, useSegment, useToast } from '@salutejs/plasma-new-hope';
2
2
  export { Accordion } from './components/Accordion/Accordion.js';
3
3
  export { Attach } from './components/Attach/Attach.js';
4
4
  export { Autocomplete } from './components/Autocomplete/Autocomplete.js';
@@ -14,6 +14,7 @@ export { Cell } from './components/Cell/Cell.js';
14
14
  export { Checkbox } from './components/Checkbox/Checkbox.js';
15
15
  export { Chip } from './components/Chip/Chip.js';
16
16
  export { ChipGroup } from './components/ChipGroup/ChipGroup.js';
17
+ export { CodeField } from './components/CodeField/CodeField.js';
17
18
  export { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './components/Combobox/Legacy/Combobox.js';
18
19
  export { Combobox } from './components/Combobox/Combobox.js';
19
20
  export { Counter } from './components/Counter/Counter.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/css/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from '../components/Cell';
14
14
  export * from '../components/Checkbox';
15
15
  export * from '../components/Chip';
16
16
  export * from '../components/ChipGroup';
17
+ export * from '../components/CodeField';
17
18
  export * from '../components/Combobox';
18
19
  export * from '../components/Counter';
19
20
  export * from '../components/DatePicker';
@@ -84,6 +85,7 @@ export * from '../components/Cell';
84
85
  export * from '../components/Checkbox';
85
86
  export * from '../components/Chip';
86
87
  export * from '../components/ChipGroup';
88
+ export * from '../components/CodeField';
87
89
  export * from '../components/Combobox';
88
90
  export * from '../components/Counter';
89
91
  export * from '../components/DatePicker';
@@ -0,0 +1,26 @@
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
+ };
@@ -0,0 +1,4 @@
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);
@@ -0,0 +1,2 @@
1
+ export { CodeField } from './CodeField';
2
+ export { codeFieldTokens, codeFieldClasses, ONLY_DIGITS_PATTERN, ONLY_CHARS_PATTERN, ONLY_DIGITS_AND_CHARS_PATTERN } from '@salutejs/plasma-new-hope/styled-components';
@@ -4,6 +4,6 @@ var mergedConfig = /*#__PURE__*/mergeConfig(listConfig, config);
4
4
  var ListComponent = /*#__PURE__*/component(mergedConfig);
5
5
 
6
6
  /**
7
- * Лист.
7
+ * Список.
8
8
  */
9
9
  export var List = ListComponent;
package/es/index.js CHANGED
@@ -80,4 +80,5 @@ export * from './components/Tree';
80
80
  export * from './components/Note';
81
81
  export * from './components/LinkButton';
82
82
  export * from './components/NumberFormat';
83
- export * from './components/Table';
83
+ export * from './components/Table';
84
+ export * from './components/CodeField';
package/index.d.ts CHANGED
@@ -81,3 +81,4 @@ export * from './components/Note';
81
81
  export * from './components/LinkButton';
82
82
  export * from './components/NumberFormat';
83
83
  export * from './components/Table';
84
+ export * from './components/CodeField';
package/index.js CHANGED
@@ -915,4 +915,15 @@ 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
+ });
918
929
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-web",
3
- "version": "1.583.0-canary.1954.15277675821.0",
3
+ "version": "1.583.0-canary.1954.15294244136.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",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@salutejs/plasma-core": "1.197.0-dev.0",
23
- "@salutejs/plasma-hope": "1.342.0-canary.1954.15277675821.0",
24
- "@salutejs/plasma-new-hope": "0.325.0-canary.1954.15277675821.0",
23
+ "@salutejs/plasma-hope": "1.342.0-canary.1954.15294244136.0",
24
+ "@salutejs/plasma-new-hope": "0.325.0-canary.1954.15294244136.0",
25
25
  "@salutejs/plasma-themes": "0.33.0",
26
26
  "@salutejs/plasma-tokens-b2b": "1.49.0-dev.0",
27
27
  "@salutejs/plasma-tokens-b2c": "0.60.0-dev.0",
@@ -50,7 +50,7 @@
50
50
  "@rollup/plugin-node-resolve": "15.2.3",
51
51
  "@salutejs/plasma-colors": "0.15.0",
52
52
  "@salutejs/plasma-cy-utils": "0.128.0-dev.0",
53
- "@salutejs/plasma-icons": "1.218.0-canary.1954.15277675821.0",
53
+ "@salutejs/plasma-icons": "1.218.0-canary.1954.15294244136.0",
54
54
  "@salutejs/plasma-sb-utils": "0.198.0-dev.0",
55
55
  "@storybook/addon-docs": "7.6.17",
56
56
  "@storybook/addon-essentials": "7.6.17",
@@ -111,5 +111,5 @@
111
111
  "Fanil Zubairov"
112
112
  ],
113
113
  "sideEffects": false,
114
- "gitHead": "34a9ed9bc2b556a76a4b081fa1c322b5c4913c96"
114
+ "gitHead": "939da0b162ed6810bf56cd62ef9643d455408966"
115
115
  }