@salutejs/plasma-b2c 1.413.0-canary.1470.11181201904.0 → 1.413.0-canary.1470.11191908547.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1454,7 +1454,7 @@ true: PolymorphicClassName;
1454
1454
  onChange?: ((value: string[]) => void) | undefined;
1455
1455
  isTargetAmount?: boolean | undefined;
1456
1456
  } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>)), "view" | "size" | "disabled" | "readOnly" | "labelPlacement"> & {
1457
- ref: React_2.ForwardedRef<HTMLInputElement>;
1457
+ ref?: React_2.ForwardedRef<HTMLInputElement> | undefined;
1458
1458
  }, "ref">) & React_2.RefAttributes<HTMLInputElement>>;
1459
1459
 
1460
1460
  // @public (undocumented)
@@ -200,7 +200,7 @@ export declare const ComboboxComponent: import("react").FunctionComponent<import
200
200
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>))>;
201
201
  declare type PropsFromConfig = 'view' | 'size' | 'labelPlacement' | 'disabled' | 'readOnly';
202
202
  declare type ComboboxType = <T extends ItemOption>(props: Omit<ComboboxProps<T>, PropsFromConfig> & Pick<ComponentProps<typeof ComboboxComponent>, PropsFromConfig> & {
203
- ref: ForwardedRef<HTMLInputElement>;
203
+ ref?: ForwardedRef<HTMLInputElement>;
204
204
  }) => ReactElement;
205
- export declare const Combobox: ComboboxType;
206
- export {};
205
+ declare const Combobox: ComboboxType;
206
+ export { Combobox };
@@ -6,6 +6,34 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ComboboxComponent = exports.Combobox = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
8
  var _Combobox = /*#__PURE__*/require("./Combobox.config");
9
+ // import React from 'react';
10
+
9
11
  var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.comboboxNewConfig, _Combobox.config);
10
12
  var ComboboxComponent = exports.ComboboxComponent = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
11
- var Combobox = exports.Combobox = ComboboxComponent;
13
+ var Combobox = exports.Combobox = ComboboxComponent;
14
+
15
+ // const items = [
16
+ // {
17
+ // value: 'north_america',
18
+ // label: 'Северная Америка',
19
+ // name: 'dima',
20
+ // },
21
+ // {
22
+ // value: 'north_america',
23
+ // label: 'Северная Америка',
24
+ // name: 'dima',
25
+ // },
26
+ // ];
27
+ //
28
+ // const Func = () => {
29
+ // return (
30
+ // <Combobox
31
+ // items={items}
32
+ // renderItem={(item) => {
33
+ // console.log(item);
34
+ //
35
+ // return <div>123</div>;
36
+ // }}
37
+ // />
38
+ // );
39
+ // };
@@ -231,6 +231,6 @@ declare const Combobox: React.ForwardRefExoticComponent<(Omit<import("@salutejs/
231
231
  onChange?: ((value: string[]) => void) | undefined;
232
232
  isTargetAmount?: boolean | undefined;
233
233
  } & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>)), "view" | "size" | "disabled" | "readOnly" | "labelPlacement"> & {
234
- ref: React.ForwardedRef<HTMLInputElement>;
234
+ ref?: React.ForwardedRef<HTMLInputElement> | undefined;
235
235
  }, "ref">) & React.RefAttributes<HTMLInputElement>>;
236
236
  export { Combobox };
@@ -9,6 +9,32 @@ var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.combobox
9
9
  var ComboboxComponent = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
10
10
  var Combobox = ComboboxComponent;
11
11
 
12
+ // const items = [
13
+ // {
14
+ // value: 'north_america',
15
+ // label: 'Северная Америка',
16
+ // name: 'dima',
17
+ // },
18
+ // {
19
+ // value: 'north_america',
20
+ // label: 'Северная Америка',
21
+ // name: 'dima',
22
+ // },
23
+ // ];
24
+ //
25
+ // const Func = () => {
26
+ // return (
27
+ // <Combobox
28
+ // items={items}
29
+ // renderItem={(item) => {
30
+ // console.log(item);
31
+ //
32
+ // return <div>123</div>;
33
+ // }}
34
+ // />
35
+ // );
36
+ // };
37
+
12
38
  exports.Combobox = Combobox;
13
39
  exports.ComboboxComponent = ComboboxComponent;
14
40
  //# sourceMappingURL=Combobox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.js","sources":["../../../../src-css/components/Combobox/Combobox.ts"],"sourcesContent":["import type { ComponentProps, ReactElement, ForwardedRef } from 'react';\nimport { comboboxNewConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\nimport type { ComboboxProps, ItemOption } from '@salutejs/plasma-new-hope';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nexport const ComboboxComponent = component(mergedConfig);\n\ntype PropsFromConfig = 'view' | 'size' | 'labelPlacement' | 'disabled' | 'readOnly';\n\ntype ComboboxType = <T extends ItemOption>(\n props: Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxComponent>, PropsFromConfig> & { ref: ForwardedRef<HTMLInputElement> },\n) => ReactElement;\n\nexport const Combobox = ComboboxComponent as ComboboxType;\n"],"names":["mergedConfig","mergeConfig","comboboxNewConfig","config","ComboboxComponent","component","Combobox"],"mappings":";;;;;;;AAMA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,+BAAiB,EAAEC,sBAAM,CAAC,CAAA;IAC9CC,iBAAiB,gBAAGC,uBAAS,CAACL,YAAY,EAAC;AASjD,IAAMM,QAAQ,GAAGF;;;;;"}
1
+ {"version":3,"file":"Combobox.js","sources":["../../../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import type { ComponentProps, ReactElement, ForwardedRef } from 'react';\nimport { comboboxNewConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\nimport type { ComboboxProps, ItemOption } from '@salutejs/plasma-new-hope';\n// import React from 'react';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nexport const ComboboxComponent = component(mergedConfig);\n\ntype PropsFromConfig = 'view' | 'size' | 'labelPlacement' | 'disabled' | 'readOnly';\n\ntype ComboboxType = <T extends ItemOption>(\n props: Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxComponent>, PropsFromConfig> & { ref?: ForwardedRef<HTMLInputElement> },\n) => ReactElement;\n\nconst Combobox = ComboboxComponent as ComboboxType;\n\nexport { Combobox };\n\n// const items = [\n// {\n// value: 'north_america',\n// label: 'Северная Америка',\n// name: 'dima',\n// },\n// {\n// value: 'north_america',\n// label: 'Северная Америка',\n// name: 'dima',\n// },\n// ];\n//\n// const Func = () => {\n// return (\n// <Combobox\n// items={items}\n// renderItem={(item) => {\n// console.log(item);\n//\n// return <div>123</div>;\n// }}\n// />\n// );\n// };\n"],"names":["mergedConfig","mergeConfig","comboboxNewConfig","config","ComboboxComponent","component","Combobox"],"mappings":";;;;;;;AAOA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,+BAAiB,EAAEC,sBAAM,CAAC,CAAA;IAC9CC,iBAAiB,gBAAGC,uBAAS,CAACL,YAAY,EAAC;AASlDM,IAAAA,QAAQ,GAAGF,kBAAiC;;AAIlD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;"}
@@ -5,5 +5,31 @@ var mergedConfig = /*#__PURE__*/mergeConfig(comboboxNewConfig, config);
5
5
  var ComboboxComponent = /*#__PURE__*/component(mergedConfig);
6
6
  var Combobox = ComboboxComponent;
7
7
 
8
+ // const items = [
9
+ // {
10
+ // value: 'north_america',
11
+ // label: 'Северная Америка',
12
+ // name: 'dima',
13
+ // },
14
+ // {
15
+ // value: 'north_america',
16
+ // label: 'Северная Америка',
17
+ // name: 'dima',
18
+ // },
19
+ // ];
20
+ //
21
+ // const Func = () => {
22
+ // return (
23
+ // <Combobox
24
+ // items={items}
25
+ // renderItem={(item) => {
26
+ // console.log(item);
27
+ //
28
+ // return <div>123</div>;
29
+ // }}
30
+ // />
31
+ // );
32
+ // };
33
+
8
34
  export { Combobox, ComboboxComponent };
9
35
  //# sourceMappingURL=Combobox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.js","sources":["../../../../src-css/components/Combobox/Combobox.ts"],"sourcesContent":["import type { ComponentProps, ReactElement, ForwardedRef } from 'react';\nimport { comboboxNewConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\nimport type { ComboboxProps, ItemOption } from '@salutejs/plasma-new-hope';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nexport const ComboboxComponent = component(mergedConfig);\n\ntype PropsFromConfig = 'view' | 'size' | 'labelPlacement' | 'disabled' | 'readOnly';\n\ntype ComboboxType = <T extends ItemOption>(\n props: Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxComponent>, PropsFromConfig> & { ref: ForwardedRef<HTMLInputElement> },\n) => ReactElement;\n\nexport const Combobox = ComboboxComponent as ComboboxType;\n"],"names":["mergedConfig","mergeConfig","comboboxNewConfig","config","ComboboxComponent","component","Combobox"],"mappings":";;;AAMA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,iBAAiB,EAAEC,MAAM,CAAC,CAAA;IAC9CC,iBAAiB,gBAAGC,SAAS,CAACL,YAAY,EAAC;AASjD,IAAMM,QAAQ,GAAGF;;;;"}
1
+ {"version":3,"file":"Combobox.js","sources":["../../../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import type { ComponentProps, ReactElement, ForwardedRef } from 'react';\nimport { comboboxNewConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\nimport type { ComboboxProps, ItemOption } from '@salutejs/plasma-new-hope';\n// import React from 'react';\n\nimport { config } from './Combobox.config';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nexport const ComboboxComponent = component(mergedConfig);\n\ntype PropsFromConfig = 'view' | 'size' | 'labelPlacement' | 'disabled' | 'readOnly';\n\ntype ComboboxType = <T extends ItemOption>(\n props: Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxComponent>, PropsFromConfig> & { ref?: ForwardedRef<HTMLInputElement> },\n) => ReactElement;\n\nconst Combobox = ComboboxComponent as ComboboxType;\n\nexport { Combobox };\n\n// const items = [\n// {\n// value: 'north_america',\n// label: 'Северная Америка',\n// name: 'dima',\n// },\n// {\n// value: 'north_america',\n// label: 'Северная Америка',\n// name: 'dima',\n// },\n// ];\n//\n// const Func = () => {\n// return (\n// <Combobox\n// items={items}\n// renderItem={(item) => {\n// console.log(item);\n//\n// return <div>123</div>;\n// }}\n// />\n// );\n// };\n"],"names":["mergedConfig","mergeConfig","comboboxNewConfig","config","ComboboxComponent","component","Combobox"],"mappings":";;;AAOA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,iBAAiB,EAAEC,MAAM,CAAC,CAAA;IAC9CC,iBAAiB,gBAAGC,SAAS,CAACL,YAAY,EAAC;AASlDM,IAAAA,QAAQ,GAAGF,kBAAiC;;AAIlD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;"}
@@ -1,5 +1,34 @@
1
1
  import { comboboxNewConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
2
+ // import React from 'react';
3
+
2
4
  import { config } from './Combobox.config';
3
5
  var mergedConfig = /*#__PURE__*/mergeConfig(comboboxNewConfig, config);
4
6
  export var ComboboxComponent = /*#__PURE__*/component(mergedConfig);
5
- export var Combobox = ComboboxComponent;
7
+ var Combobox = ComboboxComponent;
8
+ export { Combobox };
9
+
10
+ // const items = [
11
+ // {
12
+ // value: 'north_america',
13
+ // label: 'Северная Америка',
14
+ // name: 'dima',
15
+ // },
16
+ // {
17
+ // value: 'north_america',
18
+ // label: 'Северная Америка',
19
+ // name: 'dima',
20
+ // },
21
+ // ];
22
+ //
23
+ // const Func = () => {
24
+ // return (
25
+ // <Combobox
26
+ // items={items}
27
+ // renderItem={(item) => {
28
+ // console.log(item);
29
+ //
30
+ // return <div>123</div>;
31
+ // }}
32
+ // />
33
+ // );
34
+ // };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-b2c",
3
- "version": "1.413.0-canary.1470.11181201904.0",
3
+ "version": "1.413.0-canary.1470.11191908547.0",
4
4
  "description": "Salute Design System / React UI kit for business-related web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@salutejs/plasma-core": "1.180.0",
46
46
  "@salutejs/plasma-hope": "1.313.0",
47
- "@salutejs/plasma-new-hope": "0.162.0-canary.1470.11181201904.0",
47
+ "@salutejs/plasma-new-hope": "0.162.0-canary.1470.11191908547.0",
48
48
  "@salutejs/plasma-themes": "0.18.0",
49
49
  "@salutejs/plasma-tokens-b2c": "0.52.0",
50
50
  "@salutejs/plasma-tokens-web": "1.57.0",
@@ -109,5 +109,5 @@
109
109
  "react"
110
110
  ],
111
111
  "sideEffects": false,
112
- "gitHead": "35b518838f3d4549c52600a89ff0a7a7ee3ce548"
112
+ "gitHead": "a5419bb3774fd80c76357a84f021a153fbd23782"
113
113
  }
@@ -1454,7 +1454,7 @@ true: PolymorphicClassName;
1454
1454
  onChange?: ((value: string[]) => void) | undefined;
1455
1455
  isTargetAmount?: boolean | undefined;
1456
1456
  } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>)), "view" | "size" | "disabled" | "readOnly" | "labelPlacement"> & {
1457
- ref: React_2.ForwardedRef<HTMLInputElement>;
1457
+ ref?: React_2.ForwardedRef<HTMLInputElement> | undefined;
1458
1458
  }, "ref">) & React_2.RefAttributes<HTMLInputElement>>;
1459
1459
 
1460
1460
  // @public (undocumented)