@trackunit/custom-field-components 1.3.247 → 1.3.249
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 +1 -1
- package/index.esm.js +1 -1
- package/package.json +11 -11
package/index.cjs.js
CHANGED
|
@@ -237,7 +237,7 @@ const AddStringListField = ({ id, label, isEditing, setIsEditing, onAdd }) => {
|
|
|
237
237
|
setIsEditing(false);
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
|
-
return (jsxRuntime.jsxs(reactModal.Modal, { ...modal, className: "max-w-lg", dataTestId: `${id}-edit-modal`, children: [jsxRuntime.jsx(reactComponents.CardHeader, { heading: t("customfield.stringlistfield.addField.Heading", { label: label }), onClose: modal.close }), jsxRuntime.jsx(reactComponents.CardBody, { children: jsxRuntime.jsx(reactFormComponents.TextInput, { dataTestId: `${id}-edit-modal-input`, onChange: e => setInputValue(e.target.value), placeholder: t("customfield.stringlistfield.addField.InputPlaceholder", { label: label }), value: inputValue }) }), jsxRuntime.jsxs(reactComponents.CardFooter, { children: [jsxRuntime.jsx(reactComponents.Button, { dataTestId: `${id}-edit-modal-discard-button`, onClick: modal.close, variant: "
|
|
240
|
+
return (jsxRuntime.jsxs(reactModal.Modal, { ...modal, className: "max-w-lg", dataTestId: `${id}-edit-modal`, children: [jsxRuntime.jsx(reactComponents.CardHeader, { heading: t("customfield.stringlistfield.addField.Heading", { label: label }), onClose: modal.close }), jsxRuntime.jsx(reactComponents.CardBody, { children: jsxRuntime.jsx(reactFormComponents.TextInput, { dataTestId: `${id}-edit-modal-input`, onChange: e => setInputValue(e.target.value), placeholder: t("customfield.stringlistfield.addField.InputPlaceholder", { label: label }), value: inputValue }) }), jsxRuntime.jsxs(reactComponents.CardFooter, { children: [jsxRuntime.jsx(reactComponents.Button, { dataTestId: `${id}-edit-modal-discard-button`, onClick: modal.close, variant: "ghost-neutral", children: t("customfield.stringlistfield.discard") }), jsxRuntime.jsx(reactComponents.Button, { dataTestId: `${id}-edit-modal-add-button`, onClick: handleAdd, children: t("customfield.stringlistfield.add") })] })] }));
|
|
241
241
|
};
|
|
242
242
|
|
|
243
243
|
const StringListInput = ({ value: initialValue, onSave, onDelete, disabled, id, index }) => {
|
package/index.esm.js
CHANGED
|
@@ -235,7 +235,7 @@ const AddStringListField = ({ id, label, isEditing, setIsEditing, onAdd }) => {
|
|
|
235
235
|
setIsEditing(false);
|
|
236
236
|
}
|
|
237
237
|
};
|
|
238
|
-
return (jsxs(Modal, { ...modal, className: "max-w-lg", dataTestId: `${id}-edit-modal`, children: [jsx(CardHeader, { heading: t("customfield.stringlistfield.addField.Heading", { label: label }), onClose: modal.close }), jsx(CardBody, { children: jsx(TextInput, { dataTestId: `${id}-edit-modal-input`, onChange: e => setInputValue(e.target.value), placeholder: t("customfield.stringlistfield.addField.InputPlaceholder", { label: label }), value: inputValue }) }), jsxs(CardFooter, { children: [jsx(Button, { dataTestId: `${id}-edit-modal-discard-button`, onClick: modal.close, variant: "
|
|
238
|
+
return (jsxs(Modal, { ...modal, className: "max-w-lg", dataTestId: `${id}-edit-modal`, children: [jsx(CardHeader, { heading: t("customfield.stringlistfield.addField.Heading", { label: label }), onClose: modal.close }), jsx(CardBody, { children: jsx(TextInput, { dataTestId: `${id}-edit-modal-input`, onChange: e => setInputValue(e.target.value), placeholder: t("customfield.stringlistfield.addField.InputPlaceholder", { label: label }), value: inputValue }) }), jsxs(CardFooter, { children: [jsx(Button, { dataTestId: `${id}-edit-modal-discard-button`, onClick: modal.close, variant: "ghost-neutral", children: t("customfield.stringlistfield.discard") }), jsx(Button, { dataTestId: `${id}-edit-modal-add-button`, onClick: handleAdd, children: t("customfield.stringlistfield.add") })] })] }));
|
|
239
239
|
};
|
|
240
240
|
|
|
241
241
|
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.3.
|
|
3
|
+
"version": "1.3.249",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
"react-select": "^5.10.0",
|
|
13
13
|
"@testing-library/react": "16.2.0",
|
|
14
14
|
"jest-fetch-mock": "^3.0.3",
|
|
15
|
-
"@trackunit/react-form-components": "1.3.
|
|
16
|
-
"@trackunit/shared-utils": "1.5.
|
|
17
|
-
"@trackunit/custom-field-api": "1.3.
|
|
18
|
-
"@trackunit/iris-app-runtime-core": "1.4.
|
|
19
|
-
"@trackunit/react-components": "1.4.
|
|
20
|
-
"@trackunit/react-modal": "1.3.
|
|
21
|
-
"@trackunit/react-core-hooks": "1.3.
|
|
22
|
-
"@trackunit/i18n-library-translation": "1.3.
|
|
23
|
-
"@trackunit/iris-app-runtime-core-api": "1.3.
|
|
24
|
-
"@trackunit/react-test-setup": "1.0.
|
|
15
|
+
"@trackunit/react-form-components": "1.3.230",
|
|
16
|
+
"@trackunit/shared-utils": "1.5.166",
|
|
17
|
+
"@trackunit/custom-field-api": "1.3.203",
|
|
18
|
+
"@trackunit/iris-app-runtime-core": "1.4.177",
|
|
19
|
+
"@trackunit/react-components": "1.4.204",
|
|
20
|
+
"@trackunit/react-modal": "1.3.222",
|
|
21
|
+
"@trackunit/react-core-hooks": "1.3.181",
|
|
22
|
+
"@trackunit/i18n-library-translation": "1.3.190",
|
|
23
|
+
"@trackunit/iris-app-runtime-core-api": "1.3.177",
|
|
24
|
+
"@trackunit/react-test-setup": "1.0.56"
|
|
25
25
|
},
|
|
26
26
|
"module": "./index.esm.js",
|
|
27
27
|
"main": "./index.cjs.js",
|