@salutejs/plasma-web 1.496.1-canary.1705.12790178134.0 → 1.496.1-canary.1707.12821938085.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. package/css/cjs/components/Accordion/Accordion.config.js +1 -1
  2. package/css/cjs/components/Attach/Attach.config.js +1 -1
  3. package/css/cjs/components/Autocomplete/Autocomplete.config.js +1 -1
  4. package/css/cjs/components/Avatar/Avatar.config.js +1 -1
  5. package/css/cjs/components/Badge/Badge.config.js +1 -1
  6. package/css/cjs/components/Breadcrumbs/Breadcrumbs.config.js +1 -1
  7. package/css/cjs/components/Button/Button.config.js +1 -1
  8. package/css/cjs/components/ButtonGroup/ButtonGroup.config.js +1 -1
  9. package/css/cjs/components/Calendar/CalendarBase.config.js +1 -1
  10. package/css/cjs/components/Calendar/CalendarDouble.config.js +1 -1
  11. package/css/cjs/components/Cell/Cell.config.js +1 -1
  12. package/css/cjs/components/Checkbox/Checkbox.config.js +1 -1
  13. package/css/cjs/components/Chip/Chip.config.js +1 -1
  14. package/css/cjs/components/ChipGroup/ChipGroup.config.js +1 -1
  15. package/css/cjs/components/Combobox/Combobox.config.js +1 -1
  16. package/css/cjs/components/Combobox/Combobox.js +6 -2
  17. package/css/cjs/components/Combobox/Combobox.js.map +1 -1
  18. package/css/cjs/components/Combobox/Legacy/Combobox.config.js +1 -1
  19. package/css/cjs/components/Counter/Counter.config.js +1 -1
  20. package/css/cjs/components/DatePicker/DatePicker.config.js +1 -1
  21. package/css/cjs/components/Divider/Divider.config.js +1 -1
  22. package/css/cjs/components/Drawer/Drawer.config.js +1 -1
  23. package/css/cjs/components/Dropdown/Dropdown.config.js +1 -1
  24. package/css/cjs/components/Dropdown/Dropdown.js +5 -1
  25. package/css/cjs/components/Dropdown/Dropdown.js.map +1 -1
  26. package/css/cjs/components/Dropdown/components/DropdownItem.js +8 -3
  27. package/css/cjs/components/Dropdown/components/DropdownItem.js.map +1 -1
  28. package/css/cjs/components/Dropdown/components/DropdownList.js +5 -1
  29. package/css/cjs/components/Dropdown/components/DropdownList.js.map +1 -1
  30. package/css/cjs/components/Dropdown/components/DropdownOld.config.js +1 -1
  31. package/css/cjs/components/Dropdown/components/DropdownPopup.js +5 -1
  32. package/css/cjs/components/Dropdown/components/DropdownPopup.js.map +1 -1
  33. package/css/cjs/components/Dropzone/Dropzone.config.js +1 -1
  34. package/css/cjs/components/Editable/Editable.config.js +1 -1
  35. package/css/cjs/components/EmptyState/EmptyState.config.js +1 -1
  36. package/css/cjs/components/Grid/Grid.config.js +1 -1
  37. package/css/cjs/components/IconButton/IconButton.config.js +1 -1
  38. package/css/cjs/components/Indicator/Indicator.config.js +1 -1
  39. package/css/cjs/components/Link/Link.config.js +1 -1
  40. package/css/cjs/components/ModalBase/Modal.config.js +1 -1
  41. package/css/cjs/components/Note/Note.config.js +1 -1
  42. package/css/cjs/components/Notification/Notification.config.js +1 -1
  43. package/css/cjs/components/Notification/Notification.js +5 -1
  44. package/css/cjs/components/Notification/Notification.js.map +1 -1
  45. package/css/cjs/components/NumberInput/NumberInput.config.js +1 -1
  46. package/css/cjs/components/Pagination/Pagination.config.js +1 -1
  47. package/css/cjs/components/Popover/Popover.config.js +1 -1
  48. package/css/cjs/components/Progress/Progress.config.js +1 -1
  49. package/css/cjs/components/Radiobox/Radiobox.config.js +1 -1
  50. package/css/cjs/components/Range/Range.config.js +1 -1
  51. package/css/cjs/components/Rating/Rating.config.js +1 -1
  52. package/css/cjs/components/Segment/SegmentGroup.config.js +1 -1
  53. package/css/cjs/components/Segment/SegmentItem.config.js +1 -1
  54. package/css/cjs/components/Select/Select.config.js +1 -1
  55. package/css/cjs/components/Select/Select.js +5 -1
  56. package/css/cjs/components/Select/Select.js.map +1 -1
  57. package/css/cjs/components/Sheet/Sheet.config.js +1 -1
  58. package/css/cjs/components/Skeleton/LineSkeleton.config.js +1 -1
  59. package/css/cjs/components/Slider/Slider.config.js +1 -1
  60. package/css/cjs/components/Spinner/Spinner.config.js +1 -1
  61. package/css/cjs/components/Steps/Steps.config.js +1 -1
  62. package/css/cjs/components/Switch/Switch.config.js +1 -1
  63. package/css/cjs/components/Tabs/TabItem.js +6 -2
  64. package/css/cjs/components/Tabs/TabItem.js.map +1 -1
  65. package/css/cjs/components/Tabs/Tabs.js +6 -2
  66. package/css/cjs/components/Tabs/Tabs.js.map +1 -1
  67. package/css/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +1 -1
  68. package/css/cjs/components/Tabs/horizontal/HorizontalTabs.config.js +1 -1
  69. package/css/cjs/components/Tabs/vertical/VerticalTabItem.config.js +1 -1
  70. package/css/cjs/components/Tabs/vertical/VerticalTabs.config.js +1 -1
  71. package/css/cjs/components/TextArea/TextArea.config.js +1 -1
  72. package/css/cjs/components/TextField/TextField.config.js +1 -1
  73. package/css/cjs/components/TextField/TextField.js +6 -2
  74. package/css/cjs/components/TextField/TextField.js.map +1 -1
  75. package/css/cjs/components/TextFieldGroup/TextFieldGroup.config.js +1 -1
  76. package/css/cjs/components/Toast/Toast.config.js +1 -1
  77. package/css/cjs/components/Toolbar/Toolbar.config.js +1 -1
  78. package/css/cjs/components/Tooltip/Tooltip.config.js +1 -1
  79. package/css/cjs/components/Tree/Tree.config.js +1 -1
  80. package/css/cjs/components/Typography/Body.config.js +1 -1
  81. package/css/cjs/components/Typography/Dspl.config.js +1 -1
  82. package/css/cjs/components/Typography/Heading.config.js +1 -1
  83. package/css/cjs/components/Typography/Old/Body.config.js +1 -1
  84. package/css/cjs/components/Typography/Old/Button.config.js +1 -1
  85. package/css/cjs/components/Typography/Old/Caption.config.js +1 -1
  86. package/css/cjs/components/Typography/Old/Footnote.config.js +1 -1
  87. package/css/cjs/components/Typography/Old/Headline.config.js +1 -1
  88. package/css/cjs/components/Typography/Old/Paragraph.config.js +1 -1
  89. package/css/cjs/components/Typography/Old/ParagraphText.config.js +1 -1
  90. package/css/cjs/components/Typography/Old/Subtitle.config.js +1 -1
  91. package/css/cjs/components/Typography/Old/Underline.config.js +1 -1
  92. package/css/cjs/components/Typography/Text.config.js +1 -1
  93. package/package.json +3 -3
  94. package/rollup.config.mjs +68 -55
@@ -1,4 +1,4 @@
1
- import './Accordion.config_1vt8ywe.css';
1
+ require('./Accordion.config_1vt8ywe.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Attach.config_ld8c4j.css';
1
+ require('./Attach.config_ld8c4j.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Autocomplete.config_kzk332.css';
1
+ require('./Autocomplete.config_kzk332.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Avatar.config_weecw4.css';
1
+ require('./Avatar.config_weecw4.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Badge.config_lt6hb3.css';
1
+ require('./Badge.config_lt6hb3.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Breadcrumbs.config_b0qlrl.css';
1
+ require('./Breadcrumbs.config_b0qlrl.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Button.config_1p9wq2b.css';
1
+ require('./Button.config_1p9wq2b.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './ButtonGroup.config_nvojq8.css';
1
+ require('./ButtonGroup.config_nvojq8.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './CalendarBase.config_253ftk.css';
1
+ require('./CalendarBase.config_253ftk.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './CalendarDouble.config_td5byz.css';
1
+ require('./CalendarDouble.config_td5byz.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Cell.config_87koo7.css';
1
+ require('./Cell.config_87koo7.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Checkbox.config_qy77nu.css';
1
+ require('./Checkbox.config_qy77nu.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Chip.config_nv900q.css';
1
+ require('./Chip.config_nv900q.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './ChipGroup.config_c10q1g.css';
1
+ require('./ChipGroup.config_c10q1g.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Combobox.config_12tsur6.css';
1
+ require('./Combobox.config_12tsur6.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8,15 +8,19 @@ var React = require('react');
8
8
  var Combobox_config = require('./Combobox.config.js');
9
9
  var Combobox$1 = require('./Legacy/Combobox.js');
10
10
 
11
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
12
+
13
+ var React__default = /*#__PURE__*/_interopDefault(React);
14
+
11
15
  var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.comboboxNewConfig, Combobox_config.config);
12
16
  var ComboboxNew = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
13
17
  var ComboboxComponent = function ComboboxComponent(props, ref) {
14
18
  if (props.items) {
15
- return /*#__PURE__*/React.createElement(ComboboxNew, _rollupPluginBabelHelpers.extends({
19
+ return /*#__PURE__*/React__default.default.createElement(ComboboxNew, _rollupPluginBabelHelpers.extends({
16
20
  ref: ref
17
21
  }, props));
18
22
  }
19
- return /*#__PURE__*/React.createElement(Combobox$1.Combobox, _rollupPluginBabelHelpers.extends({
23
+ return /*#__PURE__*/React__default.default.createElement(Combobox$1.Combobox, _rollupPluginBabelHelpers.extends({
20
24
  ref: ref
21
25
  }, props));
22
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.js","sources":["../../../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ComponentProps } from 'react';\nimport type { ItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';\nimport React from 'react';\n\nimport { config } from './Combobox.config';\nimport { Combobox as ComboboxOld } from './Legacy';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nconst ComboboxNew = component(mergedConfig);\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\n\ntype PropsNew<T extends ItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> &\n DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\ntype CommonProps<T extends ItemOption> = PropsOld | PropsNew<T>;\n\nconst ComboboxComponent = <T extends ItemOption>(props: CommonProps<T>, ref: React.ForwardedRef<HTMLInputElement>) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n};\n\nconst Combobox = fixedForwardRef(ComboboxComponent);\n\nexport { Combobox };\n"],"names":["mergedConfig","mergeConfig","comboboxNewConfig","config","ComboboxNew","component","ComboboxComponent","props","ref","items","React","createElement","_extends","ComboboxOld","Combobox","fixedForwardRef"],"mappings":";;;;;;;;;;AAaA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,+BAAiB,EAAEC,sBAAM,CAAC,CAAA;AAC3D,IAAMC,WAAW,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAW3C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CAA0BC,KAAqB,EAAEC,GAAyC,EAAK;EAClH,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACP,WAAW,EAAAQ,iCAAA,CAAA;AAACJ,MAAAA,GAAG,EAAEA,GAAAA;KAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACE,mBAAW,EAAAD,iCAAA,CAAA;AAACJ,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAA;AAED,IAAMO,QAAQ,gBAAGC,6BAAe,CAACT,iBAAiB;;;;"}
1
+ {"version":3,"file":"Combobox.js","sources":["../../../../src-css/components/Combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxNewConfig,\n component,\n mergeConfig,\n fixedForwardRef,\n} from '@salutejs/plasma-new-hope';\nimport type { ComponentProps } from 'react';\nimport type { ItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';\nimport React from 'react';\n\nimport { config } from './Combobox.config';\nimport { Combobox as ComboboxOld } from './Legacy';\n\nconst mergedConfig = mergeConfig(comboboxNewConfig, config);\nconst ComboboxNew = component(mergedConfig);\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\n\ntype PropsNew<T extends ItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> &\n DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\ntype CommonProps<T extends ItemOption> = PropsOld | PropsNew<T>;\n\nconst ComboboxComponent = <T extends ItemOption>(props: CommonProps<T>, ref: React.ForwardedRef<HTMLInputElement>) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n};\n\nconst Combobox = fixedForwardRef(ComboboxComponent);\n\nexport { Combobox };\n"],"names":["mergedConfig","mergeConfig","comboboxNewConfig","config","ComboboxNew","component","ComboboxComponent","props","ref","items","React","createElement","_extends","ComboboxOld","Combobox","fixedForwardRef"],"mappings":";;;;;;;;;;;;;;AAaA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,+BAAiB,EAAEC,sBAAM,CAAC,CAAA;AAC3D,IAAMC,WAAW,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAW3C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CAA0BC,KAAqB,EAAEC,GAAyC,EAAK;EAClH,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACP,WAAW,EAAAQ,iCAAA,CAAA;AAACJ,MAAAA,GAAG,EAAEA,GAAAA;KAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,GAAA;AAEA,EAAA,oBAAOG,sBAAA,CAAAC,aAAA,CAACE,mBAAW,EAAAD,iCAAA,CAAA;AAACJ,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAA;AAED,IAAMO,QAAQ,gBAAGC,6BAAe,CAACT,iBAAiB;;;;"}
@@ -1,4 +1,4 @@
1
- import './Combobox.config_g6rh1c.css';
1
+ require('./Combobox.config_g6rh1c.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Counter.config_3fg0sv.css';
1
+ require('./Counter.config_3fg0sv.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './DatePicker.config_p4vy0t.css';
1
+ require('./DatePicker.config_p4vy0t.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Divider.config_1i0hy8y.css';
1
+ require('./Divider.config_1i0hy8y.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Drawer.config_1kci8o2.css';
1
+ require('./Drawer.config_1kci8o2.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Dropdown.config_14bzlxh.css';
1
+ require('./Dropdown.config_14bzlxh.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7,10 +7,14 @@ var plasmaNewHope = require('@salutejs/plasma-new-hope');
7
7
  var React = require('react');
8
8
  var Dropdown_config = require('./Dropdown.config.js');
9
9
 
10
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
+
12
+ var React__default = /*#__PURE__*/_interopDefault(React);
13
+
10
14
  var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.dropdownConfig, Dropdown_config.config);
11
15
  var DropdownNewHope = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
12
16
  var DropdownComponent = function DropdownComponent(props, ref) {
13
- return /*#__PURE__*/React.createElement(DropdownNewHope, _rollupPluginBabelHelpers.extends({
17
+ return /*#__PURE__*/React__default.default.createElement(DropdownNewHope, _rollupPluginBabelHelpers.extends({
14
18
  ref: ref
15
19
  }, props));
16
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.js","sources":["../../../../src-css/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Dropdown.config';\n\nconst mergedConfig = mergeConfig(dropdownConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\ntype DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> &\n Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;\n\nconst DropdownComponent = <T extends DropdownItemOption>(\n props: DropdownProps<T>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <DropdownNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Dropdown = fixedForwardRef(DropdownComponent);\n\nexport { Dropdown };\n"],"names":["mergedConfig","mergeConfig","dropdownConfig","config","DropdownNewHope","component","DropdownComponent","props","ref","React","createElement","_extends","Dropdown","fixedForwardRef"],"mappings":";;;;;;;;;AAMA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,4BAAc,EAAEC,sBAAM,CAAC,CAAA;AACxD,IAAMC,eAAe,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAK/C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CACnBC,KAAuB,EACvBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,eAAe,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC5D,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,6BAAe,CAACP,iBAAiB;;;;"}
1
+ {"version":3,"file":"Dropdown.js","sources":["../../../../src-css/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import { dropdownConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope';\nimport type { DropdownItemOption, DropdownNewProps } from '@salutejs/plasma-new-hope';\nimport React, { ComponentProps, ForwardedRef } from 'react';\n\nimport { config } from './Dropdown.config';\n\nconst mergedConfig = mergeConfig(dropdownConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\ntype DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> &\n Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;\n\nconst DropdownComponent = <T extends DropdownItemOption>(\n props: DropdownProps<T>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return <DropdownNewHope ref={ref} {...(props as any)} />;\n};\n\nconst Dropdown = fixedForwardRef(DropdownComponent);\n\nexport { Dropdown };\n"],"names":["mergedConfig","mergeConfig","dropdownConfig","config","DropdownNewHope","component","DropdownComponent","props","ref","React","createElement","_extends","Dropdown","fixedForwardRef"],"mappings":";;;;;;;;;;;;;AAMA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,4BAAc,EAAEC,sBAAM,CAAC,CAAA;AACxD,IAAMC,eAAe,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAK/C,IAAMM,iBAAiB,GAAG,SAApBA,iBAAiBA,CACnBC,KAAuB,EACvBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACN,eAAe,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC5D,CAAC,CAAA;AAED,IAAMK,QAAQ,gBAAGC,6BAAe,CAACP,iBAAiB;;;;"}
@@ -9,11 +9,16 @@ var styled = require('styled-components');
9
9
  var plasmaIcons = require('@salutejs/plasma-icons');
10
10
  var plasmaCore = require('@salutejs/plasma-core');
11
11
 
12
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
13
+
14
+ var React__default = /*#__PURE__*/_interopDefault(React);
15
+ var styled__default = /*#__PURE__*/_interopDefault(styled);
16
+
12
17
  var _StyledCheck;
13
18
  var _excluded = ["value", "label", "color", "contentLeft", "isActive", "isHovered", "index", "onClick", "onHover", "onFocus", "items", "isDisabled", "style"];
14
19
  var mergedItemConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.dropdownItemOldConfig);
15
20
  var DropdownNewHopeItem = /*#__PURE__*/plasmaNewHope.component(mergedItemConfig);
16
- var StyledCheck = /*#__PURE__*/styled(plasmaIcons.IconDone).withConfig({
21
+ var StyledCheck = /*#__PURE__*/styled__default.default(plasmaIcons.IconDone).withConfig({
17
22
  componentId: "plasma-web__sc-1kwedk5-0"
18
23
  })(["margin-left:auto;pointer-events:none;margin-right:-0.5rem;"]);
19
24
  var DropdownItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -44,7 +49,7 @@ var DropdownItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
44
49
  onHover(index);
45
50
  }
46
51
  };
47
- return /*#__PURE__*/React.createElement(DropdownNewHopeItem, _rollupPluginBabelHelpers.extends({}, rest, {
52
+ return /*#__PURE__*/React__default.default.createElement(DropdownNewHopeItem, _rollupPluginBabelHelpers.extends({}, rest, {
48
53
  value: value,
49
54
  text: label,
50
55
  ref: ref,
@@ -52,7 +57,7 @@ var DropdownItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
52
57
  color: color
53
58
  }),
54
59
  contentLeft: contentLeft,
55
- contentRight: isActive ? _StyledCheck || (_StyledCheck = /*#__PURE__*/React.createElement(StyledCheck, {
60
+ contentRight: isActive ? _StyledCheck || (_StyledCheck = /*#__PURE__*/React__default.default.createElement(StyledCheck, {
56
61
  size: "s",
57
62
  color: plasmaCore.accent
58
63
  })) : undefined,
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.js","sources":["../../../../../src-css/components/Dropdown/components/DropdownItem.tsx"],"sourcesContent":["import React, { forwardRef, SyntheticEvent } from 'react';\nimport { DropdownItemProps } from '@salutejs/plasma-hope';\nimport { component, dropdownItemOldConfig, mergeConfig } from '@salutejs/plasma-new-hope';\nimport styled from 'styled-components';\nimport { IconDone } from '@salutejs/plasma-icons';\nimport { accent } from '@salutejs/plasma-core';\n\nconst mergedItemConfig = mergeConfig(dropdownItemOldConfig);\nexport const DropdownNewHopeItem = component(mergedItemConfig);\n\nconst StyledCheck = styled(IconDone)`\n margin-left: auto;\n pointer-events: none;\n margin-right: -0.5rem;\n`;\n\nexport const DropdownItem = forwardRef<HTMLDivElement, DropdownItemProps>((props, ref) => {\n const {\n value,\n label,\n color,\n contentLeft,\n isActive,\n isHovered,\n index,\n onClick,\n onHover,\n onFocus,\n items,\n isDisabled,\n style,\n ...rest\n } = props;\n\n const handleClick = (e: SyntheticEvent<Element, Event>) => {\n if (onClick) {\n onClick({ value, label, color, contentLeft }, e);\n }\n };\n\n const handleHover = () => {\n if (onHover) {\n onHover(index);\n }\n };\n\n return (\n <DropdownNewHopeItem\n {...(rest as any)}\n value={value}\n text={label}\n ref={ref}\n style={{ ...style, color }}\n contentLeft={contentLeft}\n contentRight={isActive ? <StyledCheck size=\"s\" color={accent} /> : undefined}\n onClick={handleClick}\n onMouseOver={handleHover}\n onFocus={onFocus}\n disabled={isDisabled}\n />\n );\n});\n"],"names":["mergedItemConfig","mergeConfig","dropdownItemOldConfig","DropdownNewHopeItem","component","StyledCheck","styled","IconDone","withConfig","componentId","DropdownItem","forwardRef","props","ref","value","label","color","contentLeft","isActive","index","onClick","onHover","onFocus","isDisabled","style","rest","_objectWithoutProperties","_excluded","handleClick","e","handleHover","React","createElement","_extends","text","_objectSpread","contentRight","_StyledCheck","size","accent","undefined","onMouseOver","disabled"],"mappings":";;;;;;;;;;;;;AAOA,IAAMA,gBAAgB,gBAAGC,yBAAW,CAACC,mCAAqB,CAAC,CAAA;IAC9CC,mBAAmB,gBAAGC,uBAAS,CAACJ,gBAAgB,EAAC;AAE9D,IAAMK,WAAW,gBAAGC,MAAM,CAACC,oBAAQ,CAAC,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,0BAAA;AAAA,CAInC,CAAA,CAAA,CAAA,4DAAA,CAAA,CAAA,CAAA;AAEM,IAAMC,YAAY,gBAAGC,gBAAU,CAAoC,UAACC,KAAK,EAAEC,GAAG,EAAK;AACtF,EAAA,IACIC,KAAK,GAcLF,KAAK,CAdLE,KAAK,CAAA;IACLC,KAAK,GAaLH,KAAK,CAbLG,KAAK,CAAA;IACLC,KAAK,GAYLJ,KAAK,CAZLI,KAAK,CAAA;IACLC,WAAW,GAWXL,KAAK,CAXLK,WAAW,CAAA;IACXC,QAAQ,GAURN,KAAK,CAVLM,QAAQ,CAAA;IAERC,KAAK,GAQLP,KAAK,CARLO,KAAK,CAAA;IACLC,OAAO,GAOPR,KAAK,CAPLQ,OAAO,CAAA;IACPC,OAAO,GAMPT,KAAK,CANLS,OAAO,CAAA;IACPC,OAAO,GAKPV,KAAK,CALLU,OAAO,CAAA;IAEPC,UAAU,GAGVX,KAAK,CAHLW,UAAU,CAAA;IACVC,KAAK,GAELZ,KAAK,CAFLY,KAAK,CAAA;AACFC,IAAAA,IAAI,GAAAC,iDAAA,CACPd,KAAK,EAAAe,SAAA,EAAA;AAET,EAAA,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,CAAiC,EAAK;AACvD,IAAA,IAAIT,OAAO,EAAE;AACTA,MAAAA,OAAO,CAAC;AAAEN,QAAAA,KAAK,EAALA,KAAK;AAAEC,QAAAA,KAAK,EAALA,KAAK;AAAEC,QAAAA,KAAK,EAALA,KAAK;AAAEC,QAAAA,WAAW,EAAXA,WAAAA;OAAa,EAAEY,CAAC,CAAC,CAAA;AACpD,KAAA;GACH,CAAA;AAED,EAAA,IAAMC,WAAW,GAAG,SAAdA,WAAWA,GAAS;AACtB,IAAA,IAAIT,OAAO,EAAE;MACTA,OAAO,CAACF,KAAK,CAAC,CAAA;AAClB,KAAA;GACH,CAAA;EAED,oBACIY,KAAA,CAAAC,aAAA,CAAC7B,mBAAmB,EAAA8B,iCAAA,KACXR,IAAI,EAAA;AACTX,IAAAA,KAAK,EAAEA,KAAM;AACboB,IAAAA,IAAI,EAAEnB,KAAM;AACZF,IAAAA,GAAG,EAAEA,GAAI;AACTW,IAAAA,KAAK,EAAAW,uCAAA,CAAAA,uCAAA,KAAOX,KAAK,CAAA,EAAA,EAAA,EAAA;AAAER,MAAAA,KAAK,EAALA,KAAAA;KAAQ,CAAA;AAC3BC,IAAAA,WAAW,EAAEA,WAAY;IACzBmB,YAAY,EAAElB,QAAQ,GAAAmB,YAAA,KAAAA,YAAA,gBAAGN,KAAA,CAAAC,aAAA,CAAC3B,WAAW,EAAA;AAACiC,MAAAA,IAAI,EAAC,GAAG;AAACtB,MAAAA,KAAK,EAAEuB,iBAAAA;KAAS,CAAC,IAAGC,SAAU;AAC7EpB,IAAAA,OAAO,EAAEQ,WAAY;AACrBa,IAAAA,WAAW,EAAEX,WAAY;AACzBR,IAAAA,OAAO,EAAEA,OAAQ;AACjBoB,IAAAA,QAAQ,EAAEnB,UAAAA;AAAW,GAAA,CACxB,CAAC,CAAA;AAEV,CAAC;;;;;"}
1
+ {"version":3,"file":"DropdownItem.js","sources":["../../../../../src-css/components/Dropdown/components/DropdownItem.tsx"],"sourcesContent":["import React, { forwardRef, SyntheticEvent } from 'react';\nimport { DropdownItemProps } from '@salutejs/plasma-hope';\nimport { component, dropdownItemOldConfig, mergeConfig } from '@salutejs/plasma-new-hope';\nimport styled from 'styled-components';\nimport { IconDone } from '@salutejs/plasma-icons';\nimport { accent } from '@salutejs/plasma-core';\n\nconst mergedItemConfig = mergeConfig(dropdownItemOldConfig);\nexport const DropdownNewHopeItem = component(mergedItemConfig);\n\nconst StyledCheck = styled(IconDone)`\n margin-left: auto;\n pointer-events: none;\n margin-right: -0.5rem;\n`;\n\nexport const DropdownItem = forwardRef<HTMLDivElement, DropdownItemProps>((props, ref) => {\n const {\n value,\n label,\n color,\n contentLeft,\n isActive,\n isHovered,\n index,\n onClick,\n onHover,\n onFocus,\n items,\n isDisabled,\n style,\n ...rest\n } = props;\n\n const handleClick = (e: SyntheticEvent<Element, Event>) => {\n if (onClick) {\n onClick({ value, label, color, contentLeft }, e);\n }\n };\n\n const handleHover = () => {\n if (onHover) {\n onHover(index);\n }\n };\n\n return (\n <DropdownNewHopeItem\n {...(rest as any)}\n value={value}\n text={label}\n ref={ref}\n style={{ ...style, color }}\n contentLeft={contentLeft}\n contentRight={isActive ? <StyledCheck size=\"s\" color={accent} /> : undefined}\n onClick={handleClick}\n onMouseOver={handleHover}\n onFocus={onFocus}\n disabled={isDisabled}\n />\n );\n});\n"],"names":["mergedItemConfig","mergeConfig","dropdownItemOldConfig","DropdownNewHopeItem","component","StyledCheck","styled","IconDone","withConfig","componentId","DropdownItem","forwardRef","props","ref","value","label","color","contentLeft","isActive","index","onClick","onHover","onFocus","isDisabled","style","rest","_objectWithoutProperties","_excluded","handleClick","e","handleHover","React","createElement","_extends","text","_objectSpread","contentRight","_StyledCheck","size","accent","undefined","onMouseOver","disabled"],"mappings":";;;;;;;;;;;;;;;;;;AAOA,IAAMA,gBAAgB,gBAAGC,yBAAW,CAACC,mCAAqB,CAAC,CAAA;IAC9CC,mBAAmB,gBAAGC,uBAAS,CAACJ,gBAAgB,EAAC;AAE9D,IAAMK,WAAW,gBAAGC,uBAAM,CAACC,oBAAQ,CAAC,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,0BAAA;AAAA,CAInC,CAAA,CAAA,CAAA,4DAAA,CAAA,CAAA,CAAA;AAEM,IAAMC,YAAY,gBAAGC,gBAAU,CAAoC,UAACC,KAAK,EAAEC,GAAG,EAAK;AACtF,EAAA,IACIC,KAAK,GAcLF,KAAK,CAdLE,KAAK,CAAA;IACLC,KAAK,GAaLH,KAAK,CAbLG,KAAK,CAAA;IACLC,KAAK,GAYLJ,KAAK,CAZLI,KAAK,CAAA;IACLC,WAAW,GAWXL,KAAK,CAXLK,WAAW,CAAA;IACXC,QAAQ,GAURN,KAAK,CAVLM,QAAQ,CAAA;IAERC,KAAK,GAQLP,KAAK,CARLO,KAAK,CAAA;IACLC,OAAO,GAOPR,KAAK,CAPLQ,OAAO,CAAA;IACPC,OAAO,GAMPT,KAAK,CANLS,OAAO,CAAA;IACPC,OAAO,GAKPV,KAAK,CALLU,OAAO,CAAA;IAEPC,UAAU,GAGVX,KAAK,CAHLW,UAAU,CAAA;IACVC,KAAK,GAELZ,KAAK,CAFLY,KAAK,CAAA;AACFC,IAAAA,IAAI,GAAAC,iDAAA,CACPd,KAAK,EAAAe,SAAA,EAAA;AAET,EAAA,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,CAAiC,EAAK;AACvD,IAAA,IAAIT,OAAO,EAAE;AACTA,MAAAA,OAAO,CAAC;AAAEN,QAAAA,KAAK,EAALA,KAAK;AAAEC,QAAAA,KAAK,EAALA,KAAK;AAAEC,QAAAA,KAAK,EAALA,KAAK;AAAEC,QAAAA,WAAW,EAAXA,WAAAA;OAAa,EAAEY,CAAC,CAAC,CAAA;AACpD,KAAA;GACH,CAAA;AAED,EAAA,IAAMC,WAAW,GAAG,SAAdA,WAAWA,GAAS;AACtB,IAAA,IAAIT,OAAO,EAAE;MACTA,OAAO,CAACF,KAAK,CAAC,CAAA;AAClB,KAAA;GACH,CAAA;EAED,oBACIY,sBAAA,CAAAC,aAAA,CAAC7B,mBAAmB,EAAA8B,iCAAA,KACXR,IAAI,EAAA;AACTX,IAAAA,KAAK,EAAEA,KAAM;AACboB,IAAAA,IAAI,EAAEnB,KAAM;AACZF,IAAAA,GAAG,EAAEA,GAAI;AACTW,IAAAA,KAAK,EAAAW,uCAAA,CAAAA,uCAAA,KAAOX,KAAK,CAAA,EAAA,EAAA,EAAA;AAAER,MAAAA,KAAK,EAALA,KAAAA;KAAQ,CAAA;AAC3BC,IAAAA,WAAW,EAAEA,WAAY;IACzBmB,YAAY,EAAElB,QAAQ,GAAAmB,YAAA,KAAAA,YAAA,gBAAGN,sBAAA,CAAAC,aAAA,CAAC3B,WAAW,EAAA;AAACiC,MAAAA,IAAI,EAAC,GAAG;AAACtB,MAAAA,KAAK,EAAEuB,iBAAAA;KAAS,CAAC,IAAGC,SAAU;AAC7EpB,IAAAA,OAAO,EAAEQ,WAAY;AACrBa,IAAAA,WAAW,EAAEX,WAAY;AACzBR,IAAAA,OAAO,EAAEA,OAAQ;AACjBoB,IAAAA,QAAQ,EAAEnB,UAAAA;AAAW,GAAA,CACxB,CAAC,CAAA;AAEV,CAAC;;;;;"}
@@ -4,7 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var styled = require('styled-components');
6
6
 
7
- var DropdownList = /*#__PURE__*/styled.ul.withConfig({
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var styled__default = /*#__PURE__*/_interopDefault(styled);
10
+
11
+ var DropdownList = /*#__PURE__*/styled__default.default.ul.withConfig({
8
12
  componentId: "plasma-web__sc-1t9hxh8-0"
9
13
  })(["margin:0;padding:0;"]);
10
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownList.js","sources":["../../../../../src-css/components/Dropdown/components/DropdownList.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const DropdownList = styled.ul`\n margin: 0;\n padding: 0;\n`;\n"],"names":["DropdownList","styled","ul","withConfig","componentId"],"mappings":";;;;;;IAEaA,YAAY,gBAAGC,MAAM,CAACC,EAAE,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,0BAAA;AAAA,CAGpC,CAAA,CAAA,CAAA,qBAAA,CAAA;;;;"}
1
+ {"version":3,"file":"DropdownList.js","sources":["../../../../../src-css/components/Dropdown/components/DropdownList.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const DropdownList = styled.ul`\n margin: 0;\n padding: 0;\n`;\n"],"names":["DropdownList","styled","ul","withConfig","componentId"],"mappings":";;;;;;;;;;IAEaA,YAAY,gBAAGC,uBAAM,CAACC,EAAE,CAAAC,UAAA,CAAA;EAAAC,WAAA,EAAA,0BAAA;AAAA,CAGpC,CAAA,CAAA,CAAA,qBAAA,CAAA;;;;"}
@@ -1,4 +1,4 @@
1
- import './DropdownOld.config_1sm61um.css';
1
+ require('./DropdownOld.config_1sm61um.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7,6 +7,10 @@ var React = require('react');
7
7
  var plasmaNewHope = require('@salutejs/plasma-new-hope');
8
8
  var DropdownOld_config = require('./DropdownOld.config.js');
9
9
 
10
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
+
12
+ var React__default = /*#__PURE__*/_interopDefault(React);
13
+
10
14
  var _excluded = ["trigger", "children", "opened", "isOpen", "disclosure", "onToggle", "placement", "offsetTop"];
11
15
  var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.dropdownOldConfig, DropdownOld_config.config);
12
16
  var DropdownNewHope = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
@@ -21,7 +25,7 @@ var DropdownPopup = /*#__PURE__*/React.forwardRef(function (props, ref) {
21
25
  offsetTop = props.offsetTop,
22
26
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
23
27
  var offsetAtTop = typeof offsetTop === 'number' ? offsetTop : 0;
24
- return /*#__PURE__*/React.createElement(DropdownNewHope, _rollupPluginBabelHelpers.extends({}, rest, {
28
+ return /*#__PURE__*/React__default.default.createElement(DropdownNewHope, _rollupPluginBabelHelpers.extends({}, rest, {
25
29
  ref: ref,
26
30
  onToggle: onToggle,
27
31
  target: disclosure,
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownPopup.js","sources":["../../../../../src-css/components/Dropdown/components/DropdownPopup.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { DropdownPopupProps } from '@salutejs/plasma-hope';\nimport { component, dropdownOldConfig, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './DropdownOld.config';\n\nconst mergedConfig = mergeConfig(dropdownOldConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\nexport const DropdownPopup = forwardRef<HTMLDivElement, DropdownPopupProps>((props, ref) => {\n const { trigger, children, opened, isOpen, disclosure, onToggle, placement, offsetTop, ...rest } = props;\n\n const offsetAtTop = typeof offsetTop === 'number' ? offsetTop : 0;\n\n return (\n <DropdownNewHope\n {...rest}\n ref={ref}\n onToggle={onToggle}\n target={disclosure}\n opened={opened}\n isOpen={isOpen}\n trigger={trigger}\n placement={placement}\n offset={[offsetAtTop, 0]}\n >\n {children}\n </DropdownNewHope>\n );\n});\n"],"names":["mergedConfig","mergeConfig","dropdownOldConfig","config","DropdownNewHope","component","DropdownPopup","forwardRef","props","ref","trigger","children","opened","isOpen","disclosure","onToggle","placement","offsetTop","rest","_objectWithoutProperties","_excluded","offsetAtTop","React","createElement","_extends","target","offset"],"mappings":";;;;;;;;;;AAMA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,+BAAiB,EAAEC,yBAAM,CAAC,CAAA;AAC3D,IAAMC,eAAe,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAExC,IAAMM,aAAa,gBAAGC,gBAAU,CAAqC,UAACC,KAAK,EAAEC,GAAG,EAAK;AACxF,EAAA,IAAQC,OAAO,GAAoFF,KAAK,CAAhGE,OAAO;IAAEC,QAAQ,GAA0EH,KAAK,CAAvFG,QAAQ;IAAEC,MAAM,GAAkEJ,KAAK,CAA7EI,MAAM;IAAEC,MAAM,GAA0DL,KAAK,CAArEK,MAAM;IAAEC,UAAU,GAA8CN,KAAK,CAA7DM,UAAU;IAAEC,QAAQ,GAAoCP,KAAK,CAAjDO,QAAQ;IAAEC,SAAS,GAAyBR,KAAK,CAAvCQ,SAAS;IAAEC,SAAS,GAAcT,KAAK,CAA5BS,SAAS;AAAKC,IAAAA,IAAI,GAAAC,iDAAA,CAAKX,KAAK,EAAAY,SAAA,CAAA,CAAA;EAExG,IAAMC,WAAW,GAAG,OAAOJ,SAAS,KAAK,QAAQ,GAAGA,SAAS,GAAG,CAAC,CAAA;EAEjE,oBACIK,KAAA,CAAAC,aAAA,CAACnB,eAAe,EAAAoB,iCAAA,KACRN,IAAI,EAAA;AACRT,IAAAA,GAAG,EAAEA,GAAI;AACTM,IAAAA,QAAQ,EAAEA,QAAS;AACnBU,IAAAA,MAAM,EAAEX,UAAW;AACnBF,IAAAA,MAAM,EAAEA,MAAO;AACfC,IAAAA,MAAM,EAAEA,MAAO;AACfH,IAAAA,OAAO,EAAEA,OAAQ;AACjBM,IAAAA,SAAS,EAAEA,SAAU;AACrBU,IAAAA,MAAM,EAAE,CAACL,WAAW,EAAE,CAAC,CAAA;AAAE,GAAA,CAAA,EAExBV,QACY,CAAC,CAAA;AAE1B,CAAC;;;;"}
1
+ {"version":3,"file":"DropdownPopup.js","sources":["../../../../../src-css/components/Dropdown/components/DropdownPopup.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { DropdownPopupProps } from '@salutejs/plasma-hope';\nimport { component, dropdownOldConfig, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './DropdownOld.config';\n\nconst mergedConfig = mergeConfig(dropdownOldConfig, config);\nconst DropdownNewHope = component(mergedConfig);\n\nexport const DropdownPopup = forwardRef<HTMLDivElement, DropdownPopupProps>((props, ref) => {\n const { trigger, children, opened, isOpen, disclosure, onToggle, placement, offsetTop, ...rest } = props;\n\n const offsetAtTop = typeof offsetTop === 'number' ? offsetTop : 0;\n\n return (\n <DropdownNewHope\n {...rest}\n ref={ref}\n onToggle={onToggle}\n target={disclosure}\n opened={opened}\n isOpen={isOpen}\n trigger={trigger}\n placement={placement}\n offset={[offsetAtTop, 0]}\n >\n {children}\n </DropdownNewHope>\n );\n});\n"],"names":["mergedConfig","mergeConfig","dropdownOldConfig","config","DropdownNewHope","component","DropdownPopup","forwardRef","props","ref","trigger","children","opened","isOpen","disclosure","onToggle","placement","offsetTop","rest","_objectWithoutProperties","_excluded","offsetAtTop","React","createElement","_extends","target","offset"],"mappings":";;;;;;;;;;;;;;AAMA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,+BAAiB,EAAEC,yBAAM,CAAC,CAAA;AAC3D,IAAMC,eAAe,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAExC,IAAMM,aAAa,gBAAGC,gBAAU,CAAqC,UAACC,KAAK,EAAEC,GAAG,EAAK;AACxF,EAAA,IAAQC,OAAO,GAAoFF,KAAK,CAAhGE,OAAO;IAAEC,QAAQ,GAA0EH,KAAK,CAAvFG,QAAQ;IAAEC,MAAM,GAAkEJ,KAAK,CAA7EI,MAAM;IAAEC,MAAM,GAA0DL,KAAK,CAArEK,MAAM;IAAEC,UAAU,GAA8CN,KAAK,CAA7DM,UAAU;IAAEC,QAAQ,GAAoCP,KAAK,CAAjDO,QAAQ;IAAEC,SAAS,GAAyBR,KAAK,CAAvCQ,SAAS;IAAEC,SAAS,GAAcT,KAAK,CAA5BS,SAAS;AAAKC,IAAAA,IAAI,GAAAC,iDAAA,CAAKX,KAAK,EAAAY,SAAA,CAAA,CAAA;EAExG,IAAMC,WAAW,GAAG,OAAOJ,SAAS,KAAK,QAAQ,GAAGA,SAAS,GAAG,CAAC,CAAA;EAEjE,oBACIK,sBAAA,CAAAC,aAAA,CAACnB,eAAe,EAAAoB,iCAAA,KACRN,IAAI,EAAA;AACRT,IAAAA,GAAG,EAAEA,GAAI;AACTM,IAAAA,QAAQ,EAAEA,QAAS;AACnBU,IAAAA,MAAM,EAAEX,UAAW;AACnBF,IAAAA,MAAM,EAAEA,MAAO;AACfC,IAAAA,MAAM,EAAEA,MAAO;AACfH,IAAAA,OAAO,EAAEA,OAAQ;AACjBM,IAAAA,SAAS,EAAEA,SAAU;AACrBU,IAAAA,MAAM,EAAE,CAACL,WAAW,EAAE,CAAC,CAAA;AAAE,GAAA,CAAA,EAExBV,QACY,CAAC,CAAA;AAE1B,CAAC;;;;"}
@@ -1,4 +1,4 @@
1
- import './Dropzone.config_v0t4xn.css';
1
+ require('./Dropzone.config_v0t4xn.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Editable.config_r8fa0f.css';
1
+ require('./Editable.config_r8fa0f.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './EmptyState.config_1lhq12u.css';
1
+ require('./EmptyState.config_1lhq12u.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Grid.config_1q59g76.css';
1
+ require('./Grid.config_1q59g76.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './IconButton.config_1o8fpqv.css';
1
+ require('./IconButton.config_1o8fpqv.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Indicator.config_ltng7c.css';
1
+ require('./Indicator.config_ltng7c.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Link.config_q8zx6f.css';
1
+ require('./Link.config_q8zx6f.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Modal.config_32nvcp.css';
1
+ require('./Modal.config_32nvcp.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Note.config_1psv03r.css';
1
+ require('./Note.config_1psv03r.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Notification.config_14vo9bu.css';
1
+ require('./Notification.config_14vo9bu.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -6,6 +6,10 @@ var React = require('react');
6
6
  var plasmaNewHope = require('@salutejs/plasma-new-hope');
7
7
  var Notification_config = require('./Notification.config.js');
8
8
 
9
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
+
11
+ var React__default = /*#__PURE__*/_interopDefault(React);
12
+
9
13
  var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.notificationConfig, Notification_config.config);
10
14
  var Notification = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
11
15
  var NotificationsProvider = function NotificationsProvider(_ref) {
@@ -13,7 +17,7 @@ var NotificationsProvider = function NotificationsProvider(_ref) {
13
17
  _ref$frame = _ref.frame,
14
18
  frame = _ref$frame === void 0 ? 'document' : _ref$frame,
15
19
  placement = _ref.placement;
16
- return /*#__PURE__*/React.createElement(plasmaNewHope.NotificationsProvider, {
20
+ return /*#__PURE__*/React__default.default.createElement(plasmaNewHope.NotificationsProvider, {
17
21
  config: mergedConfig,
18
22
  frame: frame,
19
23
  placement: placement
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.js","sources":["../../../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport {\n NotificationPlacement,\n notificationConfig,\n NotificationsProvider as Provider,\n component,\n mergeConfig,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Notification.config';\n\nexport type { NotificationPlacement };\n\nconst mergedConfig = mergeConfig(notificationConfig, config);\n\nexport const Notification = component(mergedConfig);\n\nexport const NotificationsProvider: React.FC<{\n children: ReactNode;\n frame?: string;\n placement?: NotificationPlacement;\n}> = ({ children, frame = 'document', placement }) => {\n return (\n <Provider config={mergedConfig} frame={frame} placement={placement}>\n {children}\n </Provider>\n );\n};\n"],"names":["mergedConfig","mergeConfig","notificationConfig","config","Notification","component","NotificationsProvider","_ref","children","_ref$frame","frame","placement","React","createElement","Provider"],"mappings":";;;;;;;;AAaA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,gCAAkB,EAAEC,0BAAM,CAAC,CAAA;IAE/CC,YAAY,gBAAGC,uBAAS,CAACL,YAAY,EAAC;IAEtCM,qBAIX,GAAG,SAJQA,qBAIXA,CAAAC,IAAA,EAAoD;AAAA,EAAA,IAA9CC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,UAAA,GAAAF,IAAA,CAAEG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,UAAU,GAAAA,UAAA;IAAEE,SAAS,GAAAJ,IAAA,CAATI,SAAS,CAAA;AAC3C,EAAA,oBACIC,KAAA,CAAAC,aAAA,CAACC,mCAAQ,EAAA;AAACX,IAAAA,MAAM,EAAEH,YAAa;AAACU,IAAAA,KAAK,EAAEA,KAAM;AAACC,IAAAA,SAAS,EAAEA,SAAAA;AAAU,GAAA,EAC9DH,QACK,CAAC,CAAA;AAEnB;;;;;"}
1
+ {"version":3,"file":"Notification.js","sources":["../../../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport {\n NotificationPlacement,\n notificationConfig,\n NotificationsProvider as Provider,\n component,\n mergeConfig,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Notification.config';\n\nexport type { NotificationPlacement };\n\nconst mergedConfig = mergeConfig(notificationConfig, config);\n\nexport const Notification = component(mergedConfig);\n\nexport const NotificationsProvider: React.FC<{\n children: ReactNode;\n frame?: string;\n placement?: NotificationPlacement;\n}> = ({ children, frame = 'document', placement }) => {\n return (\n <Provider config={mergedConfig} frame={frame} placement={placement}>\n {children}\n </Provider>\n );\n};\n"],"names":["mergedConfig","mergeConfig","notificationConfig","config","Notification","component","NotificationsProvider","_ref","children","_ref$frame","frame","placement","React","createElement","Provider"],"mappings":";;;;;;;;;;;;AAaA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,gCAAkB,EAAEC,0BAAM,CAAC,CAAA;IAE/CC,YAAY,gBAAGC,uBAAS,CAACL,YAAY,EAAC;IAEtCM,qBAIX,GAAG,SAJQA,qBAIXA,CAAAC,IAAA,EAAoD;AAAA,EAAA,IAA9CC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,UAAA,GAAAF,IAAA,CAAEG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,UAAU,GAAAA,UAAA;IAAEE,SAAS,GAAAJ,IAAA,CAATI,SAAS,CAAA;AAC3C,EAAA,oBACIC,sBAAA,CAAAC,aAAA,CAACC,mCAAQ,EAAA;AAACX,IAAAA,MAAM,EAAEH,YAAa;AAACU,IAAAA,KAAK,EAAEA,KAAM;AAACC,IAAAA,SAAS,EAAEA,SAAAA;AAAU,GAAA,EAC9DH,QACK,CAAC,CAAA;AAEnB;;;;;"}
@@ -1,4 +1,4 @@
1
- import './NumberInput.config_1j3do2r.css';
1
+ require('./NumberInput.config_1j3do2r.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Pagination.config_1fqgkuu.css';
1
+ require('./Pagination.config_1fqgkuu.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Popover.config_14o0rv7.css';
1
+ require('./Popover.config_14o0rv7.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Progress.config_1ksry05.css';
1
+ require('./Progress.config_1ksry05.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Radiobox.config_139reb8.css';
1
+ require('./Radiobox.config_139reb8.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Range.config_tettq8.css';
1
+ require('./Range.config_tettq8.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Rating.config_m8j095.css';
1
+ require('./Rating.config_m8j095.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './SegmentGroup.config_8spc9u.css';
1
+ require('./SegmentGroup.config_8spc9u.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './SegmentItem.config_11wl5q3.css';
1
+ require('./SegmentItem.config_11wl5q3.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Select.config_73tyzz.css';
1
+ require('./Select.config_73tyzz.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7,10 +7,14 @@ var plasmaNewHope = require('@salutejs/plasma-new-hope');
7
7
  var React = require('react');
8
8
  var Select_config = require('./Select.config.js');
9
9
 
10
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
+
12
+ var React__default = /*#__PURE__*/_interopDefault(React);
13
+
10
14
  var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.selectConfig, Select_config.config);
11
15
  var SelectNewHope = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
12
16
  var SelectComponent = function SelectComponent(props, ref) {
13
- return /*#__PURE__*/React.createElement(SelectNewHope, _rollupPluginBabelHelpers.extends({
17
+ return /*#__PURE__*/React__default.default.createElement(SelectNewHope, _rollupPluginBabelHelpers.extends({
14
18
  ref: ref
15
19
  }, props));
16
20
  };
@@ -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';\nimport React, { ComponentProps, ForwardedRef } from 'react';\nimport type {\n DropdownNodeSelect,\n MergedSelectProps as MergedSelectPropsNewHope,\n DistributiveOmit,\n DistributivePick,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\ntype SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<\n MergedSelectPropsNewHope<T, K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <T, K extends DropdownNodeSelect>(\n props: SelectProps<T, K>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\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,yBAAW,CAACC,0BAAY,EAAEC,oBAAM,CAAC,CAAA;AACtD,IAAMC,aAAa,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAQ7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CACjBC,KAAwB,EACxBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC1D,CAAC,CAAA;AAED,IAAMK,MAAM,gBAAGC,6BAAe,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';\nimport React, { ComponentProps, ForwardedRef } from 'react';\nimport type {\n DropdownNodeSelect,\n MergedSelectProps as MergedSelectPropsNewHope,\n DistributiveOmit,\n DistributivePick,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Select.config';\n\nconst mergedConfig = mergeConfig(selectConfig, config);\nconst SelectNewHope = component(mergedConfig);\n\ntype SelectProps<T, K extends DropdownNodeSelect> = DistributiveOmit<\n MergedSelectPropsNewHope<T, K>,\n 'size' | 'view' | 'chipView' | 'disabled'\n> &\n DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;\n\nconst SelectComponent = <T, K extends DropdownNodeSelect>(\n props: SelectProps<T, K>,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\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,yBAAW,CAACC,0BAAY,EAAEC,oBAAM,CAAC,CAAA;AACtD,IAAMC,aAAa,gBAAGC,uBAAS,CAACL,YAAY,CAAC,CAAA;AAQ7C,IAAMM,eAAe,GAAG,SAAlBA,eAAeA,CACjBC,KAAwB,EACxBC,GAAoC,EACnC;AACD,EAAA,oBAAOC,sBAAA,CAAAC,aAAA,CAACN,aAAa,EAAAO,iCAAA,CAAA;AAACH,IAAAA,GAAG,EAAEA,GAAAA;GAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AAC1D,CAAC,CAAA;AAED,IAAMK,MAAM,gBAAGC,6BAAe,CAACP,eAAe;;;;"}
@@ -1,4 +1,4 @@
1
- import './Sheet.config_1anu74e.css';
1
+ require('./Sheet.config_1anu74e.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './LineSkeleton.config_1fkfzjy.css';
1
+ require('./LineSkeleton.config_1fkfzjy.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Slider.config_1fdel2j.css';
1
+ require('./Slider.config_1fdel2j.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Spinner.config_kv9h01.css';
1
+ require('./Spinner.config_kv9h01.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Steps.config_4mdg8k.css';
1
+ require('./Steps.config_4mdg8k.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- import './Switch.config_ce8y19.css';
1
+ require('./Switch.config_ce8y19.css');
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });