siam-ui-utils 3.0.28 → 3.0.30

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 (114) hide show
  1. package/dist/CustomBootstrap.js +9 -9
  2. package/dist/_virtual/_commonjsHelpers.js +7 -7
  3. package/dist/_virtual/events.js +6 -6
  4. package/dist/_virtual/events2.js +5 -5
  5. package/dist/_virtual/index.js +8 -8
  6. package/dist/_virtual/index2.js +5 -5
  7. package/dist/_virtual/react-dropzone.js +8 -8
  8. package/dist/_virtual/react-dropzone2.js +5 -5
  9. package/dist/assets/img/copiar.png.js +5 -5
  10. package/dist/assets/img/take-photo.jpg.js +5 -5
  11. package/dist/constants.js +9 -9
  12. package/dist/copy-link/index.js +60 -60
  13. package/dist/copy-link/styles.css +37 -37
  14. package/dist/custom-input/CustomInputCheckbox.js +36 -36
  15. package/dist/custom-input/CustomInputCurrency.js +85 -85
  16. package/dist/custom-input/CustomInputFile.js +46 -46
  17. package/dist/custom-input/CustomInputRadio.js +67 -67
  18. package/dist/custom-input/constant.js +5 -5
  19. package/dist/custom-input/index.js +12 -14
  20. package/dist/custom-input/index.js.map +1 -1
  21. package/dist/drag-and-dropzone/config.js +59 -59
  22. package/dist/drag-and-dropzone/index.js +39 -39
  23. package/dist/dropzone/Input.js +77 -77
  24. package/dist/dropzone/Layout.js +50 -50
  25. package/dist/dropzone/Preview.js +117 -117
  26. package/dist/dropzone/SubmitButton.js +34 -34
  27. package/dist/dropzone/assets/cancel.svg.js +5 -5
  28. package/dist/dropzone/assets/remove.svg.js +5 -5
  29. package/dist/dropzone/assets/restart.svg.js +5 -5
  30. package/dist/dropzone/index.js +514 -514
  31. package/dist/dropzone/utils.js +93 -93
  32. package/dist/dropzone-uploader/base/index.js +135 -135
  33. package/dist/dropzone-uploader/index.js +7 -7
  34. package/dist/dropzone-uploader/styled/index.js +149 -149
  35. package/dist/iconos/constants-svg.js +666 -666
  36. package/dist/iconos/icon-button-svg.js +50 -50
  37. package/dist/iconos/index.js +24 -24
  38. package/dist/iconos/styled-icon.js +26 -26
  39. package/dist/index.js +4 -4
  40. package/dist/intl-messages/index.js +11 -11
  41. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -8
  42. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +13 -13
  43. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +8 -8
  44. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +13 -13
  45. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -9
  46. package/dist/node_modules/classnames/index.js +62 -62
  47. package/dist/node_modules/dom-helpers/esm/addClass.js +10 -10
  48. package/dist/node_modules/dom-helpers/esm/hasClass.js +8 -8
  49. package/dist/node_modules/dom-helpers/esm/removeClass.js +16 -16
  50. package/dist/node_modules/events/events.js +372 -372
  51. package/dist/node_modules/react-dropzone-component/dist/react-dropzone.js +1023 -1023
  52. package/dist/node_modules/react-multi-select-component/dist/esm/index.js +178 -178
  53. package/dist/node_modules/react-transition-group/esm/CSSTransition.js +275 -275
  54. package/dist/node_modules/react-transition-group/esm/Transition.js +441 -441
  55. package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +146 -146
  56. package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.js +6 -6
  57. package/dist/node_modules/react-transition-group/esm/config.js +7 -7
  58. package/dist/node_modules/react-transition-group/esm/utils/ChildMapping.js +100 -100
  59. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +24 -24
  60. package/dist/node_modules/react-transition-group/esm/utils/reflow.js +7 -7
  61. package/dist/react-notifications/Notification.js +73 -73
  62. package/dist/react-notifications/NotificationContainer.js +59 -59
  63. package/dist/react-notifications/NotificationManager.js +174 -174
  64. package/dist/react-notifications/Notifications.js +72 -72
  65. package/dist/react-notifications/constants.js +26 -26
  66. package/dist/react-notifications/index.js +11 -11
  67. package/dist/select/custom-select/constants.js +8 -8
  68. package/dist/select/custom-select/index.js +90 -90
  69. package/dist/select/custom-select-input/index.js +12 -12
  70. package/dist/select/index.js +9 -9
  71. package/dist/select/multi-select/badge-label-multi-select.js +29 -29
  72. package/dist/select/multi-select/index.css +23 -23
  73. package/dist/select/multi-select/index.js +63 -63
  74. package/dist/select/multi-select/styled-component.js +24 -24
  75. package/dist/timer/index.js +60 -60
  76. package/dist/timer/styles.css +58 -58
  77. package/dist/tomar-foto/index.js +62 -62
  78. package/dist/view-layout/button-editor.js +14 -14
  79. package/dist/view-layout/constants.js +11 -11
  80. package/dist/view-layout/editor-layer.js +28 -28
  81. package/dist/view-layout/index.js +53 -53
  82. package/dist/view-layout/slot-wrapper.js +39 -39
  83. package/dist/view-layout/styles.css +126 -126
  84. package/dist/where-by-room/index.js +20 -20
  85. package/dist/where-by-room/room.js +78 -78
  86. package/package.json +1 -1
  87. package/dist/_virtual/browser.js +0 -8
  88. package/dist/_virtual/browser.js.map +0 -1
  89. package/dist/_virtual/warning.js +0 -8
  90. package/dist/_virtual/warning.js.map +0 -1
  91. package/dist/custom-input/customInputMask/children-wrapper.js +0 -12
  92. package/dist/custom-input/customInputMask/children-wrapper.js.map +0 -1
  93. package/dist/custom-input/customInputMask/constants.js +0 -19
  94. package/dist/custom-input/customInputMask/constants.js.map +0 -1
  95. package/dist/custom-input/customInputMask/hooks.js +0 -159
  96. package/dist/custom-input/customInputMask/hooks.js.map +0 -1
  97. package/dist/custom-input/customInputMask/index.js +0 -184
  98. package/dist/custom-input/customInputMask/index.js.map +0 -1
  99. package/dist/custom-input/customInputMask/utils/defer.js +0 -11
  100. package/dist/custom-input/customInputMask/utils/defer.js.map +0 -1
  101. package/dist/custom-input/customInputMask/utils/helpers.js +0 -42
  102. package/dist/custom-input/customInputMask/utils/helpers.js.map +0 -1
  103. package/dist/custom-input/customInputMask/utils/input.js +0 -25
  104. package/dist/custom-input/customInputMask/utils/input.js.map +0 -1
  105. package/dist/custom-input/customInputMask/utils/mask.js +0 -220
  106. package/dist/custom-input/customInputMask/utils/mask.js.map +0 -1
  107. package/dist/custom-input/customInputMask/utils/parse-mask.js +0 -72
  108. package/dist/custom-input/customInputMask/utils/parse-mask.js.map +0 -1
  109. package/dist/custom-input/customInputMask/validate-props.js +0 -35
  110. package/dist/custom-input/customInputMask/validate-props.js.map +0 -1
  111. package/dist/node_modules/invariant/browser.js +0 -39
  112. package/dist/node_modules/invariant/browser.js.map +0 -1
  113. package/dist/node_modules/warning/warning.js +0 -51
  114. package/dist/node_modules/warning/warning.js.map +0 -1
@@ -1,72 +1,72 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { Component, createRef } from "react";
3
- import PropTypes from "prop-types";
4
- import classnames from "../_virtual/index.js";
5
- import Notification from "./Notification.js";
6
- import TransitionGroup from "../node_modules/react-transition-group/esm/TransitionGroup.js";
7
- import CSSTransition from "../node_modules/react-transition-group/esm/CSSTransition.js";
8
- class Notifications extends Component {
9
- constructor(props) {
10
- super(props);
11
- this.nodeRefs = {};
12
- }
13
- handleRequestHide = (notification) => () => {
14
- const { onRequestHide } = this.props;
15
- if (onRequestHide) {
16
- onRequestHide(notification);
17
- }
18
- };
19
- getNodeRef = (key) => {
20
- if (!this.nodeRefs[key]) {
21
- this.nodeRefs[key] = createRef();
22
- }
23
- return this.nodeRefs[key];
24
- };
25
- render() {
26
- const {
27
- notifications = [],
28
- enterTimeout = 400,
29
- leaveTimeout = 400
30
- } = this.props;
31
- const className = classnames("notification-container", {
32
- "notification-container-empty": notifications.length === 0
33
- });
34
- return /* @__PURE__ */ jsx("div", { className, children: /* @__PURE__ */ jsx(TransitionGroup, { children: notifications.map((notification) => {
35
- const key = notification.id || (/* @__PURE__ */ new Date()).getTime();
36
- const nodeRef = this.getNodeRef(key);
37
- return /* @__PURE__ */ jsx(
38
- CSSTransition,
39
- {
40
- classNames: "notification",
41
- timeout: { exit: leaveTimeout, enter: enterTimeout },
42
- nodeRef,
43
- children: /* @__PURE__ */ jsx(
44
- Notification,
45
- {
46
- ref: nodeRef,
47
- type: notification.type,
48
- title: notification.title,
49
- message: notification.message,
50
- timeOut: notification.timeOut,
51
- onClick: notification.onClick,
52
- onRequestHide: this.handleRequestHide(notification),
53
- customClassName: notification.customClassName
54
- },
55
- key
56
- )
57
- },
58
- key
59
- );
60
- }) }) });
61
- }
62
- }
63
- Notifications.propTypes = {
64
- notifications: PropTypes.array,
65
- onRequestHide: PropTypes.func,
66
- enterTimeout: PropTypes.number,
67
- leaveTimeout: PropTypes.number
68
- };
69
- export {
70
- Notifications as default
71
- };
72
- //# sourceMappingURL=Notifications.js.map
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Component, createRef } from "react";
3
+ import PropTypes from "prop-types";
4
+ import classnames from "../_virtual/index.js";
5
+ import Notification from "./Notification.js";
6
+ import TransitionGroup from "../node_modules/react-transition-group/esm/TransitionGroup.js";
7
+ import CSSTransition from "../node_modules/react-transition-group/esm/CSSTransition.js";
8
+ class Notifications extends Component {
9
+ constructor(props) {
10
+ super(props);
11
+ this.nodeRefs = {};
12
+ }
13
+ handleRequestHide = (notification) => () => {
14
+ const { onRequestHide } = this.props;
15
+ if (onRequestHide) {
16
+ onRequestHide(notification);
17
+ }
18
+ };
19
+ getNodeRef = (key) => {
20
+ if (!this.nodeRefs[key]) {
21
+ this.nodeRefs[key] = createRef();
22
+ }
23
+ return this.nodeRefs[key];
24
+ };
25
+ render() {
26
+ const {
27
+ notifications = [],
28
+ enterTimeout = 400,
29
+ leaveTimeout = 400
30
+ } = this.props;
31
+ const className = classnames("notification-container", {
32
+ "notification-container-empty": notifications.length === 0
33
+ });
34
+ return /* @__PURE__ */ jsx("div", { className, children: /* @__PURE__ */ jsx(TransitionGroup, { children: notifications.map((notification) => {
35
+ const key = notification.id || (/* @__PURE__ */ new Date()).getTime();
36
+ const nodeRef = this.getNodeRef(key);
37
+ return /* @__PURE__ */ jsx(
38
+ CSSTransition,
39
+ {
40
+ classNames: "notification",
41
+ timeout: { exit: leaveTimeout, enter: enterTimeout },
42
+ nodeRef,
43
+ children: /* @__PURE__ */ jsx(
44
+ Notification,
45
+ {
46
+ ref: nodeRef,
47
+ type: notification.type,
48
+ title: notification.title,
49
+ message: notification.message,
50
+ timeOut: notification.timeOut,
51
+ onClick: notification.onClick,
52
+ onRequestHide: this.handleRequestHide(notification),
53
+ customClassName: notification.customClassName
54
+ },
55
+ key
56
+ )
57
+ },
58
+ key
59
+ );
60
+ }) }) });
61
+ }
62
+ }
63
+ Notifications.propTypes = {
64
+ notifications: PropTypes.array,
65
+ onRequestHide: PropTypes.func,
66
+ enterTimeout: PropTypes.number,
67
+ leaveTimeout: PropTypes.number
68
+ };
69
+ export {
70
+ Notifications as default
71
+ };
72
+ //# sourceMappingURL=Notifications.js.map
@@ -1,26 +1,26 @@
1
- const TYPES = {
2
- CHANGE: "change",
3
- ERROR: "error",
4
- INFO: "info",
5
- PRIMARY: "primary",
6
- SECONDARY: "secondary",
7
- SUCCESS: "success",
8
- WARNING: "warning"
9
- };
10
- const TITLES = {
11
- AVISO: "AVISO",
12
- ERROR: "ERROR",
13
- EXITO: "EXITO",
14
- INFORMACION: "INFORMACION",
15
- PRIMARIO: "PRIMARIO",
16
- SECUNDARIO: "SECUNDARIO"
17
- };
18
- const DEFAULT_VALUES = {
19
- TIMEOUT: 5e3
20
- };
21
- export {
22
- DEFAULT_VALUES,
23
- TITLES,
24
- TYPES
25
- };
26
- //# sourceMappingURL=constants.js.map
1
+ const TYPES = {
2
+ CHANGE: "change",
3
+ ERROR: "error",
4
+ INFO: "info",
5
+ PRIMARY: "primary",
6
+ SECONDARY: "secondary",
7
+ SUCCESS: "success",
8
+ WARNING: "warning"
9
+ };
10
+ const TITLES = {
11
+ AVISO: "AVISO",
12
+ ERROR: "ERROR",
13
+ EXITO: "EXITO",
14
+ INFORMACION: "INFORMACION",
15
+ PRIMARIO: "PRIMARIO",
16
+ SECUNDARIO: "SECUNDARIO"
17
+ };
18
+ const DEFAULT_VALUES = {
19
+ TIMEOUT: 5e3
20
+ };
21
+ export {
22
+ DEFAULT_VALUES,
23
+ TITLES,
24
+ TYPES
25
+ };
26
+ //# sourceMappingURL=constants.js.map
@@ -1,11 +1,11 @@
1
- import "./notifications.css";
2
- import Notifications from "./Notifications.js";
3
- import { default as default2 } from "./NotificationContainer.js";
4
- import { default as default3 } from "./NotificationManager.js";
5
- export {
6
- default2 as NotificationContainer,
7
- default3 as NotificationManager,
8
- Notifications,
9
- Notifications as default
10
- };
11
- //# sourceMappingURL=index.js.map
1
+ import "./notifications.css";
2
+ import Notifications from "./Notifications.js";
3
+ import { default as default2 } from "./NotificationContainer.js";
4
+ import { default as default3 } from "./NotificationManager.js";
5
+ export {
6
+ default2 as NotificationContainer,
7
+ default3 as NotificationManager,
8
+ Notifications,
9
+ Notifications as default
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- const LABELS = {
2
- SIN_DATOS: "SIN DATOS",
3
- SELECCIONE: "SELECCIONE..."
4
- };
5
- export {
6
- LABELS
7
- };
8
- //# sourceMappingURL=constants.js.map
1
+ const LABELS = {
2
+ SIN_DATOS: "SIN DATOS",
3
+ SELECCIONE: "SELECCIONE..."
4
+ };
5
+ export {
6
+ LABELS
7
+ };
8
+ //# sourceMappingURL=constants.js.map
@@ -1,90 +1,90 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { useState, useEffect } from "react";
3
- import Select from "react-select";
4
- import { Label } from "reactstrap";
5
- import { CustomSelectInput } from "../custom-select-input/index.js";
6
- import { LABELS } from "./constants.js";
7
- import "react-tagsinput/react-tagsinput.css";
8
- const { SIN_DATOS, SELECCIONE } = LABELS;
9
- const CustomSelect = (props) => {
10
- const [firstElement] = useState(props.firstElement);
11
- const [newItem] = useState(props.newItem);
12
- const [selectedIoption, setIoption] = useState({});
13
- const [customStylesOption] = useState(props.customStylesOption);
14
- const [customStyles, setCustomStyles] = useState({});
15
- useEffect(() => {
16
- if (newItem) {
17
- props.options.push(newItem);
18
- }
19
- }, [newItem, props.options]);
20
- useEffect(() => {
21
- const { options = [] } = props;
22
- if (firstElement && Number(options?.length) > 1) {
23
- const propIOption = options.filter((item) => item === firstElement);
24
- if (propIOption?.length === 0) {
25
- props.options.unshift(firstElement);
26
- }
27
- }
28
- }, [firstElement, props.options]);
29
- useEffect(() => {
30
- const { selectedValue } = props;
31
- const errorProp = { value: null };
32
- if (selectedValue || firstElement && firstElement.value === selectedValue) {
33
- const propIOption = props.options.filter(({ value }) => {
34
- return JSON.stringify(value) === JSON.stringify(selectedValue);
35
- });
36
- if (propIOption[0]) {
37
- setIoption(propIOption[0]);
38
- if (!Object.getOwnPropertyDescriptor(selectedIoption, "label")) {
39
- props.onChange(propIOption[0]);
40
- }
41
- } else {
42
- setIoption(errorProp);
43
- props.onChange(errorProp);
44
- }
45
- } else if (props.options.length > 0) {
46
- setIoption(errorProp);
47
- props.onChange(errorProp);
48
- }
49
- }, [props.selectedValue, props.options, firstElement]);
50
- useEffect(() => {
51
- if (customStylesOption) {
52
- const stylesOption = {
53
- option: (base, { data }) => {
54
- return {
55
- ...base,
56
- color: data.fields && data.fields[customStylesOption.fieldMatch] === customStylesOption.valueMatch ? "blue !important" : "",
57
- fontWeight: data.fields && data.fields[customStylesOption.fieldMatch] === customStylesOption.valueMatch ? "bold" : ""
58
- };
59
- }
60
- };
61
- setCustomStyles(stylesOption);
62
- }
63
- }, [customStylesOption]);
64
- return /* @__PURE__ */ jsxs(Fragment, { children: [
65
- props.label && props.label !== "" && /* @__PURE__ */ jsxs(Label, { className: "mb-0", children: [
66
- props.label,
67
- ":"
68
- ] }),
69
- /* @__PURE__ */ jsx(
70
- Select,
71
- {
72
- ...props,
73
- components: { Input: CustomSelectInput },
74
- className: "react-select",
75
- classNamePrefix: "react-select",
76
- name: "form-field-name",
77
- value: Object.getOwnPropertyDescriptor(selectedIoption, "label") ? selectedIoption : "",
78
- onChange: props.onChange,
79
- options: props.options,
80
- placeholder: Number(props.options.length) === 0 ? SIN_DATOS : props.placeholder || SELECCIONE,
81
- isDisabled: props.disabled,
82
- styles: customStyles
83
- }
84
- )
85
- ] });
86
- };
87
- export {
88
- CustomSelect
89
- };
90
- //# sourceMappingURL=index.js.map
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import { useState, useEffect } from "react";
3
+ import Select from "react-select";
4
+ import { Label } from "reactstrap";
5
+ import { CustomSelectInput } from "../custom-select-input/index.js";
6
+ import { LABELS } from "./constants.js";
7
+ import "react-tagsinput/react-tagsinput.css";
8
+ const { SIN_DATOS, SELECCIONE } = LABELS;
9
+ const CustomSelect = (props) => {
10
+ const [firstElement] = useState(props.firstElement);
11
+ const [newItem] = useState(props.newItem);
12
+ const [selectedIoption, setIoption] = useState({});
13
+ const [customStylesOption] = useState(props.customStylesOption);
14
+ const [customStyles, setCustomStyles] = useState({});
15
+ useEffect(() => {
16
+ if (newItem) {
17
+ props.options.push(newItem);
18
+ }
19
+ }, [newItem, props.options]);
20
+ useEffect(() => {
21
+ const { options = [] } = props;
22
+ if (firstElement && Number(options?.length) > 1) {
23
+ const propIOption = options.filter((item) => item === firstElement);
24
+ if (propIOption?.length === 0) {
25
+ props.options.unshift(firstElement);
26
+ }
27
+ }
28
+ }, [firstElement, props.options]);
29
+ useEffect(() => {
30
+ const { selectedValue } = props;
31
+ const errorProp = { value: null };
32
+ if (selectedValue || firstElement && firstElement.value === selectedValue) {
33
+ const propIOption = props.options.filter(({ value }) => {
34
+ return JSON.stringify(value) === JSON.stringify(selectedValue);
35
+ });
36
+ if (propIOption[0]) {
37
+ setIoption(propIOption[0]);
38
+ if (!Object.getOwnPropertyDescriptor(selectedIoption, "label")) {
39
+ props.onChange(propIOption[0]);
40
+ }
41
+ } else {
42
+ setIoption(errorProp);
43
+ props.onChange(errorProp);
44
+ }
45
+ } else if (props.options.length > 0) {
46
+ setIoption(errorProp);
47
+ props.onChange(errorProp);
48
+ }
49
+ }, [props.selectedValue, props.options, firstElement]);
50
+ useEffect(() => {
51
+ if (customStylesOption) {
52
+ const stylesOption = {
53
+ option: (base, { data }) => {
54
+ return {
55
+ ...base,
56
+ color: data.fields && data.fields[customStylesOption.fieldMatch] === customStylesOption.valueMatch ? "blue !important" : "",
57
+ fontWeight: data.fields && data.fields[customStylesOption.fieldMatch] === customStylesOption.valueMatch ? "bold" : ""
58
+ };
59
+ }
60
+ };
61
+ setCustomStyles(stylesOption);
62
+ }
63
+ }, [customStylesOption]);
64
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
65
+ props.label && props.label !== "" && /* @__PURE__ */ jsxs(Label, { className: "mb-0", children: [
66
+ props.label,
67
+ ":"
68
+ ] }),
69
+ /* @__PURE__ */ jsx(
70
+ Select,
71
+ {
72
+ ...props,
73
+ components: { Input: CustomSelectInput },
74
+ className: "react-select",
75
+ classNamePrefix: "react-select",
76
+ name: "form-field-name",
77
+ value: Object.getOwnPropertyDescriptor(selectedIoption, "label") ? selectedIoption : "",
78
+ onChange: props.onChange,
79
+ options: props.options,
80
+ placeholder: Number(props.options.length) === 0 ? SIN_DATOS : props.placeholder || SELECCIONE,
81
+ isDisabled: props.disabled,
82
+ styles: customStyles
83
+ }
84
+ )
85
+ ] });
86
+ };
87
+ export {
88
+ CustomSelect
89
+ };
90
+ //# sourceMappingURL=index.js.map
@@ -1,12 +1,12 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { components } from "react-select";
3
- const CustomSelectInput = (props) => {
4
- const customProps = { ...props };
5
- delete customProps.autoCorrect;
6
- delete customProps.autoCapitalize;
7
- return /* @__PURE__ */ jsx(components.Input, { ...customProps });
8
- };
9
- export {
10
- CustomSelectInput
11
- };
12
- //# sourceMappingURL=index.js.map
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { components } from "react-select";
3
+ const CustomSelectInput = (props) => {
4
+ const customProps = { ...props };
5
+ delete customProps.autoCorrect;
6
+ delete customProps.autoCapitalize;
7
+ return /* @__PURE__ */ jsx(components.Input, { ...customProps });
8
+ };
9
+ export {
10
+ CustomSelectInput
11
+ };
12
+ //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
- import { CustomSelect } from "./custom-select/index.js";
2
- import { CustomMultiSelect } from "./multi-select/index.js";
3
- import { CustomSelectInput } from "./custom-select-input/index.js";
4
- export {
5
- CustomMultiSelect,
6
- CustomSelect,
7
- CustomSelectInput
8
- };
9
- //# sourceMappingURL=index.js.map
1
+ import { CustomSelect } from "./custom-select/index.js";
2
+ import { CustomMultiSelect } from "./multi-select/index.js";
3
+ import { CustomSelectInput } from "./custom-select-input/index.js";
4
+ export {
5
+ CustomMultiSelect,
6
+ CustomSelect,
7
+ CustomSelectInput
8
+ };
9
+ //# sourceMappingURL=index.js.map
@@ -1,29 +1,29 @@
1
- import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
- import { toCamelCase } from "siam-utils";
3
- import { ClickableBadge } from "./styled-component.js";
4
- const BadgeLabelMultiSelect = ({
5
- descripcionLabel = [],
6
- onRemove = () => {
7
- }
8
- }) => {
9
- const getBadgeColor = (value) => {
10
- return value.color || "dark";
11
- };
12
- return /* @__PURE__ */ jsx(Fragment, { children: descripcionLabel.map((item) => /* @__PURE__ */ jsxs(
13
- ClickableBadge,
14
- {
15
- color: getBadgeColor(item),
16
- pill: true,
17
- onClick: () => onRemove(item.value),
18
- children: [
19
- toCamelCase(item.label),
20
- " ×"
21
- ]
22
- },
23
- item.value
24
- )) });
25
- };
26
- export {
27
- BadgeLabelMultiSelect as default
28
- };
29
- //# sourceMappingURL=badge-label-multi-select.js.map
1
+ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
+ import { toCamelCase } from "siam-utils";
3
+ import { ClickableBadge } from "./styled-component.js";
4
+ const BadgeLabelMultiSelect = ({
5
+ descripcionLabel = [],
6
+ onRemove = () => {
7
+ }
8
+ }) => {
9
+ const getBadgeColor = (value) => {
10
+ return value.color || "dark";
11
+ };
12
+ return /* @__PURE__ */ jsx(Fragment, { children: descripcionLabel.map((item) => /* @__PURE__ */ jsxs(
13
+ ClickableBadge,
14
+ {
15
+ color: getBadgeColor(item),
16
+ pill: true,
17
+ onClick: () => onRemove(item.value),
18
+ children: [
19
+ toCamelCase(item.label),
20
+ " ×"
21
+ ]
22
+ },
23
+ item.value
24
+ )) });
25
+ };
26
+ export {
27
+ BadgeLabelMultiSelect as default
28
+ };
29
+ //# sourceMappingURL=badge-label-multi-select.js.map
@@ -1,24 +1,24 @@
1
- .rmsc input[type=checkbox] {
2
- accent-color: #900604;
3
- }
4
-
5
- .rmsc .item:hover {
6
- background-color: #f8e1e1;
7
- }
8
-
9
- .rmsc input[type=checkbox]:focus {
10
- outline: 2px solid #900604;
11
- outline-offset: 2px;
12
- }
13
-
14
- .custom-multiselect .dropdown-container {
15
- min-height: 38px;
16
- }
17
-
18
- .dropdown-heading-value {
19
- color: green;
20
- height: 2rem;
21
- display: inline;
22
- font-weight: bold;
23
- padding: 0.4rem;
1
+ .rmsc input[type=checkbox] {
2
+ accent-color: #900604;
3
+ }
4
+
5
+ .rmsc .item:hover {
6
+ background-color: #f8e1e1;
7
+ }
8
+
9
+ .rmsc input[type=checkbox]:focus {
10
+ outline: 2px solid #900604;
11
+ outline-offset: 2px;
12
+ }
13
+
14
+ .custom-multiselect .dropdown-container {
15
+ min-height: 38px;
16
+ }
17
+
18
+ .dropdown-heading-value {
19
+ color: green;
20
+ height: 2rem;
21
+ display: inline;
22
+ font-weight: bold;
23
+ padding: 0.4rem;
24
24
  }