@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
package/README.md CHANGED
@@ -3,7 +3,7 @@ This library is aimed at optimizing the development of smartapps.
3
3
 
4
4
  For the styles to work correctly, after installing the library, add styles import to the main style file of your application in the following way:
5
5
 
6
- `@import '@expressms/smartapp-ui/build/main/styles/stories.module.scss';`
6
+ `@import '@expressms/smartapp-ui/build/main/styles/styles.scss';`
7
7
 
8
8
 
9
9
  For the library to work, you need to install react and react-dom version 18 or more.
@@ -0,0 +1,3 @@
1
+ <svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.5 30C7.5 42.4264 17.5736 52.5 30 52.5C42.4264 52.5 52.5 42.4264 52.5 30C52.5 17.5736 42.4264 7.5 30 7.5" stroke="white" stroke-width="4" stroke-linecap="round"/>
3
+ </svg>
@@ -1,17 +1,16 @@
1
- export declare const DEFAULT_BLUE_LIGHT_ICON_COLOR = "#4799E30D";
2
- export declare const DEFAULT_BLUE_ICON_COLOR = "#4799E3";
3
- export declare const DEFAULT_BLUE_ICON_HOVER_COLOR = "#3C82C1";
4
- export declare const DEFAULT_RED_ICON_COLOR = "#EB5545";
5
- export declare const DEFAULT_WHITE_LIGHT_ICON_COLOR = "#FFFFFF80";
6
- export declare const DEFAULT_GRAY_ICON_COLOR = "#1111114D";
7
- export declare const DEFAULT_BLACK_ICON_COLOR = "#111111";
8
- export declare const DEFAULT_HEADER_TEXT_COLOR = "#111111";
9
- export declare const DEFAULT_HEADER_BACKGROUND_COLOR = "#FFFFFF";
10
- export declare const DEFAULT_WHITE_LOADER_BACKGROUND_COLOR = "#FFFFFF";
11
- export declare const DEFAULT_GRAY_LOADER_BACKGROUND_COLOR = "#E0E4EC66";
12
- export declare const DEFAULT_TEXT_BUTTON_COLOR = "#111111";
13
- export declare const DEFAULT_BACKGROUND_BUTTON_COLOR = "#FFFFFF";
14
- export declare const DEFAULT_POPUP_BACKGROUND_COLOR = "rgba(37, 77, 145, 0.2)";
1
+ export declare enum COLORS {
2
+ lighterBlue = "#4799E30D",
3
+ lightBlue = "rgba(37, 77, 145, 0.2)",
4
+ blue = "#4799E3",
5
+ darkBlue = "#3C82C1",
6
+ red = "#EB5545",
7
+ white = "#FFFFFF",
8
+ white3 = "#FFFFFF03",
9
+ white80 = "#FFFFFF80",
10
+ lightGray = "#E0E4EC66",
11
+ gray = "#1111114D",
12
+ black = "#111111"
13
+ }
15
14
  export declare const INPUT_TYPE_PASSWORD = "password";
16
15
  export declare const INPUT_TYPE_TEXT = "text";
17
16
  export declare const ENTER_KEY = "Enter";
@@ -1,17 +1,17 @@
1
- export var DEFAULT_BLUE_LIGHT_ICON_COLOR = '#4799E30D';
2
- export var DEFAULT_BLUE_ICON_COLOR = '#4799E3';
3
- export var DEFAULT_BLUE_ICON_HOVER_COLOR = '#3C82C1';
4
- export var DEFAULT_RED_ICON_COLOR = '#EB5545';
5
- export var DEFAULT_WHITE_LIGHT_ICON_COLOR = '#FFFFFF80';
6
- export var DEFAULT_GRAY_ICON_COLOR = '#1111114D';
7
- export var DEFAULT_BLACK_ICON_COLOR = '#111111';
8
- export var DEFAULT_HEADER_TEXT_COLOR = '#111111';
9
- export var DEFAULT_HEADER_BACKGROUND_COLOR = '#FFFFFF';
10
- export var DEFAULT_WHITE_LOADER_BACKGROUND_COLOR = '#FFFFFF';
11
- export var DEFAULT_GRAY_LOADER_BACKGROUND_COLOR = '#E0E4EC66';
12
- export var DEFAULT_TEXT_BUTTON_COLOR = '#111111';
13
- export var DEFAULT_BACKGROUND_BUTTON_COLOR = '#FFFFFF';
14
- export var DEFAULT_POPUP_BACKGROUND_COLOR = 'rgba(37, 77, 145, 0.2)';
1
+ export var COLORS;
2
+ (function (COLORS) {
3
+ COLORS["lighterBlue"] = "#4799E30D";
4
+ COLORS["lightBlue"] = "rgba(37, 77, 145, 0.2)";
5
+ COLORS["blue"] = "#4799E3";
6
+ COLORS["darkBlue"] = "#3C82C1";
7
+ COLORS["red"] = "#EB5545";
8
+ COLORS["white"] = "#FFFFFF";
9
+ COLORS["white3"] = "#FFFFFF03";
10
+ COLORS["white80"] = "#FFFFFF80";
11
+ COLORS["lightGray"] = "#E0E4EC66";
12
+ COLORS["gray"] = "#1111114D";
13
+ COLORS["black"] = "#111111";
14
+ })(COLORS || (COLORS = {}));
15
15
  export var INPUT_TYPE_PASSWORD = 'password';
16
16
  export var INPUT_TYPE_TEXT = 'text';
17
17
  export var ENTER_KEY = 'Enter';
@@ -41,3 +41,4 @@ export var THEME;
41
41
  export var CANCEL_ACTION_TEXT = 'Отменить';
42
42
  export var NUMBER_OF_STORIES_FOR_ROUND_INDICATORS = 5;
43
43
  export var DEFAULT_FONT_FAMILY = 'Open Sans';
44
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/constants/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,MAYX;AAZD,WAAY,MAAM;IAChB,mCAAyB,CAAA;IACzB,8CAAoC,CAAA;IACpC,0BAAgB,CAAA;IAChB,8BAAoB,CAAA;IACpB,yBAAe,CAAA;IACf,2BAAiB,CAAA;IACjB,8BAAoB,CAAA;IACpB,+BAAqB,CAAA;IACrB,iCAAuB,CAAA;IACvB,4BAAkB,CAAA;IAClB,2BAAiB,CAAA;AACnB,CAAC,EAZW,MAAM,KAAN,MAAM,QAYjB;AAED,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAU,CAAA;AAC7C,MAAM,CAAC,IAAM,eAAe,GAAG,MAAM,CAAA;AACrC,MAAM,CAAC,IAAM,SAAS,GAAG,OAAO,CAAA;AAEhC,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,2BAAc,CAAA;IACd,6BAAgB,CAAA;IAChB,2BAAc,CAAA;AAChB,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAED,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,6BAAc,CAAA;IACd,+BAAgB,CAAA;IAChB,6BAAc,CAAA;AAChB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,MAAM,CAAN,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,+BAAmB,CAAA;AACrB,CAAC,EAJW,QAAQ,KAAR,QAAQ,QAInB;AAED,MAAM,CAAN,IAAY,KAGX;AAHD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,sBAAa,CAAA;AACf,CAAC,EAHW,KAAK,KAAL,KAAK,QAGhB;AAED,MAAM,CAAC,IAAM,kBAAkB,GAAW,UAAU,CAAA;AACpD,MAAM,CAAC,IAAM,sCAAsC,GAAW,CAAC,CAAA;AAC/D,MAAM,CAAC,IAAM,mBAAmB,GAAW,WAAW,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from './constants';
2
+ export * from './types';
@@ -1 +1,3 @@
1
1
  export * from './constants';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface IThemeProps {
2
+ theme?: 'default' | 'dark';
3
+ }
4
+ export interface IPlatformProps {
5
+ platform?: 'web' | 'ios' | 'android';
6
+ }
7
+ export interface ICommonProps extends IThemeProps, IPlatformProps {
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/constants/types.ts"],"names":[],"mappings":""}
@@ -1,7 +1,8 @@
1
+ import { COLORS } from '../constants';
1
2
  export declare const getColor: (color: string | undefined, defaultColor: string) => string;
2
3
  export declare const isWebPlatform: (platform: string) => boolean;
3
4
  export declare const isIosPlatform: (platform: string) => boolean;
4
5
  export declare const isAndroidPlatform: (platform: string) => boolean;
5
6
  export declare const isMobilePlatform: (platform: string) => boolean;
6
7
  export declare const getClassNames: (className: string, delimiter: string, additionalClassName: string | string[]) => string;
7
- export declare const getDefaultColorForCloseIcon: (theme: string) => "#FFFFFF80" | "#1111114D";
8
+ export declare const getDefaultColorForCloseIcon: (theme: string) => COLORS.white80 | COLORS.gray;
@@ -1,6 +1,6 @@
1
1
  import classNames from 'classnames';
2
2
  import { isArray } from 'lodash';
3
- import { DEFAULT_GRAY_ICON_COLOR, DEFAULT_WHITE_LIGHT_ICON_COLOR, PLATFORM, THEME } from '../constants';
3
+ import { COLORS, PLATFORM, THEME } from '../constants';
4
4
  export var getColor = function (color, defaultColor) {
5
5
  return (color && CSS.supports('color', color)) ? color : defaultColor;
6
6
  };
@@ -11,4 +11,5 @@ export var isMobilePlatform = function (platform) { return isAndroidPlatform(pla
11
11
  export var getClassNames = function (className, delimiter, additionalClassName) { return (isArray(additionalClassName)
12
12
  ? classNames(className, additionalClassName.map(function (name) { return "".concat(className).concat(delimiter).concat(name); }))
13
13
  : classNames(className, "".concat(className).concat(delimiter).concat(additionalClassName))); };
14
- export var getDefaultColorForCloseIcon = function (theme) { return theme === THEME.default ? DEFAULT_GRAY_ICON_COLOR : DEFAULT_WHITE_LIGHT_ICON_COLOR; };
14
+ export var getDefaultColorForCloseIcon = function (theme) { return theme === THEME.default ? COLORS.gray : COLORS.white80; };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,CAAC,IAAM,QAAQ,GAAG,UAAC,KAAyB,EAAE,YAAoB;IACtE,OAAA,CAAC,KAAK,IAAI,GAAG,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY;AAA9D,CAA8D,CAAC;AAEjE,MAAM,CAAC,IAAM,aAAa,GAAG,UAAC,QAAgB,IAAK,OAAA,QAAQ,KAAK,QAAQ,CAAC,GAAG,EAAzB,CAAyB,CAAC;AAC7E,MAAM,CAAC,IAAM,aAAa,GAAG,UAAC,QAAgB,IAAK,OAAA,QAAQ,KAAK,QAAQ,CAAC,GAAG,EAAzB,CAAyB,CAAC;AAC7E,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,QAAgB,IAAK,OAAA,QAAQ,KAAK,QAAQ,CAAC,OAAO,EAA7B,CAA6B,CAAC;AACrF,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAC,QAAgB,IAAK,OAAA,iBAAiB,CAAC,QAAQ,CAAC,IAAI,aAAa,CAAC,QAAQ,CAAC,EAAtD,CAAsD,CAAC;AAE7G,MAAM,CAAC,IAAM,aAAa,GAAG,UAAC,SAAiB,EAAE,SAAiB,EAAE,mBAAsC,IAAK,OAAA,CAC7G,OAAO,CAAC,mBAAmB,CAAC;IAC1B,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,mBAAmB,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,UAAG,SAAS,SAAG,SAAS,SAAG,IAAI,CAAE,EAAjC,CAAiC,CAAC,CAAC;IAC3F,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAG,SAAS,SAAG,SAAS,SAAG,mBAAmB,CAAE,CAAC,CAC5E,EAJ8G,CAI9G,CAAC;AAEF,MAAM,CAAC,IAAM,2BAA2B,GAAG,UAAC,KAAa,IAAK,OAAA,KAAK,KAAK,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAtD,CAAsD,CAAC"}
@@ -1,2 +1,3 @@
1
+ export * from './styles';
1
2
  export * from './сomponents';
2
3
  export * from './сomponents/types';
@@ -1,2 +1,4 @@
1
+ export * from './styles';
1
2
  export * from './сomponents';
2
3
  export * from './сomponents/types';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1 @@
1
+ export * from './styles.scss';
@@ -0,0 +1,2 @@
1
+ export * from './styles.scss';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
File without changes