@salutejs/sdds-os 0.18.0-next-platform-ai.0 → 0.18.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.
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var css = require('@salutejs/plasma-new-hope/css');
6
+ var plasmaNewHope = require('@salutejs/plasma-new-hope');
6
7
  var Button_config = require('./Button.config.js');
7
8
 
8
9
  var mergedConfig = /*#__PURE__*/css.mergeConfig(css.buttonConfig, Button_config.config);
@@ -10,7 +11,7 @@ var ButtonComponent = /*#__PURE__*/css.component(mergedConfig);
10
11
  /**
11
12
  * Кнопка.
12
13
  */
13
- var Button = ButtonComponent;
14
+ var Button = /*#__PURE__*/plasmaNewHope.makePolymorphic(ButtonComponent, 'button');
14
15
 
15
16
  exports.Button = Button;
16
17
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../../../../src-css/components/Button/Button.tsx"],"sourcesContent":["import { buttonConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/css';\n\nimport { config } from './Button.config';\n\nconst mergedConfig = mergeConfig(buttonConfig, config);\nconst ButtonComponent = component(mergedConfig);\n\nexport type ButtonProps = typeof ButtonComponent;\n\n/**\n * Кнопка.\n */\nexport const Button = ButtonComponent;\n"],"names":["mergedConfig","mergeConfig","buttonConfig","config","ButtonComponent","component","Button"],"mappings":";;;;;;;AAIA,IAAMA,YAAY,gBAAGC,eAAW,CAACC,gBAAY,EAAEC,oBAAM,CAAC;AACtD,IAAMC,eAAe,gBAAGC,aAAS,CAACL,YAAY,CAAC;AAI/C;AACA;AACA;AACO,IAAMM,MAAM,GAAGF;;;;"}
1
+ {"version":3,"file":"Button.js","sources":["../../../../../src-css/components/Button/Button.tsx"],"sourcesContent":["import { buttonConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/css';\nimport { makePolymorphic } from '@salutejs/plasma-new-hope';\n\nimport { config } from './Button.config';\n\nconst mergedConfig = mergeConfig(buttonConfig, config);\nconst ButtonComponent = component(mergedConfig);\n\nexport type ButtonProps = typeof ButtonComponent;\n\n/**\n * Кнопка.\n */\nexport const Button = makePolymorphic(ButtonComponent, 'button');\n"],"names":["mergedConfig","mergeConfig","buttonConfig","config","ButtonComponent","component","Button","makePolymorphic"],"mappings":";;;;;;;;AAKA,IAAMA,YAAY,gBAAGC,eAAW,CAACC,gBAAY,EAAEC,oBAAM,CAAC;AACtD,IAAMC,eAAe,gBAAGC,aAAS,CAACL,YAAY,CAAC;AAI/C;AACA;AACA;AACO,IAAMM,MAAM,gBAAGC,6BAAe,CAACH,eAAe,EAAE,QAAQ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","sources":["../../../../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope/css';\nimport type {\n SelectProps as SelectPropsNewHope,\n ItemOptionSelect,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\nexport type SelectProps<K extends ItemOptionSelect> = DistributiveOmit<\n SelectPropsNewHope<K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <K extends ItemOptionSelect>(props: SelectProps<K>, ref: ForwardedRef<HTMLButtonElement>) => {\n return <SelectNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Select = fixedForwardRef(SelectComponent);\n\nexport { Select };\n"],"names":["mergedConfig","mergeConfig","selectConfig","config","SelectNewHope","component","SelectComponent","props","ref","React","createElement","_extends","Select","fixedForwardRef"],"mappings":";;;;;;;;;;;;;AAWA,IAAMA,YAAY,gBAAGC,eAAW,CAACC,gBAAY,EAAEC,oBAAM,CAAC;AACtD,IAAMC,aAAa,gBAAGC,aAAS,CAACL,YAAY,CAAC;AAQ7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CAAgCC,KAAqB,EAAEC,GAAoC,EAAK;AACjH,EAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA;GAAI,EAAMD,KAAK,CAAW,CAAC;AAC1D,CAAC;AAED,IAAMK,MAAM,gBAAGC,mBAAe,CAACP,eAAe;;;;"}
1
+ {"version":3,"file":"Select.js","sources":["../../../../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope/css';\nimport type {\n SelectProps as SelectPropsNewHope,\n SelectItemOption,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\nexport type SelectProps<K extends SelectItemOption> = DistributiveOmit<\n SelectPropsNewHope<K>,\n 'size' | 'view' | 'chipView' | 'hintView' | 'hintSize' | 'labelPlacement'\n> &\n DistributivePick<\n ComponentProps<typeof SelectNewHope>,\n 'size' | 'view' | 'chipView' | 'hintView' | 'hintSize' | 'labelPlacement'\n >;\n\nconst SelectComponent = <K extends SelectItemOption>(props: SelectProps<K>, ref: ForwardedRef<HTMLButtonElement>) => {\n return <SelectNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Select = fixedForwardRef(SelectComponent);\n\nexport { Select };\n"],"names":["mergedConfig","mergeConfig","selectConfig","config","SelectNewHope","component","SelectComponent","props","ref","React","createElement","_extends","Select","fixedForwardRef"],"mappings":";;;;;;;;;;;;;AAWA,IAAMA,YAAY,gBAAGC,eAAW,CAACC,gBAAY,EAAEC,oBAAM,CAAC;AACtD,IAAMC,aAAa,gBAAGC,aAAS,CAACL,YAAY,CAAC;AAW7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CAAgCC,KAAqB,EAAEC,GAAoC,EAAK;AACjH,EAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA;GAAI,EAAMD,KAAK,CAAW,CAAC;AAC1D,CAAC;AAED,IAAMK,MAAM,gBAAGC,mBAAe,CAACP,eAAe;;;;"}
@@ -10,13 +10,10 @@ var mergedConfig = /*#__PURE__*/css.mergeConfig(css.textAreaConfig, TextArea_con
10
10
  var TextAreaDefault = /*#__PURE__*/css.component(mergedConfig);
11
11
  var mergedConfigClear = /*#__PURE__*/css.mergeConfig(css.textAreaConfig, TextArea_clear_config.config);
12
12
  var TextAreaClear = /*#__PURE__*/css.component(mergedConfigClear);
13
- var TextArea = /*#__PURE__*/css.createConditionalComponent(TextAreaDefault, [{
14
- conditions: {
15
- prop: 'appearance',
16
- value: 'clear'
17
- },
18
- component: TextAreaClear
19
- }]);
13
+ var TextArea = /*#__PURE__*/css.createConditionalComponent({
14
+ "default": TextAreaDefault,
15
+ clear: TextAreaClear
16
+ });
20
17
 
21
18
  exports.TextArea = TextArea;
22
19
  exports.TextAreaClear = TextAreaClear;
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.js","sources":["../../../../../src-css/components/TextArea/TextArea.tsx"],"sourcesContent":["import {\n textAreaConfig,\n component,\n mergeConfig,\n createConditionalComponent,\n} from '@salutejs/plasma-new-hope/css';\n\nimport { config } from './TextArea.config';\nimport { config as clearConfig } from './TextArea.clear.config';\n\nconst mergedConfig = mergeConfig(textAreaConfig, config);\nexport const TextAreaDefault = component(mergedConfig);\n\nconst mergedConfigClear = mergeConfig(textAreaConfig, clearConfig);\nexport const TextAreaClear = component(mergedConfigClear);\n\nexport const TextArea = createConditionalComponent(TextAreaDefault, [\n {\n conditions: { prop: 'appearance', value: 'clear' },\n component: TextAreaClear,\n },\n]);\n"],"names":["mergedConfig","mergeConfig","textAreaConfig","config","TextAreaDefault","component","mergedConfigClear","clearConfig","TextAreaClear","TextArea","createConditionalComponent","conditions","prop","value"],"mappings":";;;;;;;;AAUA,IAAMA,YAAY,gBAAGC,eAAW,CAACC,kBAAc,EAAEC,sBAAM,CAAC;IAC3CC,eAAe,gBAAGC,aAAS,CAACL,YAAY;AAErD,IAAMM,iBAAiB,gBAAGL,eAAW,CAACC,kBAAc,EAAEK,4BAAW,CAAC;IACrDC,aAAa,gBAAGH,aAAS,CAACC,iBAAiB;IAE3CG,QAAQ,gBAAGC,8BAA0B,CAACN,eAAe,EAAE,CAChE;AACIO,EAAAA,UAAU,EAAE;AAAEC,IAAAA,IAAI,EAAE,YAAY;AAAEC,IAAAA,KAAK,EAAE;GAAS;AAClDR,EAAAA,SAAS,EAAEG;AACf,CAAC,CACJ;;;;;;"}
1
+ {"version":3,"file":"TextArea.js","sources":["../../../../../src-css/components/TextArea/TextArea.tsx"],"sourcesContent":["import {\n textAreaConfig,\n component,\n mergeConfig,\n createConditionalComponent,\n} from '@salutejs/plasma-new-hope/css';\n\nimport { config } from './TextArea.config';\nimport { config as clearConfig } from './TextArea.clear.config';\n\nconst mergedConfig = mergeConfig(textAreaConfig, config);\nexport const TextAreaDefault = component(mergedConfig);\n\nconst mergedConfigClear = mergeConfig(textAreaConfig, clearConfig);\nexport const TextAreaClear = component(mergedConfigClear);\n\nexport const TextArea = createConditionalComponent({\n default: TextAreaDefault,\n clear: TextAreaClear,\n});\n"],"names":["mergedConfig","mergeConfig","textAreaConfig","config","TextAreaDefault","component","mergedConfigClear","clearConfig","TextAreaClear","TextArea","createConditionalComponent","clear"],"mappings":";;;;;;;;AAUA,IAAMA,YAAY,gBAAGC,eAAW,CAACC,kBAAc,EAAEC,sBAAM,CAAC;IAC3CC,eAAe,gBAAGC,aAAS,CAACL,YAAY;AAErD,IAAMM,iBAAiB,gBAAGL,eAAW,CAACC,kBAAc,EAAEK,4BAAW,CAAC;IACrDC,aAAa,gBAAGH,aAAS,CAACC,iBAAiB;AAEjD,IAAMG,QAAQ,gBAAGC,8BAA0B,CAAC;AAC/C,EAAA,SAAA,EAASN,eAAe;AACxBO,EAAAA,KAAK,EAAEH;AACX,CAAC;;;;;;"}
@@ -1,4 +1,5 @@
1
1
  import { component, mergeConfig, buttonConfig } from '@salutejs/plasma-new-hope/css';
2
+ import { makePolymorphic } from '@salutejs/plasma-new-hope';
2
3
  import { config } from './Button.config.js';
3
4
 
4
5
  var mergedConfig = /*#__PURE__*/mergeConfig(buttonConfig, config);
@@ -6,7 +7,7 @@ var ButtonComponent = /*#__PURE__*/component(mergedConfig);
6
7
  /**
7
8
  * Кнопка.
8
9
  */
9
- var Button = ButtonComponent;
10
+ var Button = /*#__PURE__*/makePolymorphic(ButtonComponent, 'button');
10
11
 
11
12
  export { Button };
12
13
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../../../../src-css/components/Button/Button.tsx"],"sourcesContent":["import { buttonConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/css';\n\nimport { config } from './Button.config';\n\nconst mergedConfig = mergeConfig(buttonConfig, config);\nconst ButtonComponent = component(mergedConfig);\n\nexport type ButtonProps = typeof ButtonComponent;\n\n/**\n * Кнопка.\n */\nexport const Button = ButtonComponent;\n"],"names":["mergedConfig","mergeConfig","buttonConfig","config","ButtonComponent","component","Button"],"mappings":";;;AAIA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,YAAY,EAAEC,MAAM,CAAC;AACtD,IAAMC,eAAe,gBAAGC,SAAS,CAACL,YAAY,CAAC;AAI/C;AACA;AACA;AACO,IAAMM,MAAM,GAAGF;;;;"}
1
+ {"version":3,"file":"Button.js","sources":["../../../../../src-css/components/Button/Button.tsx"],"sourcesContent":["import { buttonConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/css';\nimport { makePolymorphic } from '@salutejs/plasma-new-hope';\n\nimport { config } from './Button.config';\n\nconst mergedConfig = mergeConfig(buttonConfig, config);\nconst ButtonComponent = component(mergedConfig);\n\nexport type ButtonProps = typeof ButtonComponent;\n\n/**\n * Кнопка.\n */\nexport const Button = makePolymorphic(ButtonComponent, 'button');\n"],"names":["mergedConfig","mergeConfig","buttonConfig","config","ButtonComponent","component","Button","makePolymorphic"],"mappings":";;;;AAKA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,YAAY,EAAEC,MAAM,CAAC;AACtD,IAAMC,eAAe,gBAAGC,SAAS,CAACL,YAAY,CAAC;AAI/C;AACA;AACA;AACO,IAAMM,MAAM,gBAAGC,eAAe,CAACH,eAAe,EAAE,QAAQ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","sources":["../../../../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope/css';\nimport type {\n SelectProps as SelectPropsNewHope,\n ItemOptionSelect,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\nexport type SelectProps<K extends ItemOptionSelect> = DistributiveOmit<\n SelectPropsNewHope<K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <K extends ItemOptionSelect>(props: SelectProps<K>, ref: ForwardedRef<HTMLButtonElement>) => {\n return <SelectNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Select = fixedForwardRef(SelectComponent);\n\nexport { Select };\n"],"names":["mergedConfig","mergeConfig","selectConfig","config","SelectNewHope","component","SelectComponent","props","ref","React","createElement","_extends","Select","fixedForwardRef"],"mappings":";;;;;AAWA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,YAAY,EAAEC,MAAM,CAAC;AACtD,IAAMC,aAAa,gBAAGC,SAAS,CAACL,YAAY,CAAC;AAQ7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CAAgCC,KAAqB,EAAEC,GAAoC,EAAK;AACjH,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,QAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA;GAAI,EAAMD,KAAK,CAAW,CAAC;AAC1D,CAAC;AAED,IAAMK,MAAM,gBAAGC,eAAe,CAACP,eAAe;;;;"}
1
+ {"version":3,"file":"Select.js","sources":["../../../../../src-css/components/Select/Select.tsx"],"sourcesContent":["import { selectConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope/css';\nimport type {\n SelectProps as SelectPropsNewHope,\n SelectItemOption,\n DistributivePick,\n DistributiveOmit,\n} from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\nexport type SelectProps<K extends SelectItemOption> = DistributiveOmit<\n SelectPropsNewHope<K>,\n 'size' | 'view' | 'chipView' | 'hintView' | 'hintSize' | 'labelPlacement'\n> &\n DistributivePick<\n ComponentProps<typeof SelectNewHope>,\n 'size' | 'view' | 'chipView' | 'hintView' | 'hintSize' | 'labelPlacement'\n >;\n\nconst SelectComponent = <K extends SelectItemOption>(props: SelectProps<K>, ref: ForwardedRef<HTMLButtonElement>) => {\n return <SelectNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Select = fixedForwardRef(SelectComponent);\n\nexport { Select };\n"],"names":["mergedConfig","mergeConfig","selectConfig","config","SelectNewHope","component","SelectComponent","props","ref","React","createElement","_extends","Select","fixedForwardRef"],"mappings":";;;;;AAWA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,YAAY,EAAEC,MAAM,CAAC;AACtD,IAAMC,aAAa,gBAAGC,SAAS,CAACL,YAAY,CAAC;AAW7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CAAgCC,KAAqB,EAAEC,GAAoC,EAAK;AACjH,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,QAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA;GAAI,EAAMD,KAAK,CAAW,CAAC;AAC1D,CAAC;AAED,IAAMK,MAAM,gBAAGC,eAAe,CAACP,eAAe;;;;"}
@@ -1,18 +1,15 @@
1
1
  import { createConditionalComponent, component, mergeConfig, textAreaConfig } from '@salutejs/plasma-new-hope/css';
2
- import { config } from './TextArea.config.js';
3
- import { config as config$1 } from './TextArea.clear.config.js';
2
+ import { config as config$1 } from './TextArea.config.js';
3
+ import { config } from './TextArea.clear.config.js';
4
4
 
5
- var mergedConfig = /*#__PURE__*/mergeConfig(textAreaConfig, config);
5
+ var mergedConfig = /*#__PURE__*/mergeConfig(textAreaConfig, config$1);
6
6
  var TextAreaDefault = /*#__PURE__*/component(mergedConfig);
7
- var mergedConfigClear = /*#__PURE__*/mergeConfig(textAreaConfig, config$1);
7
+ var mergedConfigClear = /*#__PURE__*/mergeConfig(textAreaConfig, config);
8
8
  var TextAreaClear = /*#__PURE__*/component(mergedConfigClear);
9
- var TextArea = /*#__PURE__*/createConditionalComponent(TextAreaDefault, [{
10
- conditions: {
11
- prop: 'appearance',
12
- value: 'clear'
13
- },
14
- component: TextAreaClear
15
- }]);
9
+ var TextArea = /*#__PURE__*/createConditionalComponent({
10
+ "default": TextAreaDefault,
11
+ clear: TextAreaClear
12
+ });
16
13
 
17
14
  export { TextArea, TextAreaClear, TextAreaDefault };
18
15
  //# sourceMappingURL=TextArea.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.js","sources":["../../../../../src-css/components/TextArea/TextArea.tsx"],"sourcesContent":["import {\n textAreaConfig,\n component,\n mergeConfig,\n createConditionalComponent,\n} from '@salutejs/plasma-new-hope/css';\n\nimport { config } from './TextArea.config';\nimport { config as clearConfig } from './TextArea.clear.config';\n\nconst mergedConfig = mergeConfig(textAreaConfig, config);\nexport const TextAreaDefault = component(mergedConfig);\n\nconst mergedConfigClear = mergeConfig(textAreaConfig, clearConfig);\nexport const TextAreaClear = component(mergedConfigClear);\n\nexport const TextArea = createConditionalComponent(TextAreaDefault, [\n {\n conditions: { prop: 'appearance', value: 'clear' },\n component: TextAreaClear,\n },\n]);\n"],"names":["mergedConfig","mergeConfig","textAreaConfig","config","TextAreaDefault","component","mergedConfigClear","clearConfig","TextAreaClear","TextArea","createConditionalComponent","conditions","prop","value"],"mappings":";;;;AAUA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,cAAc,EAAEC,MAAM,CAAC;IAC3CC,eAAe,gBAAGC,SAAS,CAACL,YAAY;AAErD,IAAMM,iBAAiB,gBAAGL,WAAW,CAACC,cAAc,EAAEK,QAAW,CAAC;IACrDC,aAAa,gBAAGH,SAAS,CAACC,iBAAiB;IAE3CG,QAAQ,gBAAGC,0BAA0B,CAACN,eAAe,EAAE,CAChE;AACIO,EAAAA,UAAU,EAAE;AAAEC,IAAAA,IAAI,EAAE,YAAY;AAAEC,IAAAA,KAAK,EAAE;GAAS;AAClDR,EAAAA,SAAS,EAAEG;AACf,CAAC,CACJ;;;;"}
1
+ {"version":3,"file":"TextArea.js","sources":["../../../../../src-css/components/TextArea/TextArea.tsx"],"sourcesContent":["import {\n textAreaConfig,\n component,\n mergeConfig,\n createConditionalComponent,\n} from '@salutejs/plasma-new-hope/css';\n\nimport { config } from './TextArea.config';\nimport { config as clearConfig } from './TextArea.clear.config';\n\nconst mergedConfig = mergeConfig(textAreaConfig, config);\nexport const TextAreaDefault = component(mergedConfig);\n\nconst mergedConfigClear = mergeConfig(textAreaConfig, clearConfig);\nexport const TextAreaClear = component(mergedConfigClear);\n\nexport const TextArea = createConditionalComponent({\n default: TextAreaDefault,\n clear: TextAreaClear,\n});\n"],"names":["mergedConfig","mergeConfig","textAreaConfig","config","TextAreaDefault","component","mergedConfigClear","clearConfig","TextAreaClear","TextArea","createConditionalComponent","clear"],"mappings":";;;;AAUA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,cAAc,EAAEC,QAAM,CAAC;IAC3CC,eAAe,gBAAGC,SAAS,CAACL,YAAY;AAErD,IAAMM,iBAAiB,gBAAGL,WAAW,CAACC,cAAc,EAAEK,MAAW,CAAC;IACrDC,aAAa,gBAAGH,SAAS,CAACC,iBAAiB;AAEjD,IAAMG,QAAQ,gBAAGC,0BAA0B,CAAC;AAC/C,EAAA,SAAA,EAASN,eAAe;AACxBO,EAAAA,KAAK,EAAEH;AACX,CAAC;;;;"}
@@ -9,7 +9,8 @@ Object.defineProperty(exports, "Button", {
9
9
  }
10
10
  });
11
11
  var _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
12
+ var _plasmanewhope = require("@salutejs/plasma-new-hope");
12
13
  var _Buttonconfig = require("./Button.config");
13
14
  var mergedConfig = (0, _styledcomponents.mergeConfig)(_styledcomponents.buttonConfig, _Buttonconfig.config);
14
15
  var ButtonComponent = (0, _styledcomponents.component)(mergedConfig);
15
- var Button = ButtonComponent;
16
+ var Button = (0, _plasmanewhope.makePolymorphic)(ButtonComponent, 'button');
@@ -26,12 +26,7 @@ var mergedConfig = (0, _styledcomponents.mergeConfig)(_styledcomponents.textArea
26
26
  var TextAreaDefault = (0, _styledcomponents.component)(mergedConfig);
27
27
  var mergedConfigClear = (0, _styledcomponents.mergeConfig)(_styledcomponents.textAreaConfig, _TextAreaclearconfig.config);
28
28
  var TextAreaClear = (0, _styledcomponents.component)(mergedConfigClear);
29
- var TextArea = (0, _styledcomponents.createConditionalComponent)(TextAreaDefault, [
30
- {
31
- conditions: {
32
- prop: 'appearance',
33
- value: 'clear'
34
- },
35
- component: TextAreaClear
36
- }
37
- ]);
29
+ var TextArea = (0, _styledcomponents.createConditionalComponent)({
30
+ default: TextAreaDefault,
31
+ clear: TextAreaClear
32
+ });
@@ -1,7 +1,8 @@
1
1
  import { buttonConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
2
+ import { makePolymorphic } from '@salutejs/plasma-new-hope';
2
3
  import { config } from './Button.config';
3
4
  var mergedConfig = mergeConfig(buttonConfig, config);
4
5
  var ButtonComponent = component(mergedConfig);
5
6
  /**
6
7
  * Кнопка.
7
- */ export var Button = ButtonComponent;
8
+ */ export var Button = makePolymorphic(ButtonComponent, 'button');
@@ -5,12 +5,7 @@ var mergedConfig = mergeConfig(textAreaConfig, config);
5
5
  export var TextAreaDefault = component(mergedConfig);
6
6
  var mergedConfigClear = mergeConfig(textAreaConfig, clearConfig);
7
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
- ]);
8
+ export var TextArea = createConditionalComponent({
9
+ default: TextAreaDefault,
10
+ clear: TextAreaClear
11
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-os",
3
- "version": "0.18.0-next-platform-ai.0",
3
+ "version": "0.18.0",
4
4
  "description": "Salute Design System / React UI kit for SDDS OS web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "exports": {
@@ -32,8 +32,8 @@
32
32
  "directory": "packages/sdds-os"
33
33
  },
34
34
  "dependencies": {
35
- "@salutejs/plasma-new-hope": "0.360.0-next-platform-ai.0",
36
- "@salutejs/sdds-themes": "0.63.0-next-platform-ai.0"
35
+ "@salutejs/plasma-new-hope": "0.360.0",
36
+ "@salutejs/sdds-themes": "0.63.0"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": ">=16.13.1",
@@ -57,10 +57,10 @@
57
57
  "@rollup/plugin-commonjs": "^25.0.4",
58
58
  "@rollup/plugin-node-resolve": "^15.1.0",
59
59
  "@salutejs/plasma-colors": "0.16.0",
60
- "@salutejs/plasma-core": "1.224.0-next-platform-ai.0",
61
- "@salutejs/plasma-cy-utils": "0.154.0-next-platform-ai.0",
62
- "@salutejs/plasma-icons": "1.236.0-next-platform-ai.0",
63
- "@salutejs/plasma-sb-utils": "0.224.0-next-platform-ai.0",
60
+ "@salutejs/plasma-core": "1.224.0",
61
+ "@salutejs/plasma-cy-utils": "0.154.0",
62
+ "@salutejs/plasma-icons": "1.236.0",
63
+ "@salutejs/plasma-sb-utils": "0.224.0",
64
64
  "@types/node": "16.7.13",
65
65
  "@types/react": "18.0.28",
66
66
  "@types/react-dom": "18.0.11",
@@ -108,5 +108,5 @@
108
108
  "sideEffects": [
109
109
  "*.css"
110
110
  ],
111
- "gitHead": "d6aa6bb8c31f49de4ea9211ae65b758819eb3274"
111
+ "gitHead": "19666107f034de0f50f0109e1a24faf0d05d6fcb"
112
112
  }
@@ -22,7 +22,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
22
22
  m: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
23
23
  s: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
24
24
  };
25
- }> & ((Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
25
+ }> & ((Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
26
26
  text?: string;
27
27
  contentLeft?: import("react").ReactNode;
28
28
  contentPlacing?: "default" | "relaxed";
@@ -61,7 +61,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
61
61
  dropdownOptions?: import("@salutejs/plasma-new-hope/types/components/Attach/Attach.types.js").DropdownOptions;
62
62
  } & {
63
63
  buttonType?: "button";
64
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
64
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
65
65
  text?: string;
66
66
  contentLeft?: import("react").ReactNode;
67
67
  contentPlacing?: "default" | "relaxed";
@@ -103,7 +103,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
103
103
  } & {
104
104
  value?: never;
105
105
  contentRight?: import("react").ReactNode;
106
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
106
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
107
107
  text?: string;
108
108
  contentLeft?: import("react").ReactNode;
109
109
  contentPlacing?: "default" | "relaxed";
@@ -143,7 +143,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
143
143
  } & {
144
144
  buttonType?: "iconButton";
145
145
  icon?: React.ReactNode;
146
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
146
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
147
147
  text?: string;
148
148
  contentLeft?: import("react").ReactNode;
149
149
  contentPlacing?: "default" | "relaxed";
@@ -186,7 +186,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
186
186
  } & {
187
187
  value?: never;
188
188
  contentRight?: import("react").ReactNode;
189
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
189
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
190
190
  text?: string;
191
191
  contentLeft?: import("react").ReactNode;
192
192
  contentPlacing?: "default" | "relaxed";
@@ -225,7 +225,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
225
225
  dropdownOptions?: never;
226
226
  } & {
227
227
  buttonType?: "button";
228
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
228
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
229
229
  text?: string;
230
230
  contentLeft?: import("react").ReactNode;
231
231
  contentPlacing?: "default" | "relaxed";
@@ -267,7 +267,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
267
267
  } & {
268
268
  value?: never;
269
269
  contentRight?: import("react").ReactNode;
270
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
270
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
271
271
  text?: string;
272
272
  contentLeft?: import("react").ReactNode;
273
273
  contentPlacing?: "default" | "relaxed";
@@ -307,7 +307,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
307
307
  } & {
308
308
  buttonType?: "iconButton";
309
309
  icon?: React.ReactNode;
310
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
310
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
311
311
  text?: string;
312
312
  contentLeft?: import("react").ReactNode;
313
313
  contentPlacing?: "default" | "relaxed";
@@ -350,7 +350,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
350
350
  } & {
351
351
  value?: never;
352
352
  contentRight?: import("react").ReactNode;
353
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
353
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
354
354
  text?: string;
355
355
  contentLeft?: import("react").ReactNode;
356
356
  contentPlacing?: "default" | "relaxed";
@@ -392,7 +392,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
392
392
  } & {
393
393
  value?: string | number;
394
394
  contentRight?: never;
395
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
395
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
396
396
  text?: string;
397
397
  contentLeft?: import("react").ReactNode;
398
398
  contentPlacing?: "default" | "relaxed";
@@ -431,7 +431,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
431
431
  dropdownOptions?: import("@salutejs/plasma-new-hope/types/components/Attach/Attach.types.js").DropdownOptions;
432
432
  } & {
433
433
  buttonType?: "button";
434
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
434
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
435
435
  text?: string;
436
436
  contentLeft?: import("react").ReactNode;
437
437
  contentPlacing?: "default" | "relaxed";
@@ -474,7 +474,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
474
474
  } & {
475
475
  value?: string | number;
476
476
  contentRight?: never;
477
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
477
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
478
478
  text?: string;
479
479
  contentLeft?: import("react").ReactNode;
480
480
  contentPlacing?: "default" | "relaxed";
@@ -514,7 +514,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
514
514
  } & {
515
515
  buttonType?: "iconButton";
516
516
  icon?: React.ReactNode;
517
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
517
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
518
518
  text?: string;
519
519
  contentLeft?: import("react").ReactNode;
520
520
  contentPlacing?: "default" | "relaxed";
@@ -556,7 +556,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
556
556
  } & {
557
557
  value?: string | number;
558
558
  contentRight?: never;
559
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
559
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
560
560
  text?: string;
561
561
  contentLeft?: import("react").ReactNode;
562
562
  contentPlacing?: "default" | "relaxed";
@@ -595,7 +595,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
595
595
  dropdownOptions?: never;
596
596
  } & {
597
597
  buttonType?: "button";
598
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
598
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
599
599
  text?: string;
600
600
  contentLeft?: import("react").ReactNode;
601
601
  contentPlacing?: "default" | "relaxed";
@@ -638,7 +638,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
638
638
  } & {
639
639
  value?: string | number;
640
640
  contentRight?: never;
641
- } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
641
+ } & import("react").RefAttributes<HTMLDivElement>) | (Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
642
642
  text?: string;
643
643
  contentLeft?: import("react").ReactNode;
644
644
  contentPlacing?: "default" | "relaxed";
@@ -29,7 +29,7 @@ declare const ButtonComponent: import("react").FunctionComponent<import("@salute
29
29
  filled: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
30
30
  fixed: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
31
31
  };
32
- }> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
32
+ }> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
33
33
  text?: string;
34
34
  contentLeft?: import("react").ReactNode;
35
35
  contentPlacing?: "default" | "relaxed";
@@ -52,7 +52,7 @@ declare const ButtonComponent: import("react").FunctionComponent<import("@salute
52
52
  } & {
53
53
  value?: string | number;
54
54
  contentRight?: never;
55
- } & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
55
+ } & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
56
56
  text?: string;
57
57
  contentLeft?: import("react").ReactNode;
58
58
  contentPlacing?: "default" | "relaxed";
@@ -80,7 +80,7 @@ export type ButtonProps = typeof ButtonComponent;
80
80
  /**
81
81
  * Кнопка.
82
82
  */
83
- export declare const Button: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<{
83
+ export declare const Button: import("@salutejs/plasma-new-hope/styled-components").MakePolymorphic<import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<{
84
84
  view: {
85
85
  default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
86
86
  accent: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
@@ -111,7 +111,7 @@ export declare const Button: import("react").FunctionComponent<import("@salutejs
111
111
  filled: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
112
112
  fixed: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
113
113
  };
114
- }> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
114
+ }> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
115
115
  text?: string;
116
116
  contentLeft?: import("react").ReactNode;
117
117
  contentPlacing?: "default" | "relaxed";
@@ -134,7 +134,7 @@ export declare const Button: import("react").FunctionComponent<import("@salutejs
134
134
  } & {
135
135
  value?: string | number;
136
136
  contentRight?: never;
137
- } & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
137
+ } & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
138
138
  text?: string;
139
139
  contentLeft?: import("react").ReactNode;
140
140
  contentPlacing?: "default" | "relaxed";
@@ -157,5 +157,5 @@ export declare const Button: import("react").FunctionComponent<import("@salutejs
157
157
  } & {
158
158
  value?: never;
159
159
  contentRight?: import("react").ReactNode;
160
- } & import("react").RefAttributes<HTMLButtonElement>))>;
160
+ } & import("react").RefAttributes<HTMLButtonElement>))>, "button">;
161
161
  export {};
@@ -156,8 +156,8 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
156
156
  required?: boolean | undefined;
157
157
  label?: string | undefined;
158
158
  view?: string | undefined;
159
- contentLeft?: React.ReactNode;
160
159
  appearance?: "default" | "clear" | undefined;
160
+ contentLeft?: React.ReactNode;
161
161
  contentRight?: React.ReactNode;
162
162
  hintText?: string | undefined;
163
163
  hintTrigger?: ("hover" | "click") | undefined;
@@ -22,7 +22,7 @@ export declare const EmbedIconButton: import("react").FunctionComponent<import("
22
22
  focused: {
23
23
  true: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
24
24
  };
25
- }> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
25
+ }> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
26
26
  text?: string;
27
27
  contentLeft?: import("react").ReactNode;
28
28
  contentPlacing?: "default" | "relaxed";
@@ -45,7 +45,7 @@ export declare const EmbedIconButton: import("react").FunctionComponent<import("
45
45
  } & {
46
46
  value?: string | number;
47
47
  contentRight?: never;
48
- } & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
48
+ } & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
49
49
  text?: string;
50
50
  contentLeft?: import("react").ReactNode;
51
51
  contentPlacing?: "default" | "relaxed";
@@ -26,7 +26,7 @@ export declare const IconButton: import("react").FunctionComponent<import("@salu
26
26
  focused: {
27
27
  true: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
28
28
  };
29
- }> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
29
+ }> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
30
30
  text?: string;
31
31
  contentLeft?: import("react").ReactNode;
32
32
  contentPlacing?: "default" | "relaxed";
@@ -49,7 +49,7 @@ export declare const IconButton: import("react").FunctionComponent<import("@salu
49
49
  } & {
50
50
  value?: string | number;
51
51
  contentRight?: never;
52
- } & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
52
+ } & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
53
53
  text?: string;
54
54
  contentLeft?: import("react").ReactNode;
55
55
  contentPlacing?: "default" | "relaxed";