siam-ui-utils 1.0.6 → 1.0.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 (84) hide show
  1. package/CustomBootstrap.tsx +10 -0
  2. package/CustomSelectInput.tsx +12 -0
  3. package/IntlMessages.tsx +8 -0
  4. package/dist_browser/src/CustomBootstrap.tsx +10 -0
  5. package/dist_browser/src/CustomSelectInput.tsx +12 -0
  6. package/dist_browser/src/IntlMessages.tsx +8 -0
  7. package/dist_browser/src/constants/defaultValues.ts +7 -0
  8. package/dist_browser/src/iconos/anular-ayuda-icon.tsx +72 -0
  9. package/dist_browser/src/iconos/asesoria-burbuja-button.tsx +102 -0
  10. package/dist_browser/src/iconos/asesoria-burbuja-icon.tsx +102 -0
  11. package/dist_browser/src/iconos/atencion-presencial-icon.tsx +77 -0
  12. package/dist_browser/src/iconos/atencion-telefonica-icon.tsx +42 -0
  13. package/dist_browser/src/iconos/atencion-turno-telefonico-icon.tsx +51 -0
  14. package/dist_browser/src/iconos/atencion-virtual-icon.tsx +35 -0
  15. package/dist_browser/src/iconos/biblioteca-burbuja-button.tsx +57 -0
  16. package/dist_browser/src/iconos/biblioteca-burbuja-icon.tsx +65 -0
  17. package/dist_browser/src/iconos/cancelar-turno-icon.tsx +27 -0
  18. package/dist_browser/src/iconos/codigo-verificacion-icon.tsx +53 -0
  19. package/dist_browser/src/iconos/constants-svg.ts +659 -0
  20. package/dist_browser/src/iconos/curso-autogestionado-color-icon.tsx +202 -0
  21. package/dist_browser/src/iconos/curso-autogestionado-icon.tsx +48 -0
  22. package/dist_browser/src/iconos/curso-burbuja-button.tsx +40 -0
  23. package/dist_browser/src/iconos/curso-burbuja-icon.tsx +96 -0
  24. package/dist_browser/src/iconos/curso-presencial-color-icon.tsx +255 -0
  25. package/dist_browser/src/iconos/curso-presencial-icon.tsx +70 -0
  26. package/dist_browser/src/iconos/curso-virtual-color-icon.tsx +108 -0
  27. package/dist_browser/src/iconos/curso-virtual-icon.tsx +38 -0
  28. package/dist_browser/src/iconos/delegaciones-icon.tsx +65 -0
  29. package/dist_browser/src/iconos/forgot-dni-icon.tsx +41 -0
  30. package/dist_browser/src/iconos/forgot-password-icon.tsx +45 -0
  31. package/dist_browser/src/iconos/icon-button-svg.tsx +52 -0
  32. package/dist_browser/src/iconos/index.ts +42 -0
  33. package/dist_browser/src/iconos/lapiz-act-contacto-perf-button.tsx +43 -0
  34. package/dist_browser/src/iconos/styled-icon.tsx +25 -0
  35. package/dist_browser/src/iconos/user/styled-icon.tsx +24 -0
  36. package/dist_browser/src/iconos/verificar-sin-verificar-icon.tsx +37 -0
  37. package/dist_browser/src/iconos/verificar-verificado-icon.tsx +29 -0
  38. package/dist_browser/src/iconos/whatsapp-icon-button.tsx +40 -0
  39. package/dist_browser/src/index.ts +4 -0
  40. package/index.d.ts +52 -1
  41. package/index.ts +4 -0
  42. package/package.json +7 -3
  43. package/src/CustomBootstrap.tsx +3 -4
  44. package/src/CustomSelectInput.tsx +1 -1
  45. package/src/IntlMessages.tsx +1 -1
  46. package/src/constants/defaultValues.ts +7 -0
  47. package/src/iconos/anular-ayuda-icon.tsx +72 -0
  48. package/src/iconos/asesoria-burbuja-button.tsx +102 -0
  49. package/src/iconos/asesoria-burbuja-icon.tsx +102 -0
  50. package/src/iconos/atencion-presencial-icon.tsx +77 -0
  51. package/src/iconos/atencion-telefonica-icon.tsx +42 -0
  52. package/src/iconos/atencion-turno-telefonico-icon.tsx +51 -0
  53. package/src/iconos/atencion-virtual-icon.tsx +35 -0
  54. package/src/iconos/biblioteca-burbuja-button.tsx +57 -0
  55. package/src/iconos/biblioteca-burbuja-icon.tsx +65 -0
  56. package/src/iconos/cancelar-turno-icon.tsx +27 -0
  57. package/src/iconos/codigo-verificacion-icon.tsx +53 -0
  58. package/src/iconos/constants-svg.ts +659 -0
  59. package/src/iconos/curso-autogestionado-color-icon.tsx +202 -0
  60. package/src/iconos/curso-autogestionado-icon.tsx +48 -0
  61. package/src/iconos/curso-burbuja-button.tsx +40 -0
  62. package/src/iconos/curso-burbuja-icon.tsx +96 -0
  63. package/src/iconos/curso-presencial-color-icon.tsx +255 -0
  64. package/src/iconos/curso-presencial-icon.tsx +70 -0
  65. package/src/iconos/curso-virtual-color-icon.tsx +108 -0
  66. package/src/iconos/curso-virtual-icon.tsx +38 -0
  67. package/src/iconos/delegaciones-icon.tsx +65 -0
  68. package/src/iconos/forgot-dni-icon.tsx +41 -0
  69. package/src/iconos/forgot-password-icon.tsx +45 -0
  70. package/src/iconos/icon-button-svg.tsx +52 -0
  71. package/src/iconos/index.ts +42 -0
  72. package/src/iconos/lapiz-act-contacto-perf-button.tsx +43 -0
  73. package/src/iconos/styled-icon.tsx +25 -0
  74. package/src/iconos/user/styled-icon.tsx +24 -0
  75. package/src/iconos/verificar-sin-verificar-icon.tsx +37 -0
  76. package/src/iconos/verificar-verificado-icon.tsx +29 -0
  77. package/src/iconos/whatsapp-icon-button.tsx +40 -0
  78. package/src/index.ts +2 -1
  79. package/tsconfig.json +4 -0
  80. package/dist_browser/CustomBootstrap.js +0 -23
  81. package/dist_browser/CustomSelectInput.js +0 -23
  82. package/dist_browser/IntlMessages.js +0 -20
  83. package/dist_browser/index.js +0 -19
  84. package/src/constants/defaultValue.ts +0 -2
@@ -0,0 +1,40 @@
1
+ import React from "react";
2
+ import { withTheme } from 'styled-components';
3
+ import { Icon } from './styled-icon';
4
+
5
+ const WhatsappIconButton = (props: any) => {
6
+ const { phone = '', width = '', height = '', sublabel = '' } = props || {};
7
+ return (
8
+ <Icon
9
+ width={width}
10
+ height={height}
11
+ display={sublabel !== '' ? 'block' : 'none'}
12
+ onClick={() =>
13
+ window.open(
14
+ `https://api.whatsapp.com/send/?phone=${phone}&text=&app_absent=0`,
15
+ '_blank'
16
+ )
17
+ }
18
+ >
19
+ <svg
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ version="1.1"
22
+ viewBox="0 0 23.687 23.688"
23
+ >
24
+ <path
25
+ fill="#99CC33"
26
+ d="M12.906,3.301c-5.344,0-9.687,4.348-9.687,9.69c0,1.778,0.482,3.509,1.406,5.022l-1.387,4.159
27
+ C3.19,22.311,3.227,22.46,3.33,22.566c0.076,0.073,0.175,0.112,0.275,0.112c0.045,0,0.082-0.003,0.126-0.019l4.154-1.385
28
+ c1.516,0.918,3.246,1.403,5.021,1.403c5.343,0,9.688-4.346,9.688-9.688S18.249,3.301,12.906,3.301z M19.107,16.912
29
+ c0,0.338-0.14,0.671-0.379,0.91l-1.009,0.996c-0.24,0.241-0.565,0.373-0.899,0.373h-0.05c-5.414-0.233-9.833-4.65-10.065-10.061
30
+ C6.691,8.778,6.828,8.428,7.078,8.176l0.995-1.008c0.241-0.238,0.574-0.38,0.915-0.38h0.373c0.531,0,1.015,0.333,1.201,0.834
31
+ l0.883,2.345c0.171,0.457,0.066,0.98-0.271,1.337l-0.364,0.383c-0.168,0.176-0.185,0.444-0.05,0.641
32
+ c0.448,0.65,1.411,1.88,2.814,2.824c0.192,0.129,0.457,0.105,0.628-0.058l0.395-0.372c0.353-0.336,0.876-0.44,1.333-0.271
33
+ l2.345,0.884c0.498,0.188,0.833,0.669,0.833,1.201V16.912z"
34
+ />
35
+ </svg>
36
+ </Icon>
37
+ );
38
+ };
39
+ WhatsappIconButton.defaultProps = { theme: {} };
40
+ export default withTheme(WhatsappIconButton);
package/src/index.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./CustomBootstrap";
2
2
  export * from "./CustomSelectInput";
3
- export * from "./IntlMessages";
3
+ export * from "./IntlMessages";
4
+ export * from "./iconos";
package/tsconfig.json CHANGED
@@ -12,11 +12,15 @@
12
12
  "forceConsistentCasingInFileNames": true,
13
13
  "module": "commonjs",
14
14
  "moduleResolution": "node",
15
+ "noImplicitReturns": true,
15
16
  "resolveJsonModule": true,
16
17
  "isolatedModules": true,
17
18
  "noEmit": true,
18
19
  "jsx": "react",
19
20
  "noFallthroughCasesInSwitch": true,
21
+ "esModuleInterop": true,
22
+ "experimentalDecorators": true,
23
+ "allowSyntheticDefaultImports": true
20
24
  },
21
25
  "include": [
22
26
  "src",
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Separator = exports.Colxx = void 0;
15
- var React = require("react");
16
- var reactstrap_1 = require("reactstrap");
17
- var Colxx = function (props) { return (React.createElement(reactstrap_1.Col, __assign({}, props, { widths: ['xxs', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl'] }))); };
18
- exports.Colxx = Colxx;
19
- var Separator = function (_a) {
20
- var className = _a.className;
21
- return (React.createElement("div", { className: "separator ".concat(className) }));
22
- };
23
- exports.Separator = Separator;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.CustomSelectInput = void 0;
15
- var React = require("react");
16
- var react_select_1 = require("react-select");
17
- var CustomSelectInput = function (props) {
18
- var customProps = __assign({}, props);
19
- delete customProps.autoCorrect;
20
- delete customProps.autoCapitalize;
21
- return React.createElement(react_select_1.components.Input, __assign({}, customProps));
22
- };
23
- exports.CustomSelectInput = CustomSelectInput;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.IntlMessages = void 0;
15
- var React = require("react");
16
- var react_intl_1 = require("react-intl");
17
- var _InjectMassage = function (props) { return React.createElement(react_intl_1.FormattedMessage, __assign({}, props)); };
18
- exports.IntlMessages = (0, react_intl_1.injectIntl)(_InjectMassage, {
19
- withRef: false,
20
- });
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./CustomBootstrap"), exports);
18
- __exportStar(require("./CustomSelectInput"), exports);
19
- __exportStar(require("./IntlMessages"), exports);
@@ -1,2 +0,0 @@
1
- // Tiempo para los mensajes de notificacion
2
- export const timeOutMsBox = 6000;