@expressms/smartapp-ui 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/README.md +1 -1
  2. package/build/main/assets/icons/story-loader.svg +3 -0
  3. package/build/main/constants/constants.d.ts +13 -14
  4. package/build/main/constants/constants.js +15 -14
  5. package/build/main/constants/constants.js.map +1 -0
  6. package/build/main/constants/index.d.ts +1 -0
  7. package/build/main/constants/index.js +2 -0
  8. package/build/main/constants/index.js.map +1 -0
  9. package/build/main/constants/types.d.ts +8 -0
  10. package/build/main/constants/types.js +2 -0
  11. package/build/main/constants/types.js.map +1 -0
  12. package/build/main/helpers/index.d.ts +2 -1
  13. package/build/main/helpers/index.js +3 -2
  14. package/build/main/helpers/index.js.map +1 -0
  15. package/build/main/index.d.ts +1 -0
  16. package/build/main/index.js +2 -0
  17. package/build/main/index.js.map +1 -0
  18. package/build/main/styles/index.d.ts +1 -0
  19. package/build/main/styles/index.js +2 -0
  20. package/build/main/styles/index.js.map +1 -0
  21. package/build/main/styles/main.js +0 -0
  22. package/build/main/styles/styles.scss +13 -0
  23. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +1 -1
  24. package/build/main//321/201omponents/ActionModal/ActionModal.js +4 -3
  25. package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
  26. package/build/main//321/201omponents/ActionModal/index.js +1 -0
  27. package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
  28. package/build/main//321/201omponents/ActionModal/types.d.ts +2 -3
  29. package/build/main//321/201omponents/ActionModal/types.js +1 -0
  30. package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
  31. package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +1 -1
  32. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +6 -4
  33. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
  34. package/build/main//321/201omponents/AttachedFile/index.js +1 -0
  35. package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
  36. package/build/main//321/201omponents/AttachedFile/types.js +1 -0
  37. package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
  38. package/build/main//321/201omponents/Avatar/Avatar.d.ts +1 -1
  39. package/build/main//321/201omponents/Avatar/Avatar.js +3 -1
  40. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
  41. package/build/main//321/201omponents/Avatar/index.js +1 -0
  42. package/build/main//321/201omponents/Avatar/index.js.map +1 -0
  43. package/build/main//321/201omponents/Avatar/types.js +1 -0
  44. package/build/main//321/201omponents/Avatar/types.js.map +1 -0
  45. package/build/main//321/201omponents/Button/Button.d.ts +2 -2
  46. package/build/main//321/201omponents/Button/Button.js +3 -1
  47. package/build/main//321/201omponents/Button/Button.js.map +1 -0
  48. package/build/main//321/201omponents/Button/index.js +1 -0
  49. package/build/main//321/201omponents/Button/index.js.map +1 -0
  50. package/build/main//321/201omponents/Button/types.d.ts +2 -2
  51. package/build/main//321/201omponents/Button/types.js +1 -0
  52. package/build/main//321/201omponents/Button/types.js.map +1 -0
  53. package/build/main//321/201omponents/Calendar/Calendar.d.ts +1 -1
  54. package/build/main//321/201omponents/Calendar/Calendar.js +3 -1
  55. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
  56. package/build/main//321/201omponents/Calendar/index.js +1 -0
  57. package/build/main//321/201omponents/Calendar/index.js.map +1 -0
  58. package/build/main//321/201omponents/Calendar/types.js +1 -0
  59. package/build/main//321/201omponents/Calendar/types.js.map +1 -0
  60. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +2 -2
  61. package/build/main//321/201omponents/Checkbox/Checkbox.js +6 -4
  62. package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
  63. package/build/main//321/201omponents/Checkbox/index.js +1 -0
  64. package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
  65. package/build/main//321/201omponents/Checkbox/types.js +1 -0
  66. package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
  67. package/build/main//321/201omponents/Chips/Chips.d.ts +1 -1
  68. package/build/main//321/201omponents/Chips/Chips.js +5 -3
  69. package/build/main//321/201omponents/Chips/Chips.js.map +1 -0
  70. package/build/main//321/201omponents/Chips/index.js +1 -0
  71. package/build/main//321/201omponents/Chips/index.js.map +1 -0
  72. package/build/main//321/201omponents/Chips/types.js +1 -0
  73. package/build/main//321/201omponents/Chips/types.js.map +1 -0
  74. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +1 -1
  75. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +7 -5
  76. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
  77. package/build/main//321/201omponents/ConfirmationModal/index.js +1 -0
  78. package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
  79. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +2 -2
  80. package/build/main//321/201omponents/ConfirmationModal/types.js +1 -0
  81. package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
  82. package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +1 -1
  83. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +3 -1
  84. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
  85. package/build/main//321/201omponents/CustomSelect/index.js +1 -0
  86. package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
  87. package/build/main//321/201omponents/CustomSelect/types.js +1 -0
  88. package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
  89. package/build/main//321/201omponents/CustomSelectPriority/CustomSelectPriority.d.ts +1 -1
  90. package/build/main//321/201omponents/CustomSelectPriority/CustomSelectPriority.js +4 -2
  91. package/build/main//321/201omponents/CustomSelectPriority/CustomSelectPriority.js.map +1 -0
  92. package/build/main//321/201omponents/CustomSelectPriority/index.js +1 -0
  93. package/build/main//321/201omponents/CustomSelectPriority/index.js.map +1 -0
  94. package/build/main//321/201omponents/CustomSelectPriority/types.js +1 -0
  95. package/build/main//321/201omponents/CustomSelectPriority/types.js.map +1 -0
  96. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +1 -1
  97. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +3 -1
  98. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
  99. package/build/main//321/201omponents/CustomSelectProfiles/index.js +1 -0
  100. package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
  101. package/build/main//321/201omponents/CustomSelectProfiles/types.js +1 -0
  102. package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
  103. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +1 -1
  104. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +5 -3
  105. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
  106. package/build/main//321/201omponents/DragAndDrop/index.js +1 -0
  107. package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
  108. package/build/main//321/201omponents/DragAndDrop/types.js +1 -0
  109. package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
  110. package/build/main//321/201omponents/Error/Error.d.ts +1 -1
  111. package/build/main//321/201omponents/Error/Error.js +5 -3
  112. package/build/main//321/201omponents/Error/Error.js.map +1 -0
  113. package/build/main//321/201omponents/Error/index.js +1 -0
  114. package/build/main//321/201omponents/Error/index.js.map +1 -0
  115. package/build/main//321/201omponents/Error/types.js +1 -0
  116. package/build/main//321/201omponents/Error/types.js.map +1 -0
  117. package/build/main//321/201omponents/Header/Header.d.ts +1 -1
  118. package/build/main//321/201omponents/Header/Header.js +8 -6
  119. package/build/main//321/201omponents/Header/Header.js.map +1 -0
  120. package/build/main//321/201omponents/Header/index.js +1 -0
  121. package/build/main//321/201omponents/Header/index.js.map +1 -0
  122. package/build/main//321/201omponents/Header/types.d.ts +2 -2
  123. package/build/main//321/201omponents/Header/types.js +1 -0
  124. package/build/main//321/201omponents/Header/types.js.map +1 -0
  125. package/build/main//321/201omponents/Input/Input.d.ts +1 -1
  126. package/build/main//321/201omponents/Input/Input.js +3 -1
  127. package/build/main//321/201omponents/Input/Input.js.map +1 -0
  128. package/build/main//321/201omponents/Input/index.js +1 -0
  129. package/build/main//321/201omponents/Input/index.js.map +1 -0
  130. package/build/main//321/201omponents/Input/types.d.ts +2 -2
  131. package/build/main//321/201omponents/Input/types.js +1 -0
  132. package/build/main//321/201omponents/Input/types.js.map +1 -0
  133. package/build/main//321/201omponents/Loader/Loader.d.ts +2 -2
  134. package/build/main//321/201omponents/Loader/Loader.js +8 -5
  135. package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
  136. package/build/main//321/201omponents/Loader/index.js +1 -0
  137. package/build/main//321/201omponents/Loader/index.js.map +1 -0
  138. package/build/main//321/201omponents/Loader/types.d.ts +2 -1
  139. package/build/main//321/201omponents/Loader/types.js +1 -0
  140. package/build/main//321/201omponents/Loader/types.js.map +1 -0
  141. package/build/main//321/201omponents/Modal/Modal.d.ts +1 -1
  142. package/build/main//321/201omponents/Modal/Modal.js +6 -5
  143. package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
  144. package/build/main//321/201omponents/Modal/index.js +1 -0
  145. package/build/main//321/201omponents/Modal/index.js.map +1 -0
  146. package/build/main//321/201omponents/Modal/types.d.ts +2 -3
  147. package/build/main//321/201omponents/Modal/types.js +1 -0
  148. package/build/main//321/201omponents/Modal/types.js.map +1 -0
  149. package/build/main//321/201omponents/Notification/Notification.d.ts +1 -1
  150. package/build/main//321/201omponents/Notification/Notification.js +3 -1
  151. package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
  152. package/build/main//321/201omponents/Notification/index.js +1 -0
  153. package/build/main//321/201omponents/Notification/index.js.map +1 -0
  154. package/build/main//321/201omponents/Notification/types.d.ts +2 -2
  155. package/build/main//321/201omponents/Notification/types.js +1 -0
  156. package/build/main//321/201omponents/Notification/types.js.map +1 -0
  157. package/build/main//321/201omponents/Profile/Profile.d.ts +1 -1
  158. package/build/main//321/201omponents/Profile/Profile.js +6 -5
  159. package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
  160. package/build/main//321/201omponents/Profile/index.js +1 -0
  161. package/build/main//321/201omponents/Profile/index.js.map +1 -0
  162. package/build/main//321/201omponents/Profile/types.js +1 -0
  163. package/build/main//321/201omponents/Profile/types.js.map +1 -0
  164. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +2 -2
  165. package/build/main//321/201omponents/RadioButton/RadioButton.js +5 -4
  166. package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
  167. package/build/main//321/201omponents/RadioButton/index.js +1 -0
  168. package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
  169. package/build/main//321/201omponents/RadioButton/types.js +1 -0
  170. package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
  171. package/build/main//321/201omponents/Stories/Stories.d.ts +1 -1
  172. package/build/main//321/201omponents/Stories/Stories.js +41 -18
  173. package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
  174. package/build/main//321/201omponents/Stories/index.js +1 -0
  175. package/build/main//321/201omponents/Stories/index.js.map +1 -0
  176. package/build/main//321/201omponents/Stories/types.d.ts +4 -3
  177. package/build/main//321/201omponents/Stories/types.js +1 -0
  178. package/build/main//321/201omponents/Stories/types.js.map +1 -0
  179. package/build/main//321/201omponents/Switcher/Switcher.d.ts +1 -1
  180. package/build/main//321/201omponents/Switcher/Switcher.js +3 -1
  181. package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
  182. package/build/main//321/201omponents/Switcher/index.js +1 -0
  183. package/build/main//321/201omponents/Switcher/index.js.map +1 -0
  184. package/build/main//321/201omponents/Switcher/types.js +1 -0
  185. package/build/main//321/201omponents/Switcher/types.js.map +1 -0
  186. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +2 -2
  187. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +8 -9
  188. package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
  189. package/build/main//321/201omponents/SyncLoader/index.js +1 -0
  190. package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
  191. package/build/main//321/201omponents/SyncLoader/types.d.ts +2 -2
  192. package/build/main//321/201omponents/SyncLoader/types.js +1 -0
  193. package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
  194. package/build/main//321/201omponents/Toggle/Toggle.d.ts +1 -1
  195. package/build/main//321/201omponents/Toggle/Toggle.js +5 -4
  196. package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
  197. package/build/main//321/201omponents/Toggle/index.js +1 -0
  198. package/build/main//321/201omponents/Toggle/index.js.map +1 -0
  199. package/build/main//321/201omponents/Toggle/types.js +1 -0
  200. package/build/main//321/201omponents/Toggle/types.js.map +1 -0
  201. package/build/main//321/201omponents/index.js +1 -0
  202. package/build/main//321/201omponents/index.js.map +1 -0
  203. package/build/main//321/201omponents/types.js +1 -0
  204. package/build/main//321/201omponents/types.js.map +1 -0
  205. package/package.json +33 -57
  206. package/build/main/styles/stories.module.scss +0 -1602
  207. package/build/main/styles/styles.min.css +0 -193
@@ -1,4 +1,4 @@
1
1
  import { IDragAndDropProps } from './types';
2
- import '../../styles/stories.module.scss';
2
+ import '../../styles/styles.scss';
3
3
  declare const DragAndDrop: ({ placeholder, options, onDragEndFunction, onChangeIsCompletedOption, onChangeOption, onClickDeleteOption, width, checkboxColor, orderColor, deleteColor, }: IDragAndDropProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default DragAndDrop;
@@ -16,8 +16,9 @@ import { ReactComponent as OrderIcon } from '../../assets/icons/order.svg';
16
16
  import { ReactComponent as DeleteIcon } from '../../assets/icons/close.svg';
17
17
  import CheckBox from '../Checkbox';
18
18
  import { getColor } from '../../helpers';
19
- import { DEFAULT_BLUE_ICON_COLOR, DEFAULT_GRAY_ICON_COLOR } from '../../constants';
20
- import '../../styles/stories.module.scss';
19
+ import { COLORS } from '../../constants';
20
+ // import './dragAndDrop.scss'
21
+ import '../../styles/styles.scss';
21
22
  var DragAndDrop = function (_a) {
22
23
  var placeholder = _a.placeholder, options = _a.options, onDragEndFunction = _a.onDragEndFunction, onChangeIsCompletedOption = _a.onChangeIsCompletedOption, onChangeOption = _a.onChangeOption, onClickDeleteOption = _a.onClickDeleteOption, width = _a.width, checkboxColor = _a.checkboxColor, orderColor = _a.orderColor, deleteColor = _a.deleteColor;
23
24
  var _b = useState(false), isOnDragStart = _b[0], setIsOnDragStart = _b[1];
@@ -50,6 +51,7 @@ var DragAndDrop = function (_a) {
50
51
  var newOptions = reorderOptions(options, result.source.index, result.destination.index);
51
52
  onDragEndFunction(newOptions);
52
53
  };
53
- return (_jsx("div", __assign({ style: { width: "".concat(width, "%") }, className: "smartapp-drag-drop" }, { children: _jsx(DragDropContext, __assign({ onDragStart: onDragStart, onDragEnd: onDragEnd }, { children: _jsx(Droppable, __assign({ droppableId: "droppable" }, { children: function (provided) { return (_jsx("div", __assign({}, provided.droppableProps, { ref: provided.innerRef, className: "smartapp-drag-drop__container" }, { children: options === null || options === void 0 ? void 0 : options.map(function (instanceOption, index) { return (_jsx(Draggable, __assign({ draggableId: instanceOption.id, index: index }, { children: function (provided) { return (_jsxs("div", __assign({ ref: provided.innerRef }, provided.draggableProps, provided.dragHandleProps, { className: "smartapp-drag-drop__container--instance" }, { children: [_jsxs("div", __assign({ className: "smartapp-drag-drop__container--instance__info" }, { children: [isCheckbox(instanceOption) && onChangeIsCompletedOption && (_jsx(CheckBox, { id: instanceOption.id, isChecked: instanceOption.isCompleted, checkedColor: checkboxColor, onChange: function () { return onChangeIsCompletedOption(instanceOption); } })), onChangeOption ? (_jsx("input", { onChange: function (e) { return onChangeOption && onChangeOption(e, instanceOption); }, defaultValue: instanceOption.defaultValue, className: "smartapp-drag-drop__container--instance__info--name", type: "text", enterKeyHint: "enter", placeholder: placeholder }, instanceOption === null || instanceOption === void 0 ? void 0 : instanceOption.id)) : (_jsx("p", __assign({ className: "smartapp-drag-drop__container--instance__info--name" }, { children: instanceOption.defaultValue })))] })), _jsxs("div", __assign({ className: "smartapp-drag-drop__container--instance__icons" }, { children: [_jsx(OrderIcon, { style: { color: getColor(orderColor, DEFAULT_GRAY_ICON_COLOR) } }), onClickDeleteOption && _jsx(DeleteIcon, { className: "cp", style: { color: getColor(deleteColor, DEFAULT_BLUE_ICON_COLOR) }, onClick: function () { return onClickDeleteOption(instanceOption); } })] }))] }))); } }), instanceOption.id)); }) }))); } })) })) })));
54
+ return (_jsx("div", __assign({ style: { width: "".concat(width, "%") }, className: "smartapp-drag-drop" }, { children: _jsx(DragDropContext, __assign({ onDragStart: onDragStart, onDragEnd: onDragEnd }, { children: _jsx(Droppable, __assign({ droppableId: "droppable" }, { children: function (provided) { return (_jsx("div", __assign({}, provided.droppableProps, { ref: provided.innerRef, className: "smartapp-drag-drop__container" }, { children: options === null || options === void 0 ? void 0 : options.map(function (instanceOption, index) { return (_jsx(Draggable, __assign({ draggableId: instanceOption.id, index: index }, { children: function (provided) { return (_jsxs("div", __assign({ ref: provided.innerRef }, provided.draggableProps, provided.dragHandleProps, { className: "smartapp-drag-drop__container--instance" }, { children: [_jsxs("div", __assign({ className: "smartapp-drag-drop__container--instance__info" }, { children: [isCheckbox(instanceOption) && onChangeIsCompletedOption && (_jsx(CheckBox, { id: instanceOption.id, isChecked: instanceOption.isCompleted, checkedColor: checkboxColor, onChange: function () { return onChangeIsCompletedOption(instanceOption); } })), onChangeOption ? (_jsx("input", { onChange: function (e) { return onChangeOption && onChangeOption(e, instanceOption); }, defaultValue: instanceOption.defaultValue, className: "smartapp-drag-drop__container--instance__info--name", type: "text", enterKeyHint: "enter", placeholder: placeholder }, instanceOption === null || instanceOption === void 0 ? void 0 : instanceOption.id)) : (_jsx("p", __assign({ className: "smartapp-drag-drop__container--instance__info--name" }, { children: instanceOption.defaultValue })))] })), _jsxs("div", __assign({ className: "smartapp-drag-drop__container--instance__icons" }, { children: [_jsx(OrderIcon, { style: { color: getColor(orderColor, COLORS.gray) } }), onClickDeleteOption && (_jsx(DeleteIcon, { className: "cp", style: { color: getColor(deleteColor, COLORS.blue) }, onClick: function () { return onClickDeleteOption(instanceOption); } }))] }))] }))); } }), instanceOption.id)); }) }))); } })) })) })));
54
55
  };
55
56
  export default DragAndDrop;
57
+ //# sourceMappingURL=DragAndDrop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragAndDrop.js","sourceRoot":"","sources":["../../../../src/сomponents/DragAndDrop/DragAndDrop.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC3E,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,QAAQ,MAAM,aAAa,CAAA;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,8BAA8B;AAC9B,OAAO,0BAA0B,CAAA;AAEjC,IAAM,WAAW,GAAG,UAAC,EAWD;QAVlB,WAAW,iBAAA,EACX,OAAO,aAAA,EACP,iBAAiB,uBAAA,EACjB,yBAAyB,+BAAA,EACzB,cAAc,oBAAA,EACd,mBAAmB,yBAAA,EACnB,KAAK,WAAA,EACL,aAAa,mBAAA,EACb,UAAU,gBAAA,EACV,WAAW,iBAAA;IAEL,IAAA,KAAoC,QAAQ,CAAU,KAAK,CAAC,EAA3D,aAAa,QAAA,EAAE,gBAAgB,QAA4B,CAAA;IAElE,IAAM,UAAU,GAAG,UAAC,MAA0B,IAAK,OAAA,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,MAAK,SAAS,EAAjC,CAAiC,CAAA;IAEpF,IAAM,cAAc,GAAG,UAAC,OAA6B,EAAE,UAAkB,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d,cAAc,uBAAd,cAAc,CAAE,EAAE,CAIvB,CACH,CAAC,CAAC,CAAC,CACF,qBAAG,SAAS,EAAC,qDAAqD,gBAAE,cAAc,CAAC,YAAY,IAAK,CACrG,KACG,EACN,wBAAK,SAAS,EAAC,gDAAgD,iBAC7D,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAI,EACjE,mBAAmB,IAAI,CACtB,KAAC,UAAU,IACT,SAAS,EAAC,IAAI,EACd,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,EACpD,OAAO,EAAE,cAAM,OAAA,mBAAmB,CAAC,cAAc,CAAC,EAAnC,CAAmC,GAClD,CACH,KACG,KACF,CACP,EAzCc,CAyCd,KA1Ca,cAAc,CAAC,EAAE,CA2CrB,CACb,EA7CgD,CA6ChD,CAAC,IACE,CACP,EAjDc,CAiDd,IACS,IACI,IACd,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1 +1,2 @@
1
1
  export { default } from './DragAndDrop';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/DragAndDrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/DragAndDrop/types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import { IErrorProps } from './types';
2
- import '../../styles/stories.module.scss';
2
+ import '../../styles/styles.scss';
3
3
  declare const Error: ({ title, text, width, iconColor }: IErrorProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Error;
@@ -12,10 +12,12 @@ var __assign = (this && this.__assign) || function () {
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { ReactComponent as ErrorIcon } from '../../assets/icons/error.svg';
14
14
  import { getColor } from '../../helpers';
15
- import { DEFAULT_GRAY_ICON_COLOR } from '../../constants';
16
- import '../../styles/stories.module.scss';
15
+ import { COLORS } from '../../constants';
16
+ // import './error.scss'
17
+ import '../../styles/styles.scss';
17
18
  var Error = function (_a) {
18
19
  var _b = _a.title, title = _b === void 0 ? 'Ошибка' : _b, _c = _a.text, text = _c === void 0 ? 'Попробуйте еще раз' : _c, _d = _a.width, width = _d === void 0 ? 100 : _d, iconColor = _a.iconColor;
19
- return (_jsxs("div", __assign({ className: "smartapp-error", style: { width: "".concat(width, "%") } }, { children: [_jsx("div", __assign({ className: "smartapp-error__icon" }, { children: _jsx(ErrorIcon, { style: { color: getColor(iconColor, DEFAULT_GRAY_ICON_COLOR) } }) })), _jsx("p", __assign({ className: "smartapp-error__title" }, { children: title })), _jsx("p", __assign({ className: "smartapp-error__text" }, { children: text }))] })));
20
+ return (_jsxs("div", __assign({ className: "smartapp-error", style: { width: "".concat(width, "%") } }, { children: [_jsx("div", __assign({ className: "smartapp-error__icon" }, { children: _jsx(ErrorIcon, { style: { color: getColor(iconColor, COLORS.gray) } }) })), _jsx("p", __assign({ className: "smartapp-error__title" }, { children: title })), _jsx("p", __assign({ className: "smartapp-error__text" }, { children: text }))] })));
20
21
  };
21
22
  export default Error;
23
+ //# sourceMappingURL=Error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Error.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/Error.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAE1E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,wBAAwB;AACxB,OAAO,0BAA0B,CAAA;AAEjC,IAAM,KAAK,GAAG,UAAC,EAAsF;QAApF,aAAgB,EAAhB,KAAK,mBAAG,QAAQ,KAAA,EAAE,YAA2B,EAA3B,IAAI,mBAAG,oBAAoB,KAAA,EAAE,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EAAE,SAAS,eAAA;IAAoB,OAAA,CACxG,wBAAK,SAAS,EAAC,gBAAgB,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,UAAG,KAAK,MAAG,EAAE,iBAC3D,uBAAK,SAAS,EAAC,sBAAsB,gBACnC,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAI,IAC7D,EACN,qBAAG,SAAS,EAAC,uBAAuB,gBAAE,KAAK,IAAK,EAChD,qBAAG,SAAS,EAAC,sBAAsB,gBAAE,IAAI,IAAK,KAC1C,CACP;AARyG,CAQzG,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -1 +1,2 @@
1
1
  export { default } from './Error';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import { IHeaderProps } from './types';
2
- import '../../styles/stories.module.scss';
2
+ import '../../styles/styles.scss';
3
3
  declare const Header: ({ title, isBack, isRemove, refreshIcon, customIcon, onClickBack, onClickRemove, arrowColor, trashColor, platform, headerHeight, textSize, textColor, backgroundColor, }: IHeaderProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Header;
@@ -15,8 +15,9 @@ import { ReactComponent as ArrowBackIcon } from '../../assets/icons/arrow-back.s
15
15
  import { ReactComponent as TrashIcon } from '../../assets/icons/trash.svg';
16
16
  import { ReactComponent as RefreshIcon } from '../../assets/icons/refresh.svg';
17
17
  import { getColor } from '../../helpers';
18
- import { DEFAULT_BLACK_ICON_COLOR, DEFAULT_GRAY_ICON_COLOR, DEFAULT_HEADER_BACKGROUND_COLOR, DEFAULT_HEADER_TEXT_COLOR, DEFAULT_RED_ICON_COLOR, FONT_SIZE, LINE_HEIGHT, PLATFORM, } from '../../constants';
19
- import '../../styles/stories.module.scss';
18
+ import { COLORS, FONT_SIZE, LINE_HEIGHT, PLATFORM } from '../../constants';
19
+ // import './header.scss'
20
+ import '../../styles/styles.scss';
20
21
  var Header = function (_a) {
21
22
  var _b;
22
23
  var _c = _a.title, title = _c === void 0 ? '' : _c, _d = _a.isBack, isBack = _d === void 0 ? false : _d, _e = _a.isRemove, isRemove = _e === void 0 ? false : _e, refreshIcon = _a.refreshIcon, customIcon = _a.customIcon, _f = _a.onClickBack, onClickBack = _f === void 0 ? function () { return undefined; } : _f, _g = _a.onClickRemove, onClickRemove = _g === void 0 ? function () { return undefined; } : _g, arrowColor = _a.arrowColor, trashColor = _a.trashColor, _h = _a.platform, platform = _h === void 0 ? PLATFORM.web : _h, headerHeight = _a.headerHeight, _j = _a.textSize, textSize = _j === void 0 ? 'default' : _j, textColor = _a.textColor, backgroundColor = _a.backgroundColor;
@@ -24,13 +25,14 @@ var Header = function (_a) {
24
25
  height: headerHeight && "".concat(headerHeight - 29, "px"),
25
26
  fontSize: FONT_SIZE[textSize],
26
27
  lineHeight: LINE_HEIGHT[textSize],
27
- color: getColor(textColor, DEFAULT_HEADER_TEXT_COLOR),
28
- background: getColor(backgroundColor, DEFAULT_HEADER_BACKGROUND_COLOR),
28
+ color: getColor(textColor, COLORS.black),
29
+ background: getColor(backgroundColor, COLORS.white),
29
30
  }); };
30
31
  var renderRefreshIcon = function (_a) {
31
32
  var isEnabled = _a.isEnabled, color = _a.color, onClick = _a.onClick;
32
- return (_jsx(RefreshIcon, { className: classNames({ 'smartapp-header__icons--refresh': isEnabled }), style: { color: getColor(color, DEFAULT_GRAY_ICON_COLOR) }, onClick: !isEnabled ? onClick : function () { } }));
33
+ return (_jsx(RefreshIcon, { className: classNames({ 'smartapp-header__icons--refresh': isEnabled }), style: { color: getColor(color, COLORS.gray) }, onClick: !isEnabled ? onClick : function () { } }));
33
34
  };
34
- return (_jsxs("div", __assign({ className: classNames((_b = { 'smartapp-header': true }, _b["smartapp-header__".concat(platform)] = true, _b)), style: getHeaderStyles() }, { children: [_jsxs("div", __assign({ className: "smartapp-header__info" }, { children: [isBack && (_jsx(ArrowBackIcon, { style: { color: getColor(arrowColor, DEFAULT_BLACK_ICON_COLOR) }, onClick: onClickBack, className: "smartapp-header__info--arrow-back" })), title && _jsx("p", __assign({ className: "smartapp-header__info--title" }, { children: title }))] })), _jsxs("div", __assign({ className: "smartapp-header__icons" }, { children: [isRemove && (_jsx("div", __assign({ onClick: onClickRemove, className: "smartapp-header__icons--trash" }, { children: _jsx(TrashIcon, { style: { color: getColor(trashColor, DEFAULT_RED_ICON_COLOR) } }) }))), refreshIcon && renderRefreshIcon(refreshIcon), customIcon] }))] })));
35
+ return (_jsxs("div", __assign({ className: classNames((_b = { 'smartapp-header': true }, _b["smartapp-header__".concat(platform)] = true, _b)), style: getHeaderStyles() }, { children: [_jsxs("div", __assign({ className: "smartapp-header__info" }, { children: [isBack && (_jsx(ArrowBackIcon, { style: { color: getColor(arrowColor, COLORS.black) }, onClick: onClickBack, className: "smartapp-header__info--arrow-back" })), title && _jsx("p", __assign({ className: "smartapp-header__info--title" }, { children: title }))] })), _jsxs("div", __assign({ className: "smartapp-header__icons" }, { children: [isRemove && (_jsx("div", __assign({ onClick: onClickRemove, className: "smartapp-header__icons--trash" }, { children: _jsx(TrashIcon, { style: { color: getColor(trashColor, COLORS.red) } }) }))), refreshIcon && renderRefreshIcon(refreshIcon), customIcon] }))] })));
35
36
  };
36
37
  export default Header;
38
+ //# sourceMappingURL=Header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/сomponents/Header/Header.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1E,yBAAyB;AACzB,OAAO,0BAA0B,CAAA;AAEjC,IAAM,MAAM,GAAG,UAAC,EAeD;;QAdb,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA,EACV,cAAc,EAAd,MAAM,mBAAG,KAAK,KAAA,EACd,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAChB,WAAW,iBAAA,EACX,UAAU,gBAAA,EACV,mBAAmC,EAAnC,WAAW,mBAAG,cAAY,OAAA,SAAS,EAAT,CAAS,KAAA,EACnC,qBAAqC,EAArC,aAAa,mBAAG,cAAY,OAAA,SAAS,EAAT,CAAS,KAAA,EACrC,UAAU,gBAAA,EACV,UAAU,gBAAA,EACV,gBAAuB,EAAvB,QAAQ,mBAAG,QAAQ,CAAC,GAAG,KAAA,EACvB,YAAY,kBAAA,EACZ,gBAAoB,EAApB,QAAQ,mBAAG,SAAS,KAAA,EACpB,SAAS,eAAA,EACT,eAAe,qBAAA;IAEf,IAAM,eAAe,GAAG,cAAM,OAAA,CAAC;QAC7B,MAAM,EAAE,YAAY,IAAI,UA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,+BAA+B,gBACpE,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,GAAI,IAC7D,CACP,EACA,WAAW,IAAI,iBAAiB,CAAC,WAAW,CAAC,EAC7C,UAAU,KACP,KACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -1 +1,2 @@
1
1
  export { default } from './Header';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import { ReactElement } from 'react';
2
+ import { IPlatformProps } from '../../constants';
2
3
  export type TRefreshIcon = {
3
4
  isEnabled: boolean;
4
5
  color?: string;
5
6
  onClick: () => void;
6
7
  };
7
- export interface IHeaderProps {
8
+ export interface IHeaderProps extends IPlatformProps {
8
9
  title?: string;
9
10
  isBack?: boolean;
10
11
  isRemove?: boolean;
@@ -14,7 +15,6 @@ export interface IHeaderProps {
14
15
  onClickRemove?: () => void;
15
16
  arrowColor?: string;
16
17
  trashColor?: string;
17
- platform?: 'web' | 'ios' | 'android';
18
18
  headerHeight?: number;
19
19
  textSize?: 'small' | 'default' | 'large';
20
20
  textColor?: string;
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Header/types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import { IInputProps } from './types';
2
- import '../../styles/stories.module.scss';
2
+ import '../../styles/styles.scss';
3
3
  declare const Input: ({ isPassword, isClearable, autoFocus, title, placeholder, defaultValue, error, textSize, width, className, theme, onChange, onEnterPress, onClearClick, }: IInputProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Input;
@@ -16,7 +16,8 @@ import { ReactComponent as IconEye } from '../../assets/icons/icon-eye.svg';
16
16
  import { ReactComponent as IconEyeClosed } from '../../assets/icons/icon-eye-off.svg';
17
17
  import { ReactComponent as ClearIcon } from '../../assets/icons/clear.svg';
18
18
  import { ENTER_KEY, FONT_SIZE, INPUT_TYPE_PASSWORD, INPUT_TYPE_TEXT, LINE_HEIGHT, THEME } from '../../constants';
19
- import '../../styles/stories.module.scss';
19
+ // import './input.scss'
20
+ import '../../styles/styles.scss';
20
21
  var Input = function (_a) {
21
22
  var _b;
22
23
  var _c = _a.isPassword, isPassword = _c === void 0 ? false : _c, _d = _a.isClearable, isClearable = _d === void 0 ? false : _d, _e = _a.autoFocus, autoFocus = _e === void 0 ? false : _e, title = _a.title, placeholder = _a.placeholder, defaultValue = _a.defaultValue, error = _a.error, _f = _a.textSize, textSize = _f === void 0 ? 'small' : _f, _g = _a.width, width = _g === void 0 ? 100 : _g, _h = _a.className, className = _h === void 0 ? '' : _h, _j = _a.theme, theme = _j === void 0 ? THEME.default : _j, onChange = _a.onChange, onEnterPress = _a.onEnterPress, onClearClick = _a.onClearClick;
@@ -55,3 +56,4 @@ var Input = function (_a) {
55
56
  return (_jsxs("div", __assign({ style: { width: "".concat(width, "%") }, className: classNames('smartapp-input', "smartapp-input__".concat(theme), (_b = {}, _b[className] = className, _b)) }, { children: [title && _jsx("p", __assign({ className: "smartapp-input__title" }, { children: title })), _jsxs("div", __assign({ className: "smartapp-input__container" }, { children: [_jsx("input", { ref: inputRef, className: classNames('smartapp-input__container--field', { 'smartapp-input__container--field__with-clear-button': isClearable }), style: getTextStyles(), type: getInputType(), defaultValue: defaultValue, autoFocus: autoFocus, placeholder: placeholder, onKeyDown: handleKeyDown, onChange: function (e) { return onChange(e.target.value); } }), isPassword && (_jsx("button", __assign({ className: "smartapp-input__container--eye-button", type: "button", onClick: function () { return onClickButton(); } }, { children: isPasswordShown ? _jsx(IconEye, {}) : _jsx(IconEyeClosed, {}) }))), isClearable && _jsx(ClearIcon, { className: "smartapp-input__container--clear-icon", onClick: onClearClick })] })), error && _jsx("div", __assign({ className: "smartapp-input__error" }, { children: error }))] })));
56
57
  };
57
58
  export default Input;
59
+ //# sourceMappingURL=Input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/сomponents/Input/Input.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,qCAAqC,CAAA;AACrF,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAE1E,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,mBAAmB,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAChH,wBAAwB;AACxB,OAAO,0BAA0B,CAAA;AAEjC,IAAM,KAAK,GAAG,UAAC,EAeD;;QAdZ,kBAAkB,EAAlB,UAAU,mBAAG,KAAK,KAAA,EAClB,mBAAmB,EAAnB,WAAW,mBAAG,KAAK,KAAA,EACnB,iBAAiB,EAAjB,SAAS,mBAAG,KAAK,KAAA,EACjB,KAAK,WAAA,EACL,WAAW,iBAAA,EACX,YAAY,kBAAA,EACZ,KAAK,WAAA,EACL,gBAAkB,EAAlB,QAAQ,mBAAG,OAAO,KAAA,EAClB,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EACX,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,aAAqB,EAArB,KAAK,mBAAG,KAAK,CAAC,OAAO,KAAA,EACrB,QAAQ,cAAA,EACR,YAAY,kBAAA,EACZ,YAAY,kBAA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AO,CACL,wBAAK,KAAK,EAAE,EAAE,KAAK,EAAE,UAAG,KAAK,MAAG,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,0BAAmB,KAAK,CAAE,YAAI,GAAC,SAAS,IAAG,SAAS,MAAG,iBAChI,KAAK,IAAI,qBAAG,SAAS,EAAC,uBAAuB,gBAAE,KAAK,IAAK,EAC1D,wBAAK,SAAS,EAAC,2BAA2B,iBACxC,gBACE,GAAG,EAAE,QAAQ,EACb,SAAS,EAAE,UAAU,CAAC,kCAAkC,EAAE,EAAE,qDAAqD,EAAE,WAAW,EAAE,CAAC,EACjI,KAAK,EAAE,aAAa,EAAE,EACtB,IAAI,EAAE,YAAY,EAAE,EACpB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,UAAC,CAAC,IAAK,OAAA,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAxB,CAAwB,GACzC,EACD,UAAU,IAAI,CACb,0BAAQ,SAAS,EAAC,uCAAuC,EAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,aAAa,EAAE,EAAf,CAAe,gBACnG,eAAe,CAAC,CAAC,CAAC,KAAC,OAAO,KAAG,CAAC,CAAC,CAAC,KAAC,aAAa,KAAG,IAC3C,CACV,EACA,WAAW,IAAI,KAAC,SAAS,IAAC,SAAS,EAAC,uCAAuC,EAAC,OAAO,EAAE,YAAY,GAAI,KAClG,EACL,KAAK,IAAI,uBAAK,SAAS,EAAC,uBAAuB,gBAAE,KAAK,IAAO,KAC1D,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -1 +1,2 @@
1
1
  export { default } from './Input';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { IntRange } from '../types';
2
- export interface IInputProps {
2
+ import { IThemeProps } from '../../constants';
3
+ export interface IInputProps extends IThemeProps {
3
4
  isPassword?: boolean;
4
5
  isClearable?: boolean;
5
6
  autoFocus?: boolean;
@@ -10,7 +11,6 @@ export interface IInputProps {
10
11
  textSize?: 'small' | 'default' | 'large';
11
12
  width?: IntRange<1, 101>;
12
13
  className?: string;
13
- theme?: 'default' | 'dark';
14
14
  onChange: (str: string) => void;
15
15
  onEnterPress?: () => void;
16
16
  onClearClick?: () => void;
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Input/types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import { ILoaderProps } from './types';
2
- import '../../styles/stories.module.scss';
3
- declare const Loader: ({ isLoader, isFullScreen, isTextItalic, title, textSize, width, iconSize, backgroundColor, }: ILoaderProps) => import("react/jsx-runtime").JSX.Element;
2
+ import '../../styles/styles.scss';
3
+ declare const Loader: ({ isLoader, isFullScreen, isTextItalic, title, textSize, width, iconSize, backgroundColor, theme, }: ILoaderProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Loader;
@@ -12,23 +12,26 @@ var __assign = (this && this.__assign) || function () {
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { ColorRing } from 'react-loader-spinner';
14
14
  import classNames from 'classnames';
15
- import { DEFAULT_GRAY_LOADER_BACKGROUND_COLOR, DEFAULT_WHITE_LOADER_BACKGROUND_COLOR, FONT_SIZE, LINE_HEIGHT, } from '../../constants';
15
+ import { COLORS, FONT_SIZE, LINE_HEIGHT, THEME } from '../../constants';
16
16
  import { getColor } from '../../helpers';
17
- import '../../styles/stories.module.scss';
17
+ // import './loader.scss'
18
+ import '../../styles/styles.scss';
18
19
  var Loader = function (_a) {
19
- var _b = _a.isLoader, isLoader = _b === void 0 ? false : _b, _c = _a.isFullScreen, isFullScreen = _c === void 0 ? true : _c, _d = _a.isTextItalic, isTextItalic = _d === void 0 ? false : _d, title = _a.title, _e = _a.textSize, textSize = _e === void 0 ? 'small' : _e, _f = _a.width, width = _f === void 0 ? 150 : _f, _g = _a.iconSize, iconSize = _g === void 0 ? 32 : _g, backgroundColor = _a.backgroundColor;
20
+ var _b = _a.isLoader, isLoader = _b === void 0 ? false : _b, _c = _a.isFullScreen, isFullScreen = _c === void 0 ? true : _c, _d = _a.isTextItalic, isTextItalic = _d === void 0 ? false : _d, title = _a.title, _e = _a.textSize, textSize = _e === void 0 ? 'small' : _e, _f = _a.width, width = _f === void 0 ? 150 : _f, _g = _a.iconSize, iconSize = _g === void 0 ? 32 : _g, backgroundColor = _a.backgroundColor, _h = _a.theme, theme = _h === void 0 ? THEME.default : _h;
21
+ var isDarkTheme = theme === THEME.dark;
20
22
  var getTextStyles = function () { return ({
21
23
  fontSize: FONT_SIZE[textSize],
22
24
  fontStyle: isTextItalic ? 'italic' : 'normal',
23
25
  lineHeight: LINE_HEIGHT[textSize],
24
26
  }); };
25
27
  var getBackgroundColor = function () {
26
- var defaultColor = isFullScreen ? DEFAULT_GRAY_LOADER_BACKGROUND_COLOR : DEFAULT_WHITE_LOADER_BACKGROUND_COLOR;
28
+ var defaultColor = isDarkTheme ? COLORS.white3 : isFullScreen ? COLORS.lightGray : COLORS.white;
27
29
  return getColor(backgroundColor, defaultColor);
28
30
  };
29
31
  return (_jsx("div", __assign({ className: classNames({
30
32
  'smartapp-loader-wrapper': true,
31
33
  'smartapp-loader-wrapper__full-screen': isFullScreen,
32
- }), style: { background: getBackgroundColor() } }, { children: _jsxs("div", __assign({ className: "smartapp-loader", style: { width: "".concat(width, "px") } }, { children: [_jsx(ColorRing, { visible: isLoader, height: iconSize, width: iconSize, ariaLabel: "blocks-loading", wrapperStyle: {}, wrapperClass: "blocks-wrapper", colors: ['#4799E3', '#4799E3', '#4799E3', '#4799E3', '#4799E3'] }), title && _jsx("p", __assign({ className: "smartapp-loader__title", style: getTextStyles() }, { children: title }))] })) })));
34
+ }), style: { background: getBackgroundColor() } }, { children: _jsxs("div", __assign({ className: "smartapp-loader", style: { width: "".concat(width, "px") } }, { children: [_jsx(ColorRing, { visible: isLoader, height: iconSize, width: iconSize, ariaLabel: "blocks-loading", wrapperStyle: {}, wrapperClass: "blocks-wrapper", colors: ['#4799E3', '#4799E3', '#4799E3', '#4799E3', '#4799E3'] }), title && (_jsx("p", __assign({ className: "smartapp-loader__title", style: getTextStyles() }, { children: title })))] })) })));
33
35
  };
34
36
  export default Loader;
37
+ //# sourceMappingURL=Loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/Loader.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,yBAAyB;AACzB,OAAO,0BAA0B,CAAA;AAEjC,IAAM,MAAM,GAAG,UAAC,EAUD;QATb,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAChB,oBAAmB,EAAnB,YAAY,mBAAG,IAAI,KAAA,EACnB,oBAAoB,EAApB,YAAY,mBAAG,KAAK,KAAA,EACpB,KAAK,WAAA,EACL,gBAAkB,EAAlB,QAAQ,mBAAG,OAAO,KAAA,EAClB,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EACX,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA,EACb,eAAe,qBAAA,EACf,aAAqB,EAArB,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J,CACL,KACG,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -1 +1,2 @@
1
1
  export { default } from './Loader';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -1,4 +1,5 @@
1
- export interface ILoaderProps {
1
+ import { IThemeProps } from '../../constants';
2
+ export interface ILoaderProps extends IThemeProps {
2
3
  isLoader: boolean;
3
4
  isFullScreen?: boolean;
4
5
  isTextItalic?: boolean;
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import { IModalProps } from './types';
2
- import '../../styles/stories.module.scss';
2
+ import '../../styles/styles.scss';
3
3
  declare const Modal: ({ isModalOpen, content, handleCloseModal, title, theme, platform, iconColor, backgroundColor, }: IModalProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Modal;
@@ -13,14 +13,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { useEffect, useRef } from 'react';
14
14
  import Popup from 'reactjs-popup';
15
15
  import { ReactComponent as CloseIcon } from '../../assets/icons/cancel-cross.svg';
16
- import { DEFAULT_POPUP_BACKGROUND_COLOR, PLATFORM, THEME } from '../../constants';
16
+ import { COLORS, PLATFORM, THEME } from '../../constants';
17
17
  import { getClassNames, getColor, getDefaultColorForCloseIcon } from '../../helpers';
18
- import '../../styles/stories.module.scss';
18
+ import '../../styles/styles.scss';
19
19
  var Modal = function (_a) {
20
20
  var isModalOpen = _a.isModalOpen, content = _a.content, handleCloseModal = _a.handleCloseModal, title = _a.title, _b = _a.theme, theme = _b === void 0 ? THEME.default : _b, _c = _a.platform, platform = _c === void 0 ? PLATFORM.web : _c, iconColor = _a.iconColor, backgroundColor = _a.backgroundColor;
21
21
  var ref = useRef(null);
22
22
  useEffect(function () {
23
- document.documentElement.style.setProperty('--modal-background', getColor(backgroundColor, DEFAULT_POPUP_BACKGROUND_COLOR));
23
+ document.documentElement.style.setProperty('--modal-background', getColor(backgroundColor, COLORS.lightBlue));
24
24
  }, [backgroundColor]);
25
25
  useEffect(function () {
26
26
  var checkIfClickedOutside = function (e) {
@@ -28,11 +28,12 @@ var Modal = function (_a) {
28
28
  handleCloseModal();
29
29
  }
30
30
  };
31
- document === null || document === void 0 ? void 0 : document.addEventListener('click', checkIfClickedOutside, true);
31
+ document === null || document === void 0 ? void 0 : document.addEventListener('mousedown', checkIfClickedOutside, true);
32
32
  return function () {
33
- document === null || document === void 0 ? void 0 : document.removeEventListener('click', checkIfClickedOutside, true);
33
+ document === null || document === void 0 ? void 0 : document.removeEventListener('mousedown', checkIfClickedOutside, true);
34
34
  };
35
35
  }, [isModalOpen, handleCloseModal]);
36
36
  return (_jsx(Popup, __assign({ className: getClassNames('modal', '-', platform), closeOnDocumentClick: true, modal: true, open: isModalOpen }, { children: _jsx("div", __assign({ ref: ref, className: getClassNames('smartapp-modal', '__', [theme, platform]) }, { children: _jsxs("div", __assign({ className: getClassNames('smartapp-modal__content', '--', platform) }, { children: [title && _jsx("p", __assign({ className: "smartapp-modal__content--title" }, { children: title })), _jsx("div", __assign({ onClick: handleCloseModal, className: "smartapp-modal__content--close-icon" }, { children: _jsx(CloseIcon, { style: { color: getColor(iconColor, getDefaultColorForCloseIcon(theme)) } }) })), content] })) })) })));
37
37
  };
38
38
  export default Modal;
39
+ //# sourceMappingURL=Modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/Modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM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,EAAE,qBAAqB,EAAE,IAAI,CAAC,CAAA;QACzE,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,CAAA;IAEnC,OAAO,CACL,KAAC,KAAK,aAAC,SAAS,EAAE,aAAa,CAAC,OAAO,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,oBAAoB,QAAC,KAAK,QAAC,IAAI,EAAE,WAAW,gBACnG,uBAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,aAAa,CAAC,gBAAgB,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,gBAChF,wBAAK,SAAS,EAAE,aAAa,CAAC,yBAAyB,EAAE,IAAI,EAAE,QAAQ,CAAC,iBACrE,KAAK,IAAI,qBAAG,SAAS,EAAC,gCAAgC,gBAAE,KAAK,IAAK,EACnE,uBAAK,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAC,qCAAqC,gBAC7E,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,EAAE,2BAA2B,CAAC,KAAK,CAAC,CAAC,EAAE,GAAI,IACpF,EACL,OAAO,KACJ,IACF,IACA,CACT,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -1 +1,2 @@
1
1
  export { default } from './Modal';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
@@ -1,11 +1,10 @@
1
1
  import { ReactElement } from 'react';
2
- export interface IModalProps {
2
+ import { ICommonProps } from '../../constants';
3
+ export interface IModalProps extends ICommonProps {
3
4
  isModalOpen: boolean;
4
5
  content: ReactElement;
5
6
  handleCloseModal: () => void;
6
7
  title?: string;
7
- theme?: 'default' | 'dark';
8
- platform?: 'web' | 'ios' | 'android';
9
8
  iconColor?: string;
10
9
  backgroundColor?: string;
11
10
  }
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import { INotificationProps } from './types';
2
- import '../../styles/stories.module.scss';
2
+ import '../../styles/styles.scss';
3
3
  declare const Notification: ({ isShown, type, isAutoHidden, hideDuration, platform, message, action, hideNotification, }: INotificationProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Notification;
@@ -18,7 +18,8 @@ import { ReactComponent as NotificationWarningIcon } from '../../assets/icons/no
18
18
  import { ReactComponent as NotificationErrorIcon } from '../../assets/icons/notification-error.svg';
19
19
  import { CANCEL_ACTION_TEXT, PLATFORM } from '../../constants';
20
20
  import { getClassNames } from '../../helpers';
21
- import '../../styles/stories.module.scss';
21
+ // import './notification.scss'
22
+ import '../../styles/styles.scss';
22
23
  var NOTIFICATION_ICONS = {
23
24
  success: _jsx(NotificationSuccessIcon, {}),
24
25
  info: _jsx(NotificationInfoIcon, {}),
@@ -38,3 +39,4 @@ var Notification = function (_a) {
38
39
  return (_jsx(Popup, __assign({ className: getClassNames('notification', '-', platform), open: isShown, closeOnDocumentClick: false, closeOnEscape: false }, { children: _jsxs("div", __assign({ className: getClassNames('smartapp-notification', '__', type) }, { children: [NOTIFICATION_ICONS[type], _jsxs("div", __assign({ className: "smartapp-notification__content" }, { children: [_jsx("div", { children: message }), action && (_jsx("div", __assign({ className: "smartapp-notification__content--action", onClick: action.onClick }, { children: action.text || CANCEL_ACTION_TEXT })))] }))] })) })));
39
40
  };
40
41
  export default Notification;
42
+ //# sourceMappingURL=Notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../../../src/сomponents/Notification/Notification.tsx"],"names":[],"mappings":";;;;;;;;;;;;AA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IACH,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAA;IAE3D,OAAO,CACL,KAAC,KAAK,aAAC,SAAS,EAAE,aAAa,CAAC,cAAc,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,gBAC9H,wBAAK,SAAS,EAAE,aAAa,CAAC,uBAAuB,EAAE,IAAI,EAAE,IAAI,CAAC,iBAC/D,kBAAkB,CAAC,IAAI,CAAC,EACzB,wBAAK,SAAS,EAAC,gCAAgC,iBAC7C,wBAAM,OAAO,GAAO,EACnB,MAAM,IAAI,CACT,uBAAK,SAAS,EAAC,wCAAwC,EAAC,OAAO,EAAE,MAAM,CAAC,OAAO,gBAC5E,MAAM,CAAC,IAAI,IAAI,kBAAkB,IAC9B,CACP,KACG,KACF,IACA,CACT,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -1 +1,2 @@
1
1
  export { default } from './Notification';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { ReactElement } from 'react';
2
- export interface INotificationProps {
2
+ import { IPlatformProps } from '../../constants';
3
+ export interface INotificationProps extends IPlatformProps {
3
4
  isShown: boolean;
4
5
  type?: 'success' | 'info' | 'warning' | 'error';
5
6
  isAutoHidden?: boolean;
6
7
  hideDuration?: number;
7
- platform?: 'web' | 'ios' | 'android';
8
8
  message: string | ReactElement;
9
9
  action?: {
10
10
  text?: string;
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Notification/types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import { IProfileProps } from './types';
2
- import '../../styles/stories.module.scss';
2
+ import '../../styles/styles.scss';
3
3
  declare const Profile: ({ username, email, isShowProfile, onChange, onClickLogout, isMultipleProfile, onClickAddProfile, width, logoutColor, addProfileColor, addProfileBackgroundColor, }: IProfileProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Profile;
@@ -14,8 +14,8 @@ import { useEffect, useRef } from 'react';
14
14
  import { ReactComponent as LogoutIcon } from '../../assets/icons/logout.svg';
15
15
  import { ReactComponent as AddProfileIcon } from '../../assets/icons/plus.svg';
16
16
  import { getColor } from '../../helpers';
17
- import { DEFAULT_BLUE_ICON_COLOR, DEFAULT_BLUE_LIGHT_ICON_COLOR } from '../../constants';
18
- import '../../styles/stories.module.scss';
17
+ import { COLORS } from '../../constants';
18
+ import '../../styles/styles.scss';
19
19
  var Profile = function (_a) {
20
20
  var _b, _c, _d;
21
21
  var username = _a.username, email = _a.email, _e = _a.isShowProfile, isShowProfile = _e === void 0 ? false : _e, _f = _a.onChange, onChange = _f === void 0 ? function () { return undefined; } : _f, onClickLogout = _a.onClickLogout, isMultipleProfile = _a.isMultipleProfile, onClickAddProfile = _a.onClickAddProfile, _g = _a.width, width = _g === void 0 ? 100 : _g, logoutColor = _a.logoutColor, addProfileColor = _a.addProfileColor, addProfileBackgroundColor = _a.addProfileBackgroundColor;
@@ -33,9 +33,10 @@ var Profile = function (_a) {
33
33
  document.removeEventListener('mousedown', checkIfClickedOutside);
34
34
  };
35
35
  }, [isShowProfile, onChange]);
36
- return (_jsxs("div", __assign({ ref: ref, className: "smartapp-profile__container" }, { children: [_jsx("div", __assign({ onClick: function () { return onChange(!isShowProfile); }, className: "smartapp-profile__avatar" }, { children: initials })), isShowProfile && (_jsxs("div", __assign({ style: { width: "".concat(width, "%") }, className: "smartapp-profile" }, { children: [_jsxs("div", __assign({ className: "smartapp-profile__current-profile" }, { children: [_jsxs("div", __assign({ className: "smartapp-profile__current-profile--info" }, { children: [_jsx("div", __assign({ className: "smartapp-profile__avatar" }, { children: initials })), _jsxs("div", __assign({ className: "smartapp-profile__current-profile--info__data" }, { children: [_jsx("p", __assign({ className: "smartapp-profile__current-profile--info__data--username" }, { children: username })), email && _jsx("p", __assign({ className: "smartapp-profile__current-profile--info__data--email" }, { children: email }))] }))] })), _jsx("div", __assign({ onClick: onClickLogout, className: "smartapp-profile__current-profile--logout" }, { children: _jsx(LogoutIcon, { style: { color: getColor(logoutColor, DEFAULT_BLUE_ICON_COLOR) } }) }))] })), isMultipleProfile && (_jsxs("div", __assign({ onClick: onClickAddProfile, className: "smartapp-profile__add-profile" }, { children: [_jsx("div", __assign({ className: "smartapp-profile__add-profile--icon" }, { children: _jsx(AddProfileIcon, { style: {
37
- stroke: getColor(addProfileColor, DEFAULT_BLUE_ICON_COLOR),
38
- color: getColor(addProfileBackgroundColor, DEFAULT_BLUE_LIGHT_ICON_COLOR)
36
+ return (_jsxs("div", __assign({ ref: ref, className: "smartapp-profile__container" }, { children: [_jsx("div", __assign({ onClick: function () { return onChange(!isShowProfile); }, className: "smartapp-profile__avatar" }, { children: initials })), isShowProfile && (_jsxs("div", __assign({ style: { width: "".concat(width, "%") }, className: "smartapp-profile" }, { children: [_jsxs("div", __assign({ className: "smartapp-profile__current-profile" }, { children: [_jsxs("div", __assign({ className: "smartapp-profile__current-profile--info" }, { children: [_jsx("div", __assign({ className: "smartapp-profile__avatar" }, { children: initials })), _jsxs("div", __assign({ className: "smartapp-profile__current-profile--info__data" }, { children: [_jsx("p", __assign({ className: "smartapp-profile__current-profile--info__data--username" }, { children: username })), email && _jsx("p", __assign({ className: "smartapp-profile__current-profile--info__data--email" }, { children: email }))] }))] })), _jsx("div", __assign({ onClick: onClickLogout, className: "smartapp-profile__current-profile--logout" }, { children: _jsx(LogoutIcon, { style: { color: getColor(logoutColor, COLORS.blue) } }) }))] })), isMultipleProfile && (_jsxs("div", __assign({ onClick: onClickAddProfile, className: "smartapp-profile__add-profile" }, { children: [_jsx("div", __assign({ className: "smartapp-profile__add-profile--icon" }, { children: _jsx(AddProfileIcon, { style: {
37
+ stroke: getColor(addProfileColor, COLORS.blue),
38
+ color: getColor(addProfileBackgroundColor, COLORS.lighterBlue),
39
39
  } }) })), _jsx("p", __assign({ className: "smartapp-profile__add-profile--title" }, { children: "\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0430\u043A\u043A\u0430\u0443\u043D\u0442" }))] })))] })))] })));
40
40
  };
41
41
  export default Profile;
42
+ //# sourceMappingURL=Profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Profile.js","sourceRoot":"","sources":["../../../../src/сomponents/Profile/Profile.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,0BAA0B,CAAA;AAEjC,IAAM,OAAO,GAAG,UAAC,EAYD;;QAXd,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,qBAAqB,EAArB,aAAa,mBAAG,KAAK,KAAA,EACrB,gBAAgC,EAAhC,QAAQ,mBAAG,cAAY,OAAA,SAAS,EAAT,CAAS,KAAA,EAChC,aAAa,mBAAA,EACb,iBAAiB,uBAAA,EACjB,iBAAiB,uBAAA,EACjB,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EACX,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,yBAAyB,+BAAA;IAEzB,IAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAExC,IAAM,QAAQ,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,EAC1D,wBAAK,SAAS,EAAC,+CAA+C,iBAC5D,qBAAG,SAAS,EAAC,yDAAyD,gBAAE,QAAQ,IAAK,EACpF,KAAK,IAAI,qBAAG,SAAS,EAAC,sDAAsD,gBAAE,KAAK,IAAK,KACrF,KACF,EACN,uBAAK,OAAO,EAAE,aAAa,EAAE,SAAS,EAAC,2CAA2C,gBAChF,KAAC,UAAU,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAI,IAChE,KACF,EACL,iBAAiB,IAAI,CACpB,wBAAK,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAC,+BAA+B,iBACxE,uBAAK,SAAS,EAAC,qCAAqC,gBAClD,KAAC,cAAc,IACb,KAAK,EAAE;wCACL,MAAM,EAAE,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,IAAI,CAAC;wCAC9C,KAAK,EAAE,QAAQ,CAAC,yBAAyB,EAAE,MAAM,CAAC,WAAW,CAAC;qCAC/D,GACD,IACE,EACN,qBAAG,SAAS,EAAC,sCAAsC,iHAAqB,KACpE,CACP,KACG,CACP,KACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -1 +1,2 @@
1
1
  export { default } from './Profile';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Profile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Profile/types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import { IRadioButtonProps } from './types';
2
- import '../../styles/stories.module.scss';
3
- declare const RadioButton: ({ id, isDisabled, isChecked, checkedColor, checkedHoverColor, onChange, }: IRadioButtonProps) => import("react/jsx-runtime").JSX.Element;
2
+ import '../../styles/styles.scss';
3
+ declare const RadioButton: ({ id, isDisabled, isChecked, checkedColor, checkedHoverColor, onChange }: IRadioButtonProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default RadioButton;
@@ -11,15 +11,16 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { useEffect } from 'react';
14
- import { DEFAULT_BLUE_ICON_COLOR, DEFAULT_BLUE_ICON_HOVER_COLOR } from '../../constants';
14
+ import { COLORS } from '../../constants';
15
15
  import { getColor } from '../../helpers';
16
- import '../../styles/stories.module.scss';
16
+ import '../../styles/styles.scss';
17
17
  var RadioButton = function (_a) {
18
18
  var id = _a.id, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = _a.isChecked, isChecked = _c === void 0 ? false : _c, checkedColor = _a.checkedColor, checkedHoverColor = _a.checkedHoverColor, onChange = _a.onChange;
19
19
  useEffect(function () {
20
- document.documentElement.style.setProperty('--radio-button-color', getColor(checkedColor, DEFAULT_BLUE_ICON_COLOR));
21
- document.documentElement.style.setProperty('--radio-button-hover-color', getColor(checkedHoverColor, DEFAULT_BLUE_ICON_HOVER_COLOR));
20
+ document.documentElement.style.setProperty('--radio-button-color', getColor(checkedColor, COLORS.blue));
21
+ document.documentElement.style.setProperty('--radio-button-hover-color', getColor(checkedHoverColor, COLORS.darkBlue));
22
22
  }, [checkedColor, checkedHoverColor]);
23
23
  return (_jsx("div", __assign({ className: "smartapp-radio-button" }, { children: _jsx("label", __assign({ htmlFor: "smartapp-radio-button-".concat(id), onClick: onChange }, { children: _jsx("input", { type: "radio", id: "smartapp-radio-button-".concat(id), checked: isChecked, disabled: isDisabled }) })) })));
24
24
  };
25
25
  export default RadioButton;
26
+ //# sourceMappingURL=RadioButton.js.map