@expressms/smartapp-ui 1.1.6 → 1.1.8

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 (47) hide show
  1. package/build/main/assets/icons/refresh.svg +1 -1
  2. package/build/main/assets/icons/story-loader.svg +3 -0
  3. package/build/main/constants/constants.d.ts +13 -13
  4. package/build/main/constants/constants.js +14 -13
  5. package/build/main/constants/index.d.ts +1 -0
  6. package/build/main/constants/index.js +1 -0
  7. package/build/main/constants/types.d.ts +8 -0
  8. package/build/main/constants/types.js +1 -0
  9. package/build/main/helpers/index.d.ts +3 -1
  10. package/build/main/helpers/index.js +6 -2
  11. package/build/main/styles/main.js +0 -0
  12. package/build/main/styles/stories.module.scss +167 -55
  13. package/build/main/styles/styles.min.css +30 -77
  14. package/build/main/styles/styles.scss +13 -0
  15. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +1 -1
  16. package/build/main//321/201omponents/ActionModal/ActionModal.js +9 -9
  17. package/build/main//321/201omponents/ActionModal/types.d.ts +2 -2
  18. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +3 -3
  19. package/build/main//321/201omponents/Button/Button.d.ts +1 -1
  20. package/build/main//321/201omponents/Button/Button.js +3 -2
  21. package/build/main//321/201omponents/Button/types.d.ts +2 -1
  22. package/build/main//321/201omponents/Checkbox/Checkbox.js +3 -3
  23. package/build/main//321/201omponents/Chips/Chips.js +2 -2
  24. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +4 -4
  25. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +2 -2
  26. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +2 -2
  27. package/build/main//321/201omponents/Error/Error.js +2 -2
  28. package/build/main//321/201omponents/Header/Header.js +6 -6
  29. package/build/main//321/201omponents/Header/types.d.ts +3 -2
  30. package/build/main//321/201omponents/Input/Input.d.ts +1 -1
  31. package/build/main//321/201omponents/Input/Input.js +4 -4
  32. package/build/main//321/201omponents/Input/types.d.ts +2 -1
  33. package/build/main//321/201omponents/Loader/Loader.d.ts +1 -1
  34. package/build/main//321/201omponents/Loader/Loader.js +8 -5
  35. package/build/main//321/201omponents/Loader/types.d.ts +2 -1
  36. package/build/main//321/201omponents/Modal/Modal.d.ts +1 -1
  37. package/build/main//321/201omponents/Modal/Modal.js +7 -7
  38. package/build/main//321/201omponents/Modal/types.d.ts +2 -2
  39. package/build/main//321/201omponents/Notification/types.d.ts +2 -2
  40. package/build/main//321/201omponents/Profile/Profile.js +4 -4
  41. package/build/main//321/201omponents/RadioButton/RadioButton.js +3 -3
  42. package/build/main//321/201omponents/Stories/Stories.js +30 -8
  43. package/build/main//321/201omponents/Stories/types.d.ts +4 -3
  44. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +2 -2
  45. package/build/main//321/201omponents/SyncLoader/types.d.ts +2 -2
  46. package/build/main//321/201omponents/Toggle/Toggle.js +3 -3
  47. package/package.json +3 -1
@@ -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>
@@ -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,16 +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_GRAY_ICON_COLOR = "#1111114D";
6
- export declare const DEFAULT_BLACK_ICON_COLOR = "#111111";
7
- export declare const DEFAULT_HEADER_TEXT_COLOR = "#111111";
8
- export declare const DEFAULT_HEADER_BACKGROUND_COLOR = "#FFFFFF";
9
- export declare const DEFAULT_WHITE_LOADER_BACKGROUND_COLOR = "#FFFFFF";
10
- export declare const DEFAULT_GRAY_LOADER_BACKGROUND_COLOR = "#E0E4EC66";
11
- export declare const DEFAULT_TEXT_BUTTON_COLOR = "#111111";
12
- export declare const DEFAULT_BACKGROUND_BUTTON_COLOR = "#FFFFFF";
13
- 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
+ }
14
14
  export declare const INPUT_TYPE_PASSWORD = "password";
15
15
  export declare const INPUT_TYPE_TEXT = "text";
16
16
  export declare const ENTER_KEY = "Enter";
@@ -1,16 +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_GRAY_ICON_COLOR = '#1111114D';
6
- export var DEFAULT_BLACK_ICON_COLOR = '#111111';
7
- export var DEFAULT_HEADER_TEXT_COLOR = '#111111';
8
- export var DEFAULT_HEADER_BACKGROUND_COLOR = '#FFFFFF';
9
- export var DEFAULT_WHITE_LOADER_BACKGROUND_COLOR = '#FFFFFF';
10
- export var DEFAULT_GRAY_LOADER_BACKGROUND_COLOR = '#E0E4EC66';
11
- export var DEFAULT_TEXT_BUTTON_COLOR = '#111111';
12
- export var DEFAULT_BACKGROUND_BUTTON_COLOR = '#FFFFFF';
13
- 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 = {}));
14
15
  export var INPUT_TYPE_PASSWORD = 'password';
15
16
  export var INPUT_TYPE_TEXT = 'text';
16
17
  export var ENTER_KEY = 'Enter';
@@ -1 +1,2 @@
1
1
  export * from './constants';
2
+ export * from './types';
@@ -1 +1,2 @@
1
1
  export * from './constants';
2
+ export * from './types';
@@ -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 @@
1
+ export {};
@@ -1,6 +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
- export declare const getClassNames: (className: string, delimiter: string, additionalClassName: string) => string;
7
+ export declare const getClassNames: (className: string, delimiter: string, additionalClassName: string | string[]) => string;
8
+ export declare const getDefaultColorForCloseIcon: (theme: string) => COLORS.white80 | COLORS.gray;
@@ -1,5 +1,6 @@
1
1
  import classNames from 'classnames';
2
- import { PLATFORM } from '../constants';
2
+ import { isArray } from 'lodash';
3
+ import { COLORS, 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, additionalClassName) { return (classNames(className, "".concat(className).concat(delimiter).concat(additionalClassName))); };
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 ? COLORS.gray : COLORS.white80; };
File without changes