@salutejs/sdds-dfa 0.331.0-canary.2422.20906430475.0 → 0.331.0-canary.2423.20988873450.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.
@@ -1,7 +1,16 @@
1
- import { textAreaConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
1
+ import { textAreaConfig, component, mergeConfig, createConditionalComponent } from '@salutejs/plasma-new-hope/styled-components';
2
2
  import { config } from './TextArea.config';
3
+ import { config as clearConfig } from './TextArea.clear.config';
3
4
  var mergedConfig = mergeConfig(textAreaConfig, config);
4
- var TextAreaComponent = component(mergedConfig);
5
- /**
6
- * Поле ввода многострочного текста.
7
- */ export var TextArea = TextAreaComponent;
5
+ export var TextAreaDefault = component(mergedConfig);
6
+ var mergedConfigClear = mergeConfig(textAreaConfig, clearConfig);
7
+ export var TextAreaClear = component(mergedConfigClear);
8
+ export var TextArea = createConditionalComponent(TextAreaDefault, [
9
+ {
10
+ conditions: {
11
+ prop: 'appearance',
12
+ value: 'clear'
13
+ },
14
+ component: TextAreaClear
15
+ }
16
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-dfa",
3
- "version": "0.331.0-canary.2422.20906430475.0",
3
+ "version": "0.331.0-canary.2423.20988873450.0",
4
4
  "description": "Salute Design System / React UI kit for SDDS DFA web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "exports": {
@@ -27,8 +27,8 @@
27
27
  "directory": "packages/sdds-dfa"
28
28
  },
29
29
  "dependencies": {
30
- "@salutejs/plasma-new-hope": "0.345.0-canary.2422.20906430475.0",
31
- "@salutejs/sdds-themes": "0.52.0-canary.2422.20906430475.0"
30
+ "@salutejs/plasma-new-hope": "0.345.0-canary.2423.20988873450.0",
31
+ "@salutejs/sdds-themes": "0.52.0-canary.2423.20988873450.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": ">=16.13.1",
@@ -45,10 +45,10 @@
45
45
  "@babel/preset-typescript": "7.24.1",
46
46
  "@microsoft/api-extractor": "7.38.3",
47
47
  "@salutejs/plasma-colors": "0.16.0",
48
- "@salutejs/plasma-core": "1.213.0-canary.2422.20906430475.0",
49
- "@salutejs/plasma-cy-utils": "0.143.0-canary.2422.20906430475.0",
48
+ "@salutejs/plasma-core": "1.213.0-canary.2423.20988873450.0",
49
+ "@salutejs/plasma-cy-utils": "0.143.0-canary.2423.20988873450.0",
50
50
  "@salutejs/plasma-icons": "1.228.0",
51
- "@salutejs/plasma-sb-utils": "0.213.0-canary.2422.20906430475.0",
51
+ "@salutejs/plasma-sb-utils": "0.213.0-canary.2423.20988873450.0",
52
52
  "@types/node": "16.7.13",
53
53
  "@types/react": "18.0.28",
54
54
  "@types/react-dom": "18.0.11",
@@ -93,5 +93,5 @@
93
93
  "Anton Vinogradov"
94
94
  ],
95
95
  "sideEffects": false,
96
- "gitHead": "398dfccb2bc6828712de0065ba0225f367197928"
96
+ "gitHead": "aa94d7dd83b285ded4e7fecaa043c853aaaa5ad2"
97
97
  }
@@ -0,0 +1,35 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ view: string;
4
+ size: string;
5
+ labelPlacement: string;
6
+ };
7
+ variations: {
8
+ view: {
9
+ default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
10
+ positive: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
11
+ warning: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
12
+ negative: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
13
+ };
14
+ size: {
15
+ xl: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
16
+ l: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
17
+ m: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
18
+ s: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
19
+ xs: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
20
+ };
21
+ hintView: {
22
+ default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
23
+ };
24
+ hintSize: {
25
+ m: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
26
+ s: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
27
+ };
28
+ disabled: {
29
+ true: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
30
+ };
31
+ readOnly: {
32
+ true: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
33
+ };
34
+ };
35
+ };
@@ -4,24 +4,19 @@ export declare const config: {
4
4
  focused: string;
5
5
  };
6
6
  variations: {
7
- size: {
8
- xs: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
9
- s: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
10
- m: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
11
- l: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
12
- xl: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
13
- };
14
7
  view: {
15
8
  default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
16
9
  positive: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
17
- /**
18
- * @deprecated
19
- * Использовать `default`
20
- */
21
- primary: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
22
10
  warning: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
23
11
  negative: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
24
12
  };
13
+ size: {
14
+ xl: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
15
+ l: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
16
+ m: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
17
+ s: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
18
+ xs: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
19
+ };
25
20
  hintView: {
26
21
  default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
27
22
  };
@@ -29,9 +24,6 @@ export declare const config: {
29
24
  m: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
30
25
  s: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
31
26
  };
32
- clear: {
33
- true: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
34
- };
35
27
  readOnly: {
36
28
  true: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
37
29
  };