@trackunit/custom-field-components 1.9.1 → 1.9.2

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.
package/index.cjs.js CHANGED
@@ -263,7 +263,7 @@ const AddStringListField = ({ id, label, isEditing, setIsEditing, onAdd, }) => {
263
263
  setIsEditing(false);
264
264
  }
265
265
  };
266
- return (jsxRuntime.jsxs(reactModal.Modal, { ...modal, className: "max-w-lg", "data-testid": `${id}-edit-modal`, children: [jsxRuntime.jsx(reactModal.ModalHeader, { heading: t("customfield.stringlistfield.addField.Heading", { label: label }), onClose: modal.close }), jsxRuntime.jsx(reactModal.ModalBody, { children: jsxRuntime.jsx(reactFormComponents.TextBaseInput, { "data-testid": `${id}-edit-modal-input`, onChange: e => setInputValue(e.target.value), placeholder: t("customfield.stringlistfield.addField.InputPlaceholder", { label: label }), value: inputValue }) }), jsxRuntime.jsx(reactModal.ModalFooter, { cancelLabel: t("customfield.stringlistfield.discard"), "data-testid": `${id}-edit-modal-footer`, onCancel: modal.close, primaryAction: handleAdd, primaryLabel: t("customfield.stringlistfield.add") })] }));
266
+ return (jsxRuntime.jsxs(reactModal.Modal, { ...modal, "data-testid": `${id}-edit-modal`, size: "medium", children: [jsxRuntime.jsx(reactModal.ModalHeader, { heading: t("customfield.stringlistfield.addField.Heading", { label: label }), onClose: modal.close }), jsxRuntime.jsx(reactModal.ModalBody, { children: jsxRuntime.jsx(reactFormComponents.TextBaseInput, { "data-testid": `${id}-edit-modal-input`, onChange: e => setInputValue(e.target.value), placeholder: t("customfield.stringlistfield.addField.InputPlaceholder", { label: label }), value: inputValue }) }), jsxRuntime.jsx(reactModal.ModalFooter, { cancelLabel: t("customfield.stringlistfield.discard"), "data-testid": `${id}-edit-modal-footer`, onCancel: modal.close, primaryAction: handleAdd, primaryLabel: t("customfield.stringlistfield.add") })] }));
267
267
  };
268
268
 
269
269
  const StringListInput = ({ value: initialValue, onSave, onDelete, disabled, id, index }) => {
package/index.esm.js CHANGED
@@ -261,7 +261,7 @@ const AddStringListField = ({ id, label, isEditing, setIsEditing, onAdd, }) => {
261
261
  setIsEditing(false);
262
262
  }
263
263
  };
264
- return (jsxs(Modal, { ...modal, className: "max-w-lg", "data-testid": `${id}-edit-modal`, children: [jsx(ModalHeader, { heading: t("customfield.stringlistfield.addField.Heading", { label: label }), onClose: modal.close }), jsx(ModalBody, { children: jsx(TextBaseInput, { "data-testid": `${id}-edit-modal-input`, onChange: e => setInputValue(e.target.value), placeholder: t("customfield.stringlistfield.addField.InputPlaceholder", { label: label }), value: inputValue }) }), jsx(ModalFooter, { cancelLabel: t("customfield.stringlistfield.discard"), "data-testid": `${id}-edit-modal-footer`, onCancel: modal.close, primaryAction: handleAdd, primaryLabel: t("customfield.stringlistfield.add") })] }));
264
+ return (jsxs(Modal, { ...modal, "data-testid": `${id}-edit-modal`, size: "medium", children: [jsx(ModalHeader, { heading: t("customfield.stringlistfield.addField.Heading", { label: label }), onClose: modal.close }), jsx(ModalBody, { children: jsx(TextBaseInput, { "data-testid": `${id}-edit-modal-input`, onChange: e => setInputValue(e.target.value), placeholder: t("customfield.stringlistfield.addField.InputPlaceholder", { label: label }), value: inputValue }) }), jsx(ModalFooter, { cancelLabel: t("customfield.stringlistfield.discard"), "data-testid": `${id}-edit-modal-footer`, onCancel: modal.close, primaryAction: handleAdd, primaryLabel: t("customfield.stringlistfield.add") })] }));
265
265
  };
266
266
 
267
267
  const StringListInput = ({ value: initialValue, onSave, onDelete, disabled, id, index }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/custom-field-components",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -10,15 +10,15 @@
10
10
  "react": "19.0.0",
11
11
  "react-hook-form": "7.62.0",
12
12
  "react-select": "^5.10.2",
13
- "@trackunit/react-form-components": "1.10.1",
14
- "@trackunit/shared-utils": "1.11.1",
15
- "@trackunit/custom-field-api": "1.9.1",
16
- "@trackunit/iris-app-runtime-core": "1.10.1",
17
- "@trackunit/react-components": "1.12.1",
18
- "@trackunit/react-modal": "1.10.1",
19
- "@trackunit/react-core-hooks": "1.9.1",
20
- "@trackunit/i18n-library-translation": "1.9.1",
21
- "@trackunit/iris-app-runtime-core-api": "1.9.1"
13
+ "@trackunit/react-form-components": "1.10.2",
14
+ "@trackunit/shared-utils": "1.11.2",
15
+ "@trackunit/custom-field-api": "1.9.2",
16
+ "@trackunit/iris-app-runtime-core": "1.10.2",
17
+ "@trackunit/react-components": "1.12.2",
18
+ "@trackunit/react-modal": "1.10.2",
19
+ "@trackunit/react-core-hooks": "1.9.2",
20
+ "@trackunit/i18n-library-translation": "1.9.2",
21
+ "@trackunit/iris-app-runtime-core-api": "1.9.2"
22
22
  },
23
23
  "module": "./index.esm.js",
24
24
  "main": "./index.cjs.js",