@expressms/smartapp-ui 1.1.5 → 1.1.7

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 (50) hide show
  1. package/build/main/assets/icons/check-mark.svg +2 -2
  2. package/build/main/assets/icons/notification-error.svg +3 -0
  3. package/build/main/assets/icons/notification-info.svg +5 -0
  4. package/build/main/assets/icons/notification-success.svg +4 -0
  5. package/build/main/assets/icons/notification-warning.svg +5 -0
  6. package/build/main/assets/icons/refresh.svg +1 -1
  7. package/build/main/constants/constants.d.ts +4 -2
  8. package/build/main/constants/constants.js +4 -2
  9. package/build/main/helpers/index.d.ts +2 -1
  10. package/build/main/helpers/index.js +6 -2
  11. package/build/main/styles/stories.module.scss +295 -96
  12. package/build/main/styles/styles.min.css +1 -1
  13. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +1 -1
  14. package/build/main//321/201omponents/ActionModal/ActionModal.js +6 -6
  15. package/build/main//321/201omponents/ActionModal/types.d.ts +1 -0
  16. package/build/main//321/201omponents/Button/Button.d.ts +1 -1
  17. package/build/main//321/201omponents/Button/Button.js +3 -2
  18. package/build/main//321/201omponents/Button/types.d.ts +1 -0
  19. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +1 -1
  20. package/build/main//321/201omponents/Checkbox/Checkbox.js +7 -3
  21. package/build/main//321/201omponents/Checkbox/types.d.ts +4 -3
  22. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +1 -1
  23. package/build/main//321/201omponents/Header/Header.d.ts +1 -1
  24. package/build/main//321/201omponents/Header/Header.js +5 -5
  25. package/build/main//321/201omponents/Header/types.d.ts +3 -0
  26. package/build/main//321/201omponents/Input/Input.d.ts +1 -1
  27. package/build/main//321/201omponents/Input/Input.js +4 -4
  28. package/build/main//321/201omponents/Input/types.d.ts +1 -0
  29. package/build/main//321/201omponents/Modal/Modal.d.ts +1 -1
  30. package/build/main//321/201omponents/Modal/Modal.js +4 -4
  31. package/build/main//321/201omponents/Modal/types.d.ts +1 -0
  32. package/build/main//321/201omponents/Notification/Notification.d.ts +4 -0
  33. package/build/main//321/201omponents/Notification/Notification.js +40 -0
  34. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  35. package/build/main//321/201omponents/Notification/index.js +1 -0
  36. package/build/main//321/201omponents/Notification/types.d.ts +14 -0
  37. package/build/main//321/201omponents/Notification/types.js +1 -0
  38. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  39. package/build/main//321/201omponents/RadioButton/RadioButton.js +25 -0
  40. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  41. package/build/main//321/201omponents/RadioButton/index.js +1 -0
  42. package/build/main//321/201omponents/RadioButton/types.d.ts +8 -0
  43. package/build/main//321/201omponents/RadioButton/types.js +1 -0
  44. package/build/main//321/201omponents/Stories/Stories.js +22 -18
  45. package/build/main//321/201omponents/Toggle/Toggle.d.ts +1 -1
  46. package/build/main//321/201omponents/Toggle/Toggle.js +11 -2
  47. package/build/main//321/201omponents/Toggle/types.d.ts +4 -1
  48. package/build/main//321/201omponents/index.d.ts +2 -0
  49. package/build/main//321/201omponents/index.js +2 -0
  50. package/package.json +3 -1
@@ -1,3 +1,3 @@
1
- <svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M9.42871 18C14.3993 18 18.4287 13.9706 18.4287 9C18.4287 4.02944 14.3993 0 9.42871 0C4.45815 0 0.428711 4.02944 0.428711 9C0.428711 13.9706 4.45815 18 9.42871 18ZM8.86036 12.3453L14.1358 7.07023C14.5264 6.67921 14.5264 6.04566 14.1356 5.65486C13.7449 5.26428 13.1112 5.26399 12.7203 5.65486L8.15288 10.2223L6.137 8.20643C5.7463 7.81571 5.11265 7.81571 4.72178 8.20658C4.33098 8.59738 4.33098 9.23115 4.72178 9.62187L7.44499 12.3453C7.83601 12.736 8.46971 12.736 8.86036 12.3453Z" fill="currentColor"/>
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20 10C20 15.5227 15.5227 20 10 20C4.47727 20 0 15.5227 0 10C0 4.47727 4.47727 0 10 0C15.5227 0 20 4.47727 20 10ZM15.1909 7.91364C15.5445 7.55727 15.5427 6.98182 15.1864 6.62818C14.83 6.27364 14.2545 6.27545 13.9009 6.63182L8.22091 12.3464L6.09909 10.2118C5.74545 9.85545 5.17 9.85364 4.81364 10.2073C4.45727 10.5618 4.45545 11.1373 4.81 11.4927L7.57636 14.2773C7.74727 14.4491 7.97909 14.5455 8.22182 14.5455C8.46364 14.5455 8.69545 14.4491 8.86636 14.2773L15.19 7.91364H15.1909Z" fill="currentColor"/>
3
3
  </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.5314 5.99017L19.0614 19.0002L4.00137 19.0002L11.5314 5.99017ZM2.27137 18.0002C1.50137 19.3302 2.46137 21.0002 4.00137 21.0002L19.0614 21.0002C20.6014 21.0002 21.5614 19.3302 20.7914 18.0002L13.2614 4.99017C12.4914 3.66017 10.5714 3.66017 9.80137 4.99017L2.27137 18.0002ZM10.5314 11.0002L10.5314 13.0002C10.5314 13.5502 10.9814 14.0002 11.5314 14.0002C12.0814 14.0002 12.5314 13.5502 12.5314 13.0002L12.5314 11.0002C12.5314 10.4502 12.0814 10.0002 11.5314 10.0002C10.9814 10.0002 10.5314 10.4502 10.5314 11.0002ZM10.5314 16.0002L12.5314 16.0002L12.5314 18.0002L10.5314 18.0002L10.5314 16.0002Z" fill="#C84235"/>
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="icon/info">
3
+ <path id="Vector" d="M11.9951 17C12.5451 17 12.9951 16.55 12.9951 16V12C12.9951 11.45 12.5451 11 11.9951 11C11.4451 11 10.9951 11.45 10.9951 12V16C10.9951 16.55 11.4451 17 11.9951 17ZM11.9851 22.0001C6.46512 22.0001 1.99512 17.52 1.99512 12C1.99512 6.48 6.46512 2 11.9851 2C17.515 2 21.9951 6.48 21.9951 12C21.9951 17.52 17.515 22.0001 11.9851 22.0001ZM11.9951 4.00001C7.57512 4.00001 3.99513 7.58 3.99513 12C3.99513 16.42 7.57512 20 11.9951 20C16.4151 20 19.9951 16.42 19.9951 12C19.9951 7.58 16.4151 4.00001 11.9951 4.00001ZM12.9951 7.00001H10.9951V9H12.9951V7.00001Z" fill="#4799E3"/>
4
+ </g>
5
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M17.0055 9.65883C17.365 9.29928 17.365 8.71634 17.0055 8.3568C16.6459 7.99725 16.063 7.99725 15.7034 8.3568L10.3701 13.6902L8.30092 11.621C7.94137 11.2615 7.35843 11.2615 6.99889 11.621C6.63934 11.9805 6.63934 12.5635 6.99889 12.923L9.71906 15.6432C10.0786 16.0027 10.6615 16.0027 11.0211 15.6432L17.0055 9.65883Z" fill="#4799E3"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M1.99512 12C1.99512 17.52 6.46512 22.0001 11.9851 22.0001C17.515 22.0001 21.9951 17.52 21.9951 12C21.9951 6.48 17.515 2 11.9851 2C6.46512 2 1.99512 6.48 1.99512 12ZM3.99513 12C3.99513 7.58 7.57512 4.00001 11.9951 4.00001C16.4151 4.00001 19.9951 7.58 19.9951 12C19.9951 16.42 16.4151 20 11.9951 20C7.57512 20 3.99513 16.42 3.99513 12Z" fill="#4799E3"/>
4
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="icon/info">
3
+ <path id="Vector" d="M11.9951 17C12.5451 17 12.9951 16.55 12.9951 16V12C12.9951 11.45 12.5451 11 11.9951 11C11.4451 11 10.9951 11.45 10.9951 12V16C10.9951 16.55 11.4451 17 11.9951 17ZM11.9851 22.0001C6.46512 22.0001 1.99512 17.52 1.99512 12C1.99512 6.48 6.46512 2 11.9851 2C17.515 2 21.9951 6.48 21.9951 12C21.9951 17.52 17.515 22.0001 11.9851 22.0001ZM11.9951 4.00001C7.57512 4.00001 3.99513 7.58 3.99513 12C3.99513 16.42 7.57512 20 11.9951 20C16.4151 20 19.9951 16.42 19.9951 12C19.9951 7.58 16.4151 4.00001 11.9951 4.00001ZM12.9951 7.00001H10.9951V9H12.9951V7.00001Z" fill="#FC9E5A"/>
4
+ </g>
5
+ </svg>
@@ -1,3 +1,3 @@
1
1
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M3.56794 9.99964C3.56794 8.12635 4.388 6.44602 5.67438 5.2722L7.58787 7.18569V2.36176H2.76395L4.53272 4.13054C2.95691 5.59379 1.95996 7.67612 1.95996 9.99964C1.95996 13.8617 4.6804 17.0832 8.30458 17.8602C8.77703 17.9615 9.19585 17.5803 9.19585 17.0972C9.19585 16.6848 8.88658 16.3426 8.48574 16.2459C5.66795 15.5657 3.56794 13.0229 3.56794 9.99964ZM18.0397 9.99964C18.0397 6.13764 15.3193 2.91614 11.6951 2.1391C11.2226 2.03781 10.8038 2.41894 10.8038 2.90212C10.8038 3.31447 11.1131 3.65666 11.5139 3.75342C14.3317 4.4336 16.4317 6.97643 16.4317 9.99964C16.4317 11.8729 15.6117 13.5533 14.3253 14.7271L12.4118 12.8136V17.6375H17.2357L15.4669 15.8688C17.0428 14.4055 18.0397 12.3232 18.0397 9.99964Z" fill="#111111" fill-opacity="0.3"/>
2
+ <path d="M3.56794 9.99964C3.56794 8.12635 4.388 6.44602 5.67438 5.2722L7.58787 7.18569V2.36176H2.76395L4.53272 4.13054C2.95691 5.59379 1.95996 7.67612 1.95996 9.99964C1.95996 13.8617 4.6804 17.0832 8.30458 17.8602C8.77703 17.9615 9.19585 17.5803 9.19585 17.0972C9.19585 16.6848 8.88658 16.3426 8.48574 16.2459C5.66795 15.5657 3.56794 13.0229 3.56794 9.99964ZM18.0397 9.99964C18.0397 6.13764 15.3193 2.91614 11.6951 2.1391C11.2226 2.03781 10.8038 2.41894 10.8038 2.90212C10.8038 3.31447 11.1131 3.65666 11.5139 3.75342C14.3317 4.4336 16.4317 6.97643 16.4317 9.99964C16.4317 11.8729 15.6117 13.5533 14.3253 14.7271L12.4118 12.8136V17.6375H17.2357L15.4669 15.8688C17.0428 14.4055 18.0397 12.3232 18.0397 9.99964Z" fill="currentColor" fill-opacity="1"/>
3
3
  </svg>
@@ -1,6 +1,8 @@
1
1
  export declare const DEFAULT_BLUE_LIGHT_ICON_COLOR = "#4799E30D";
2
2
  export declare const DEFAULT_BLUE_ICON_COLOR = "#4799E3";
3
+ export declare const DEFAULT_BLUE_ICON_HOVER_COLOR = "#3C82C1";
3
4
  export declare const DEFAULT_RED_ICON_COLOR = "#EB5545";
5
+ export declare const DEFAULT_WHITE_LIGHT_ICON_COLOR = "#FFFFFF80";
4
6
  export declare const DEFAULT_GRAY_ICON_COLOR = "#1111114D";
5
7
  export declare const DEFAULT_BLACK_ICON_COLOR = "#111111";
6
8
  export declare const DEFAULT_HEADER_TEXT_COLOR = "#111111";
@@ -32,6 +34,6 @@ export declare enum THEME {
32
34
  default = "default",
33
35
  dark = "dark"
34
36
  }
35
- export declare const BUTTON_PADDING: number;
36
- export declare const MAX_PADDING_FOR_IMAGE: number;
37
+ export declare const CANCEL_ACTION_TEXT: string;
38
+ export declare const NUMBER_OF_STORIES_FOR_ROUND_INDICATORS: number;
37
39
  export declare const DEFAULT_FONT_FAMILY: string;
@@ -1,6 +1,8 @@
1
1
  export var DEFAULT_BLUE_LIGHT_ICON_COLOR = '#4799E30D';
2
2
  export var DEFAULT_BLUE_ICON_COLOR = '#4799E3';
3
+ export var DEFAULT_BLUE_ICON_HOVER_COLOR = '#3C82C1';
3
4
  export var DEFAULT_RED_ICON_COLOR = '#EB5545';
5
+ export var DEFAULT_WHITE_LIGHT_ICON_COLOR = '#FFFFFF80';
4
6
  export var DEFAULT_GRAY_ICON_COLOR = '#1111114D';
5
7
  export var DEFAULT_BLACK_ICON_COLOR = '#111111';
6
8
  export var DEFAULT_HEADER_TEXT_COLOR = '#111111';
@@ -36,6 +38,6 @@ export var THEME;
36
38
  THEME["default"] = "default";
37
39
  THEME["dark"] = "dark";
38
40
  })(THEME || (THEME = {}));
39
- export var BUTTON_PADDING = 32;
40
- export var MAX_PADDING_FOR_IMAGE = 200;
41
+ export var CANCEL_ACTION_TEXT = 'Отменить';
42
+ export var NUMBER_OF_STORIES_FOR_ROUND_INDICATORS = 5;
41
43
  export var DEFAULT_FONT_FAMILY = 'Open Sans';
@@ -3,4 +3,5 @@ export declare const isWebPlatform: (platform: string) => boolean;
3
3
  export declare const isIosPlatform: (platform: string) => boolean;
4
4
  export declare const isAndroidPlatform: (platform: string) => boolean;
5
5
  export declare const isMobilePlatform: (platform: string) => boolean;
6
- export declare const getClassNames: (className: string, delimiter: string, platform: string) => string;
6
+ export declare const getClassNames: (className: string, delimiter: string, additionalClassName: string | string[]) => string;
7
+ export declare const getDefaultColorForCloseIcon: (theme: string) => "#FFFFFF80" | "#1111114D";
@@ -1,5 +1,6 @@
1
1
  import classNames from 'classnames';
2
- import { PLATFORM } from '../constants';
2
+ import { isArray } from 'lodash';
3
+ import { DEFAULT_GRAY_ICON_COLOR, DEFAULT_WHITE_LIGHT_ICON_COLOR, PLATFORM, THEME } from '../constants';
3
4
  export var getColor = function (color, defaultColor) {
4
5
  return (color && CSS.supports('color', color)) ? color : defaultColor;
5
6
  };
@@ -7,4 +8,7 @@ export var isWebPlatform = function (platform) { return platform === PLATFORM.we
7
8
  export var isIosPlatform = function (platform) { return platform === PLATFORM.ios; };
8
9
  export var isAndroidPlatform = function (platform) { return platform === PLATFORM.android; };
9
10
  export var isMobilePlatform = function (platform) { return isAndroidPlatform(platform) || isIosPlatform(platform); };
10
- export var getClassNames = function (className, delimiter, platform) { return classNames(className, "".concat(className).concat(delimiter).concat(platform)); };
11
+ export var getClassNames = function (className, delimiter, additionalClassName) { return (isArray(additionalClassName)
12
+ ? classNames(className, additionalClassName.map(function (name) { return "".concat(className).concat(delimiter).concat(name); }))
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; };